Torque2D Reference
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Static Protected Attributes | List of all members
DisplayDevice Class Referenceabstract

#include <platformVideo.h>

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 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

virtual ~DisplayDevice ( )
inlinevirtual

Member Function Documentation

virtual bool activate ( U32  width,
U32  height,
U32  bpp,
bool  fullScreen 
)
pure virtual
virtual const char* getDriverInfo ( )
pure virtual
virtual bool getGammaCorrection ( F32 &  g)
pure virtual
Resolution getResolution ( )
inlinestatic
const char * getResolutionList ( )
void init ( )
static
virtual void initDevice ( )
pure virtual
bool isFullScreen ( )
inlinestatic
bool isFullScreenOnly ( )
inline
bool nextRes ( )
bool prevRes ( )
virtual bool setGammaCorrection ( F32  g)
pure virtual
bool setResolution ( U32  width,
U32  height,
U32  bpp 
)
inlinevirtual
virtual bool setScreenMode ( U32  width,
U32  height,
U32  bpp,
bool  fullScreen,
bool  forceIt = false,
bool  repaint = true 
)
pure virtual
virtual bool setVerticalSync ( bool  on)
pure virtual
virtual void shutdown ( )
pure virtual
virtual void swapBuffers ( )
pure virtual
bool toggleFullScreen ( )
inlinevirtual

Member Data Documentation

const char* mDeviceName
bool mFullScreenOnly
protected
Vector<Resolution> mResolutionList
protected
Resolution smCurrentRes
staticprotected
bool smIsFullScreen
staticprotected

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