torque Torque Game Engine Documentation
TGE Version 1.5.2

OpenGLDevice Class Reference

#include <x86UNIXOGLVideo.h>

Inheritance diagram for OpenGLDevice:

Inheritance graph
[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 DisplayDevicecreate ()
static DisplayDevicecreate ()
static DisplayDevicecreate ()

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.

static DisplayDevice* OpenGLDevice::create (  )  [static]

void OpenGLDevice::initDevice (  )  [virtual]

The following are inherited from DisplayDevice.

Implements DisplayDevice.

bool OpenGLDevice::activate ( U32  width,
U32  height,
U32  bpp,
bool  fullScreen 
) [virtual]

Implements DisplayDevice.

void OpenGLDevice::shutdown (  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::setScreenMode ( U32  width,
U32  height,
U32  bpp,
bool  fullScreen,
bool  forceIt = false,
bool  repaint = true 
) [virtual]

Implements DisplayDevice.

void OpenGLDevice::swapBuffers (  )  [virtual]

Implements DisplayDevice.

const char* OpenGLDevice::getDriverInfo (  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::getGammaCorrection ( F32 g  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::setGammaCorrection ( F32  g  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::setVerticalSync ( bool  on  )  [virtual]

Implements DisplayDevice.

virtual void OpenGLDevice::initDevice (  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::activate ( U32  width,
U32  height,
U32  bpp,
bool  fullScreen 
) [virtual]

Implements DisplayDevice.

void OpenGLDevice::shutdown (  )  [virtual]

Implements DisplayDevice.

void OpenGLDevice::destroy (  ) 

bool OpenGLDevice::setScreenMode ( U32  width,
U32  height,
U32  bpp,
bool  fullScreen,
bool  forceIt = false,
bool  repaint = true 
) [virtual]

Implements DisplayDevice.

void OpenGLDevice::swapBuffers (  )  [virtual]

Implements DisplayDevice.

const char* OpenGLDevice::getDriverInfo (  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::getGammaCorrection ( F32 g  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::setGammaCorrection ( F32  g  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::setVerticalSync ( bool  on  )  [virtual]

Implements DisplayDevice.

static DisplayDevice* OpenGLDevice::create (  )  [static]

void OpenGLDevice::addResolution ( S32  width,
S32  height,
bool  check = true 
) [private]

void OpenGLDevice::initDevice (  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::activate ( U32  width,
U32  height,
U32  bpp,
bool  fullScreen 
) [virtual]

Implements DisplayDevice.

void OpenGLDevice::shutdown (  )  [virtual]

Implements DisplayDevice.

void OpenGLDevice::destroy (  ) 

bool OpenGLDevice::setScreenMode ( U32  width,
U32  height,
U32  bpp,
bool  fullScreen,
bool  forceIt = false,
bool  repaint = true 
) [virtual]

Implements DisplayDevice.

void OpenGLDevice::swapBuffers (  )  [virtual]

Implements DisplayDevice.

const char* OpenGLDevice::getDriverInfo (  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::getGammaCorrection ( F32 g  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::setGammaCorrection ( F32  g  )  [virtual]

Implements DisplayDevice.

bool OpenGLDevice::setVerticalSync ( bool  on  )  [virtual]

Implements DisplayDevice.

void OpenGLDevice::loadResolutions (  ) 

static DisplayDevice* OpenGLDevice::create (  )  [static]


Field Documentation

Vector<GDHandle> OpenGLDevice::mMonitorList [private]

Handles to all the devices ( monitors ) attached to the system.

Gamma value.

static bool OpenGLDevice::smCanSwitchBitDepth [static, private]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen