Torque2D Reference
Loading...
Searching...
No Matches
OpenGLDevice Class Reference

#include <EmscriptenOGLVideo.h>

Inheritance diagram for OpenGLDevice:

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 getVerticalSync ()
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 getVerticalSync ()
bool setVerticalSync (bool on)
void loadResolutions ()
Public Member Functions inherited from DisplayDevice
 DisplayDevice ()
virtual ~DisplayDevice ()
virtual bool setResolution (U32 width, U32 height, U32 bpp)
virtual bool toggleFullScreen ()
bool prevRes ()
bool nextRes ()
const char * getResolutionList ()
bool isFullScreenOnly ()

Static Public Member Functions

static DisplayDevicecreate ()
static DisplayDevicecreate ()
Static Public Member Functions inherited from DisplayDevice
static void init ()
static Resolution getResolution ()
static bool isFullScreen ()

Additional Inherited Members

Public Attributes inherited from DisplayDevice
const char * mDeviceName
Protected Attributes inherited from DisplayDevice
Vector< ResolutionmResolutionList
bool mFullScreenOnly
Static Protected Attributes inherited from DisplayDevice
static Resolution smCurrentRes
static bool smIsFullScreen

Constructor & Destructor Documentation

◆ OpenGLDevice() [1/2]

◆ OpenGLDevice() [2/2]

◆ ~OpenGLDevice()

~OpenGLDevice ( )
virtual

Member Function Documentation

◆ activate() [1/2]

bool activate ( U32 width,
U32 height,
U32 bpp,
bool fullScreen )
virtual

Implements DisplayDevice.

◆ activate() [2/2]

bool activate ( U32 width,
U32 height,
U32 bpp,
bool fullScreen )
virtual

Implements DisplayDevice.

◆ create() [1/2]

DisplayDevice * create ( )
static

◆ create() [2/2]

DisplayDevice * create ( )
static

◆ destroy()

void destroy ( )

◆ getDriverInfo() [1/2]

const char * getDriverInfo ( )
virtual

Implements DisplayDevice.

◆ getDriverInfo() [2/2]

const char * getDriverInfo ( )
virtual

Implements DisplayDevice.

◆ getGammaCorrection() [1/2]

bool getGammaCorrection ( F32 & g)
virtual

Implements DisplayDevice.

◆ getGammaCorrection() [2/2]

bool getGammaCorrection ( F32 & g)
virtual

Implements DisplayDevice.

◆ getVerticalSync() [1/2]

bool getVerticalSync ( )
virtual

Implements DisplayDevice.

◆ getVerticalSync() [2/2]

bool getVerticalSync ( )
virtual

Implements DisplayDevice.

◆ initDevice() [1/2]

void initDevice ( )
virtual

The following are inherited from DisplayDevice.

Implements DisplayDevice.

◆ initDevice() [2/2]

void initDevice ( )
virtual

Implements DisplayDevice.

◆ loadResolutions()

void loadResolutions ( )

◆ setGammaCorrection() [1/2]

bool setGammaCorrection ( F32 g)
virtual

Implements DisplayDevice.

◆ setGammaCorrection() [2/2]

bool setGammaCorrection ( F32 g)
virtual

Implements DisplayDevice.

◆ setScreenMode() [1/2]

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

Implements DisplayDevice.

◆ setScreenMode() [2/2]

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

Implements DisplayDevice.

◆ setVerticalSync() [1/2]

bool setVerticalSync ( bool on)
virtual

Implements DisplayDevice.

◆ setVerticalSync() [2/2]

bool setVerticalSync ( bool on)
virtual

Implements DisplayDevice.

◆ shutdown() [1/2]

void shutdown ( )
virtual

Implements DisplayDevice.

◆ shutdown() [2/2]

void shutdown ( )
virtual

Implements DisplayDevice.

◆ swapBuffers() [1/2]

void swapBuffers ( )
virtual

Implements DisplayDevice.

◆ swapBuffers() [2/2]

void swapBuffers ( )
virtual

Implements DisplayDevice.


The documentation for this class was generated from the following files: