#include <VideoMode.h>
|
static void | UpdateRenderer (int w, int h) |
| Update the graphics code to start drawing to the new size. More...
|
|
Definition at line 23 of file VideoMode.h.
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.
Definition at line 295 of file VideoMode.cpp.
bool CVideoMode::InitSDL |
( |
| ) |
|
Initialise the video mode, for use in an SDL-using application.
Definition at line 191 of file VideoMode.cpp.
void CVideoMode::ReadConfig |
( |
| ) |
|
|
private |
bool CVideoMode::ResizeWindow |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
Resize the SDL window and associated graphics stuff to the new size.
Definition at line 338 of file VideoMode.cpp.
bool CVideoMode::SetFullscreen |
( |
bool |
fullscreen | ) |
|
Switch to fullscreen or windowed mode.
Definition at line 363 of file VideoMode.cpp.
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.
Definition at line 308 of file VideoMode.cpp.
bool CVideoMode::ToggleFullscreen |
( |
| ) |
|
Switch between fullscreen and windowed mode.
Definition at line 424 of file VideoMode.cpp.
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.
Definition at line 429 of file VideoMode.cpp.
int CVideoMode::m_ConfigBPP |
|
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.)
Definition at line 89 of file VideoMode.h.
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 |
The documentation for this class was generated from the following files: