18 #ifndef INCLUDED_VIDEOMODE 19 #define INCLUDED_VIDEOMODE 86 bool SetVideoMode(
int w,
int h,
int bpp,
bool fullscreen);
130 #endif // INCLUDED_VIDEOMODE int m_CurrentH
Definition: VideoMode.h:124
int GetDesktopFreq()
Definition: VideoMode.cpp:480
bool SetVideoMode(int w, int h, int bpp, bool fullscreen)
Definition: VideoMode.cpp:72
int GetDesktopXRes()
Definition: VideoMode.cpp:462
int GetYRes()
Definition: VideoMode.cpp:450
bool ToggleFullscreen()
Switch between fullscreen and windowed mode.
Definition: VideoMode.cpp:395
bool m_ConfigFullscreen
Definition: VideoMode.h:109
CVideoMode g_VideoMode
Definition: VideoMode.cpp:47
bool ResizeWindow(int w, int h)
Resize the SDL window and associated graphics stuff to the new size.
Definition: VideoMode.cpp:309
int m_WindowedY
Definition: VideoMode.h:117
int m_ConfigH
Definition: VideoMode.h:106
void Shutdown()
Shut down after InitSDL/InitNonSDL, so that they can be used again.
Definition: VideoMode.cpp:274
int m_WindowedX
Definition: VideoMode.h:116
SDL_Window * GetWindow()
Definition: VideoMode.cpp:486
int m_PreferredH
Definition: VideoMode.h:100
int m_CurrentBPP
Definition: VideoMode.h:125
int m_ConfigW
Definition: VideoMode.h:105
int m_WindowedW
Definition: VideoMode.h:114
int m_PreferredW
Definition: VideoMode.h:99
static void UpdateRenderer(int w, int h)
Update the graphics code to start drawing to the new size.
Definition: VideoMode.cpp:409
CVideoMode()
Definition: VideoMode.cpp:49
bool InitNonSDL()
Initialise parts of the video mode, for use in Atlas (which uses wxWidgets instead of SDL for GL)...
Definition: VideoMode.cpp:261
int m_PreferredBPP
Definition: VideoMode.h:101
int m_WindowedH
Definition: VideoMode.h:115
struct SDL_Window SDL_Window
Definition: VideoMode.h:21
int m_CurrentW
Definition: VideoMode.h:123
int m_ConfigBPP
Definition: VideoMode.h:107
int m_PreferredFreq
Definition: VideoMode.h:102
void UpdatePosition(int x, int y)
Update window position, to restore later if necessary (SDL2 only).
Definition: VideoMode.cpp:400
int m_ConfigDisplay
Definition: VideoMode.h:108
bool m_IsInitialised
Remember whether Init has been called.
Definition: VideoMode.h:94
int GetDesktopYRes()
Definition: VideoMode.cpp:468
int GetDesktopBPP()
Definition: VideoMode.cpp:474
bool SetFullscreen(bool fullscreen)
Switch to fullscreen or windowed mode.
Definition: VideoMode.cpp:334
SDL_Window * m_Window
Definition: VideoMode.h:96
int GetBestBPP()
Definition: VideoMode.cpp:435
int GetXRes()
Definition: VideoMode.cpp:444
bool m_ConfigForceS3TCEnable
Definition: VideoMode.h:110
int GetBPP()
Definition: VideoMode.cpp:456
bool m_IsFullscreen
Definition: VideoMode.h:120
bool InitSDL()
Initialise the video mode, for use in an SDL-using application.
Definition: VideoMode.cpp:164
void ReadConfig()
Definition: VideoMode.cpp:59
Definition: VideoMode.h:23
void EnableS3TC()
Definition: VideoMode.cpp:287