Namespaces | Functions

GFXSetupLin32.cpp File Reference

Window system and OpenGL setup. More...

Namespaces

namespace  GFX
 

Graphics.


Functions

bool GFX::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 GFX::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 GraphicsSetup * GFX::GetWindowState ()
 Retrieves the current state of the window, or 0 if not running.
ScreenSize GFX::GetCurrentScreenSize ()
 Returns the resolution of the current screen.
void GFX::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 GFX::WindowHasFocus ()
 Returns whether the window currently has the user's focus.

Detailed Description

Window system and OpenGL setup.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends