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

#include <platformVideo.h>

Static Public Member Functions

static void init ()
static void destroy ()
static bool installDevice (DisplayDevice *dev)
static bool setDevice (const char *renderName, U32 width, U32 height, U32 bpp, bool fullScreen)
static void resetCanvas ()
static bool setScreenMode (U32 width, U32 height, U32 bpp, bool fullScreen)
static void deactivate (bool force=false)
static void reactivate (bool force=false)
static bool setResolution (U32 width, U32 height, U32 bpp)
static bool toggleFullScreen ()
static DisplayDevicegetDevice (const char *renderName)
static const char * getDeviceList ()
static const char * getResolutionList ()
static const char * getDriverInfo ()
static bool prevRes ()
static bool nextRes ()
static Resolution getResolution ()
static Resolution getDesktopResolution ()
static bool isFullScreen ()
static void swapBuffers ()
static bool getGammaCorrection (F32 &g)
static bool setGammaCorrection (F32 g)
static bool getVerticalSync ()
static bool setVerticalSync (bool on)

Static Public Attributes

static bool smNeedResurrect = false

Member Function Documentation

◆ deactivate()

void deactivate ( bool force = false)
static

◆ destroy()

void destroy ( )
static

◆ getDesktopResolution()

Resolution getDesktopResolution ( )
static

◆ getDevice()

DisplayDevice * getDevice ( const char * renderName)
static

◆ getDeviceList()

const char * getDeviceList ( )
static

◆ getDriverInfo()

const char * getDriverInfo ( )
static

◆ getGammaCorrection()

bool getGammaCorrection ( F32 & g)
static

◆ getResolution()

Resolution getResolution ( )
static

◆ getResolutionList()

const char * getResolutionList ( )
static

◆ getVerticalSync()

bool getVerticalSync ( )
static

◆ init()

void init ( )
static

◆ installDevice()

bool installDevice ( DisplayDevice * dev)
static

◆ isFullScreen()

bool isFullScreen ( )
static

◆ nextRes()

bool nextRes ( )
static

◆ prevRes()

bool prevRes ( )
static

◆ reactivate()

void reactivate ( bool force = false)
static

◆ resetCanvas()

void resetCanvas ( )
static

◆ setDevice()

bool setDevice ( const char * renderName,
U32 width,
U32 height,
U32 bpp,
bool fullScreen )
static

◆ setGammaCorrection()

bool setGammaCorrection ( F32 g)
static

◆ setResolution()

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

◆ setScreenMode()

bool setScreenMode ( U32 width,
U32 height,
U32 bpp,
bool fullScreen )
static

◆ setVerticalSync()

bool setVerticalSync ( bool on)
static

◆ swapBuffers()

void swapBuffers ( )
static

◆ toggleFullScreen()

bool toggleFullScreen ( )
static

Member Data Documentation

◆ smNeedResurrect

bool smNeedResurrect = false
static

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