Etterna 0.74.4
Loading...
Searching...
No Matches
Functions
GraphicsWindow Namespace Reference

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
 

Detailed Description

Sets up a window for OpenGL/D3D.

Function Documentation

◆ CreateGraphicsWindow()

void GraphicsWindow::CreateGraphicsWindow ( const VideoModeParams p,
bool  bForceRecreateWindow = false 
)

Create the window.

This also updates VideoModeParams (returned by GetParams).

◆ Initialize()

void GraphicsWindow::Initialize ( bool  bD3D)

Set up, and create a hidden window.

This only needs to be called once.

◆ SetScreenMode()

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.