18 #ifndef INCLUDED_VIDEOMODE 19 #define INCLUDED_VIDEOMODE 62 bool CreateBackendDevice(
const bool createSDLContext);
67 bool ResizeWindow(
int w,
int h);
72 void Rescale(
float scale);
77 bool SetFullscreen(
bool fullscreen);
82 bool IsInFullscreen()
const;
87 bool ToggleFullscreen();
92 void UpdatePosition(
int x,
int y);
99 static void UpdateRenderer(
int w,
int h);
105 bool IsVSyncEnabled()
const;
107 int GetDesktopXRes()
const;
108 int GetDesktopYRes()
const;
109 int GetDesktopBPP()
const;
110 int GetDesktopFreq()
const;
112 float GetScale()
const;
116 void SetWindowIcon();
126 bool SetVideoMode(
int w,
int h,
int bpp,
bool fullscreen);
128 bool TryCreateBackendDevice(
SDL_Window* window);
129 void DowngradeBackendSettingAfterCreationFailure();
136 bool m_IsInitialised =
false;
142 int m_PreferredW = 0;
143 int m_PreferredH = 0;
144 int m_PreferredBPP = 0;
145 int m_PreferredFreq = 0;
147 float m_Scale = 1.0f;
153 int m_ConfigDisplay = 0;
154 bool m_ConfigEnableHiDPI =
false;
155 bool m_ConfigVSync =
false;
159 bool m_ConfigFullscreen =
false;
169 bool m_IsFullscreen =
false;
185 #endif // INCLUDED_VIDEOMODE Definition: VideoMode.cpp:112
void Shutdown(int flags)
Definition: GameSetup.cpp:339
int m_CurrentH
Definition: VideoMode.h:173
std::unique_ptr< CCursor > m_Cursor
Definition: VideoMode.h:176
Renderer::Backend::IDevice * GetBackendDevice()
Definition: VideoMode.h:121
CVideoMode g_VideoMode
Definition: VideoMode.cpp:110
int m_WindowedY
Definition: VideoMode.h:166
int m_WindowedX
Definition: VideoMode.h:165
static void InitSDL()
Definition: GameSetup.cpp:276
int m_CurrentBPP
Definition: VideoMode.h:174
int m_WindowedW
Definition: VideoMode.h:163
Backend
Definition: Backend.h:27
int m_WindowedH
Definition: VideoMode.h:164
struct SDL_Window SDL_Window
Definition: VideoMode.h:26
int m_CurrentW
Definition: VideoMode.h:172
Definition: VideoMode.h:28
std::unique_ptr< Renderer::Backend::IDevice > m_BackendDevice
Definition: VideoMode.h:180
void ResetCursor()
Definition: JSInterface_GUIManager.cpp:61
void SetCursor(const std::wstring &name)
Definition: JSInterface_GUIManager.cpp:56
Definition: VideoMode.h:36