#include <VideoMode.h>
|
static void | UpdateRenderer (int w, int h) |
| Update the graphics code to start drawing to the new size. More...
|
|
CVideoMode::CVideoMode |
( |
| ) |
|
void CVideoMode::EnableS3TC |
( |
| ) |
|
|
private |
int CVideoMode::GetBestBPP |
( |
| ) |
|
|
private |
int CVideoMode::GetBPP |
( |
| ) |
|
int CVideoMode::GetDesktopBPP |
( |
| ) |
|
int CVideoMode::GetDesktopFreq |
( |
| ) |
|
int CVideoMode::GetDesktopXRes |
( |
| ) |
|
int CVideoMode::GetDesktopYRes |
( |
| ) |
|
int CVideoMode::GetXRes |
( |
| ) |
|
int CVideoMode::GetYRes |
( |
| ) |
|
bool CVideoMode::InitNonSDL |
( |
| ) |
|
Initialise parts of the video mode, for use in Atlas (which uses wxWidgets instead of SDL for GL).
Currently this just tries to enable S3TC.
bool CVideoMode::InitSDL |
( |
| ) |
|
Initialise the video mode, for use in an SDL-using application.
void CVideoMode::ReadConfig |
( |
| ) |
|
|
private |
bool CVideoMode::ResizeWindow |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
Resize the SDL window and associated graphics stuff to the new size.
bool CVideoMode::SetFullscreen |
( |
bool |
fullscreen | ) |
|
Switch to fullscreen or windowed mode.
bool CVideoMode::SetVideoMode |
( |
int |
w, |
|
|
int |
h, |
|
|
int |
bpp, |
|
|
bool |
fullscreen |
|
) |
| |
|
private |
void CVideoMode::Shutdown |
( |
void |
| ) |
|
Shut down after InitSDL/InitNonSDL, so that they can be used again.
bool CVideoMode::ToggleFullscreen |
( |
| ) |
|
Switch between fullscreen and windowed mode.
void CVideoMode::UpdatePosition |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Update window position, to restore later if necessary (SDL2 only).
void CVideoMode::UpdateRenderer |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
static |
Update the graphics code to start drawing to the new size.
This should be called after the GL context has been resized. This can also be used when the GL context is managed externally, not via SDL.
int CVideoMode::m_ConfigBPP |
|
private |
int CVideoMode::m_ConfigDisplay |
|
private |
bool CVideoMode::m_ConfigForceS3TCEnable |
|
private |
bool CVideoMode::m_ConfigFullscreen |
|
private |
int CVideoMode::m_ConfigH |
|
private |
int CVideoMode::m_ConfigW |
|
private |
int CVideoMode::m_CurrentBPP |
|
private |
int CVideoMode::m_CurrentH |
|
private |
int CVideoMode::m_CurrentW |
|
private |
bool CVideoMode::m_IsFullscreen |
|
private |
bool CVideoMode::m_IsInitialised |
|
private |
Remember whether Init has been called.
(This isn't used for anything important, just for verifying that the callers call our methods in the right order.)
int CVideoMode::m_PreferredBPP |
|
private |
int CVideoMode::m_PreferredFreq |
|
private |
int CVideoMode::m_PreferredH |
|
private |
int CVideoMode::m_PreferredW |
|
private |
int CVideoMode::m_WindowedH |
|
private |
int CVideoMode::m_WindowedW |
|
private |
int CVideoMode::m_WindowedX |
|
private |
int CVideoMode::m_WindowedY |
|
private |
The documentation for this class was generated from the following files: