I'm finding it hard to find good sources of information for explanations of DirectX API although I've been looking at the DirectX Documentation for a while.
I'm trying to create a method for a wrapper class for DX9 that changes the resolution during runtime. I've managed to handle this with DirectDraw but I find no information regarding DX9 even though it should be more common.
All I found was a reference to SetDisplayMode, but neither my Direct Object or my DirectX Device has this method.
I'm using DirectX 9.
Example method:
void SetResolution(int width, int height, int depth)
{
// I have access to DirectX device, object and the window HWND in this class
};
...do I change the HWND window size, or do I handle this in DirectX? I know how to change resolution in a Windows application but no clue how to do it in DX9.