Etterna 0.74.4
|
Sets up a window for OpenGL/D3D. More...
Functions | |
void | Initialize (bool bD3D) |
Set up, and create a hidden window. | |
void | Shutdown () |
Shut down completely. | |
auto | SetScreenMode (const VideoModeParams &p) -> std::string |
Set the display mode. | |
void | CreateGraphicsWindow (const VideoModeParams &p, bool bForceRecreateWindow=false) |
Create the window. | |
void | DestroyGraphicsWindow () |
Shut down the window, but don't reset the video mode. | |
void | GetDisplaySpecs (DisplaySpecs &out) |
auto | PushWindow (int a, int b) -> BOOL |
auto | GetParams () -> ActualVideoModeParams * |
auto | GetHDC () -> HDC |
void | Update () |
auto | GetHwnd () -> HWND |
Sets up a window for OpenGL/D3D.
void GraphicsWindow::CreateGraphicsWindow | ( | const VideoModeParams & | p, |
bool | bForceRecreateWindow = false |
||
) |
Create the window.
This also updates VideoModeParams (returned by GetParams).
void GraphicsWindow::Initialize | ( | bool | bD3D | ) |
Set up, and create a hidden window.
This only needs to be called once.
std::string GraphicsWindow::SetScreenMode | ( | const VideoModeParams & | p | ) | -> std::string |
Set the display mode.
p will not be second-guessed, except to try disabling the refresh rate setting.