OpenGLDevice Class Reference#include <x86UNIXOGLVideo.h>
Inheritance diagram for OpenGLDevice:
[legend]
|
Public Member Functions |
| OpenGLDevice () |
void | initDevice () |
| The following are inherited from DisplayDevice.
|
bool | activate (U32 width, U32 height, U32 bpp, bool fullScreen) |
void | shutdown () |
bool | setScreenMode (U32 width, U32 height, U32 bpp, bool fullScreen, bool forceIt=false, bool repaint=true) |
void | swapBuffers () |
const char * | getDriverInfo () |
bool | getGammaCorrection (F32 &g) |
bool | setGammaCorrection (F32 g) |
bool | setVerticalSync (bool on) |
| OpenGLDevice () |
virtual void | initDevice () |
bool | activate (U32 width, U32 height, U32 bpp, bool fullScreen) |
void | shutdown () |
void | destroy () |
bool | setScreenMode (U32 width, U32 height, U32 bpp, bool fullScreen, bool forceIt=false, bool repaint=true) |
void | swapBuffers () |
const char * | getDriverInfo () |
bool | getGammaCorrection (F32 &g) |
bool | setGammaCorrection (F32 g) |
bool | setVerticalSync (bool on) |
| OpenGLDevice () |
virtual | ~OpenGLDevice () |
void | initDevice () |
bool | activate (U32 width, U32 height, U32 bpp, bool fullScreen) |
void | shutdown () |
void | destroy () |
bool | setScreenMode (U32 width, U32 height, U32 bpp, bool fullScreen, bool forceIt=false, bool repaint=true) |
void | swapBuffers () |
const char * | getDriverInfo () |
bool | getGammaCorrection (F32 &g) |
bool | setGammaCorrection (F32 g) |
bool | setVerticalSync (bool on) |
void | loadResolutions () |
Static Public Member Functions |
static DisplayDevice * | create () |
static DisplayDevice * | create () |
static DisplayDevice * | create () |
Private Member Functions |
bool | enumDisplayModes (CGDirectDisplayID hDevice) |
| Fills mResolutionList with a list of valid resolutions for a particular screen.
|
bool | enumMonitors () |
| Fills mMonitorList with all available monitors.
|
GDHandle | chooseMonitor () |
| Chooses a monitor based on $pref::the results of enumMontors().
|
bool | cleanupContextAndWindow () |
| Cleans up the opengl context, and destroys the rendering window.
|
void | addResolution (S32 width, S32 height, bool check=true) |
Private Attributes |
Vector< GDHandle > | mMonitorList |
| Handles to all the devices ( monitors ) attached to the system.
|
F32 | mGamma |
| Gamma value.
|
bool | mRestoreGamma |
U16 | mOriginalRamp [256 *3] |
Static Private Attributes |
static bool | smCanSwitchBitDepth |
Constructor & Destructor Documentation
OpenGLDevice::OpenGLDevice |
( |
|
) |
|
OpenGLDevice::OpenGLDevice |
( |
|
) |
|
OpenGLDevice::OpenGLDevice |
( |
|
) |
|
virtual OpenGLDevice::~OpenGLDevice |
( |
|
) |
[virtual] |
Member Function Documentation
bool OpenGLDevice::enumDisplayModes |
( |
CGDirectDisplayID |
hDevice |
) |
[private] |
Fills mResolutionList with a list of valid resolutions for a particular screen.
bool OpenGLDevice::enumMonitors |
( |
|
) |
[private] |
Fills mMonitorList with all available monitors.
GDHandle OpenGLDevice::chooseMonitor |
( |
|
) |
[private] |
Chooses a monitor based on $pref::the results of enumMontors().
bool OpenGLDevice::cleanupContextAndWindow |
( |
|
) |
[private] |
Cleans up the opengl context, and destroys the rendering window.
void OpenGLDevice::initDevice |
( |
|
) |
[virtual] |
bool OpenGLDevice::activate |
( |
U32 |
width, |
|
|
U32 |
height, |
|
|
U32 |
bpp, |
|
|
bool |
fullScreen | |
|
) |
| | [virtual] |
void OpenGLDevice::shutdown |
( |
|
) |
[virtual] |
bool OpenGLDevice::setScreenMode |
( |
U32 |
width, |
|
|
U32 |
height, |
|
|
U32 |
bpp, |
|
|
bool |
fullScreen, |
|
|
bool |
forceIt = false , |
|
|
bool |
repaint = true | |
|
) |
| | [virtual] |
void OpenGLDevice::swapBuffers |
( |
|
) |
[virtual] |
const char* OpenGLDevice::getDriverInfo |
( |
|
) |
[virtual] |
bool OpenGLDevice::getGammaCorrection |
( |
F32 & |
g |
) |
[virtual] |
bool OpenGLDevice::setGammaCorrection |
( |
F32 |
g |
) |
[virtual] |
bool OpenGLDevice::setVerticalSync |
( |
bool |
on |
) |
[virtual] |
virtual void OpenGLDevice::initDevice |
( |
|
) |
[virtual] |
bool OpenGLDevice::activate |
( |
U32 |
width, |
|
|
U32 |
height, |
|
|
U32 |
bpp, |
|
|
bool |
fullScreen | |
|
) |
| | [virtual] |
void OpenGLDevice::shutdown |
( |
|
) |
[virtual] |
void OpenGLDevice::destroy |
( |
|
) |
|
bool OpenGLDevice::setScreenMode |
( |
U32 |
width, |
|
|
U32 |
height, |
|
|
U32 |
bpp, |
|
|
bool |
fullScreen, |
|
|
bool |
forceIt = false , |
|
|
bool |
repaint = true | |
|
) |
| | [virtual] |
void OpenGLDevice::swapBuffers |
( |
|
) |
[virtual] |
const char* OpenGLDevice::getDriverInfo |
( |
|
) |
[virtual] |
bool OpenGLDevice::getGammaCorrection |
( |
F32 & |
g |
) |
[virtual] |
bool OpenGLDevice::setGammaCorrection |
( |
F32 |
g |
) |
[virtual] |
bool OpenGLDevice::setVerticalSync |
( |
bool |
on |
) |
[virtual] |
void OpenGLDevice::addResolution |
( |
S32 |
width, |
|
|
S32 |
height, |
|
|
bool |
check = true | |
|
) |
| | [private] |
void OpenGLDevice::initDevice |
( |
|
) |
[virtual] |
bool OpenGLDevice::activate |
( |
U32 |
width, |
|
|
U32 |
height, |
|
|
U32 |
bpp, |
|
|
bool |
fullScreen | |
|
) |
| | [virtual] |
void OpenGLDevice::shutdown |
( |
|
) |
[virtual] |
void OpenGLDevice::destroy |
( |
|
) |
|
bool OpenGLDevice::setScreenMode |
( |
U32 |
width, |
|
|
U32 |
height, |
|
|
U32 |
bpp, |
|
|
bool |
fullScreen, |
|
|
bool |
forceIt = false , |
|
|
bool |
repaint = true | |
|
) |
| | [virtual] |
void OpenGLDevice::swapBuffers |
( |
|
) |
[virtual] |
const char* OpenGLDevice::getDriverInfo |
( |
|
) |
[virtual] |
bool OpenGLDevice::getGammaCorrection |
( |
F32 & |
g |
) |
[virtual] |
bool OpenGLDevice::setGammaCorrection |
( |
F32 |
g |
) |
[virtual] |
bool OpenGLDevice::setVerticalSync |
( |
bool |
on |
) |
[virtual] |
void OpenGLDevice::loadResolutions |
( |
|
) |
|
Field Documentation
Handles to all the devices ( monitors ) attached to the system.
|