Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | List of all members
osxOpenGLDevice Class Reference

`#include <osxOpenGLDevice.h>`

Inheritance diagram for osxOpenGLDevice:

## Public Member Functions
| osxOpenGLDevice ()
void | initDevice ()
| The following are inherited from DisplayDevice. More...
bool | cleanUpContext ()
bool | activate (U32 width, U32 height, U32 bpp, bool fullScreen)
void | shutdown ()
NSOpenGLPixelFormat * | generateValidPixelFormat (bool fullscreen, U32 bpp, U32 samples)
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 sync)
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 DisplayDevice * | create ()
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< Resolution > | mResolutionList
bool | mFullScreenOnly
Static Protected Attributes inherited from DisplayDevice
static Resolution | smCurrentRes
static bool | smIsFullScreen

## Constructor & Destructor Documentation

osxOpenGLDevice | ( |  | ) |

## Member Function Documentation

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

Implements DisplayDevice.

bool cleanUpContext | ( |  | ) |

static DisplayDevice* create | ( |  | ) |
| static

NSOpenGLPixelFormat * generateValidPixelFormat | ( | bool | fullscreen,
|  | U32 | bpp,
|  | U32 | samples
| ) |  |

const char * getDriverInfo | ( |  | ) |
| virtual

Implements DisplayDevice.

bool getGammaCorrection | ( | F32 & | g | ) |
| virtual

Implements DisplayDevice.

void initDevice | ( |  | ) |
| virtual

The following are inherited from DisplayDevice.

Implements DisplayDevice.

bool setGammaCorrection | ( | F32 | g | ) |
| virtual

Implements DisplayDevice.

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

Implements DisplayDevice.

bool setVerticalSync | ( | bool | sync | ) |
| virtual

Implements DisplayDevice.

void shutdown | ( |  | ) |
| virtual

Implements DisplayDevice.

void swapBuffers | ( |  | ) |
| virtual

Implements DisplayDevice.

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

- platformOSX/osxOpenGLDevice.h
- platformOSX/osxOpenGLDevice.mm