GFX Namespace Reference

Graphics. More...


Classes

struct  ScreenSize
 Represents a the size of a window or screen. More...
struct  GraphicsSetup
 Represents the state of graphics system and its related window. Everything in here can be both changed or read from. More...

Functions

bool SetupWindow (const GraphicsSetup &newState)
 Creates or updates the state of the applications window and sets up OpenGL. Returns true if changing to the specified settings was successful, false if it failed. This must be called at least once before OpenGL can be used. Only the thread that called this to create the window may make OpenGL calls.
void ShutdownWindow ()
 Closes the window and shuts down the graphics system. This must be called from the same thread that called SetupWindow to create the initial window.
const GraphicsSetupGetWindowState ()
 Retrieves the current state of the window, or 0 if not running.
void UpdateWindow ()
 Handles any window system events, and exposes the backbuffer. You should normally call this every frame. You should check GetWindowState after calling this to verify that the window still exists. This must be called from the same thread that called SetupWindow to create the initial window.
bool WindowHasFocus ()
 Returns whether the window currently has the user's focus.
ScreenSize GetCurrentScreenSize ()
 Returns the resolution of the current screen.


Detailed Description

Graphics.

Generated on Sat Aug 9 15:05:10 2008 for MPMA Framework by  doxygen 1.5.6