Torque2D Reference
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Static Protected Attributes | List of all members
DisplayDevice Class Referenceabstract

#include <platformVideo.h>

+ Inheritance diagram for DisplayDevice:

Public Member Functions

 DisplayDevice ()
 
virtual ~DisplayDevice ()
 
virtual void initDevice ()=0
 
virtual bool activate (U32 width, U32 height, U32 bpp, bool fullScreen)=0
 
virtual void shutdown ()=0
 
virtual bool setScreenMode (U32 width, U32 height, U32 bpp, bool fullScreen, bool forceIt=false, bool repaint=true)=0
 
virtual bool setResolution (U32 width, U32 height, U32 bpp)
 
virtual bool toggleFullScreen ()
 
virtual void swapBuffers ()=0
 
virtual const char * getDriverInfo ()=0
 
virtual bool getGammaCorrection (F32 &g)=0
 
virtual bool setGammaCorrection (F32 g)=0
 
virtual bool getVerticalSync ()=0
 
virtual bool setVerticalSync (bool on)=0
 
bool prevRes ()
 
bool nextRes ()
 
const char * getResolutionList ()
 
bool isFullScreenOnly ()
 

Static Public Member Functions

static void init ()
 
static Resolution getResolution ()
 
static bool isFullScreen ()
 

Public Attributes

const char * mDeviceName
 

Protected Attributes

Vector< ResolutionmResolutionList
 
bool mFullScreenOnly
 

Static Protected Attributes

static Resolution smCurrentRes
 
static bool smIsFullScreen
 

Constructor & Destructor Documentation

◆ DisplayDevice()

◆ ~DisplayDevice()

virtual ~DisplayDevice ( )
inlinevirtual

Member Function Documentation

◆ activate()

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

Implemented in OpenGLDevice, and OpenGLDevice.

◆ getDriverInfo()

virtual const char * getDriverInfo ( )
pure virtual

Implemented in OpenGLDevice, and OpenGLDevice.

◆ getGammaCorrection()

virtual bool getGammaCorrection ( F32 &  g)
pure virtual

Implemented in OpenGLDevice, and OpenGLDevice.

◆ getResolution()

Resolution getResolution ( )
inlinestatic

◆ getResolutionList()

const char * getResolutionList ( )

◆ getVerticalSync()

virtual bool getVerticalSync ( )
pure virtual

Implemented in OpenGLDevice.

◆ init()

void init ( )
static

◆ initDevice()

virtual void initDevice ( )
pure virtual

Implemented in OpenGLDevice, and OpenGLDevice.

◆ isFullScreen()

bool isFullScreen ( )
inlinestatic

◆ isFullScreenOnly()

bool isFullScreenOnly ( )
inline

◆ nextRes()

bool nextRes ( )

◆ prevRes()

bool prevRes ( )

◆ setGammaCorrection()

virtual bool setGammaCorrection ( F32  g)
pure virtual

Implemented in OpenGLDevice, and OpenGLDevice.

◆ setResolution()

bool setResolution ( U32  width,
U32  height,
U32  bpp 
)
inlinevirtual

◆ setScreenMode()

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

Implemented in OpenGLDevice, and OpenGLDevice.

◆ setVerticalSync()

virtual bool setVerticalSync ( bool  on)
pure virtual

Implemented in OpenGLDevice, and OpenGLDevice.

◆ shutdown()

virtual void shutdown ( )
pure virtual

Implemented in OpenGLDevice, and OpenGLDevice.

◆ swapBuffers()

virtual void swapBuffers ( )
pure virtual

Implemented in OpenGLDevice, and OpenGLDevice.

◆ toggleFullScreen()

bool toggleFullScreen ( )
inlinevirtual

Member Data Documentation

◆ mDeviceName

const char* mDeviceName

◆ mFullScreenOnly

bool mFullScreenOnly
protected

◆ mResolutionList

Vector<Resolution> mResolutionList
protected

◆ smCurrentRes

Resolution smCurrentRes
staticprotected

◆ smIsFullScreen

bool smIsFullScreen
staticprotected

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