Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OpenGLApp Class Reference

#include <OpenGLApp.h>

Inherits Application.

Inherited by MainApp.

Inheritance diagram for OpenGLApp:

Inheritance graph
[legend]
List of all members.

Public Member Functions

bool createWindow (HINSTANCE hInstance)
bool changeScreenResolution (unsigned int width, unsigned int height, unsigned int bitsPerPixel)
void flush ()
void destroyWindow ()
void setViewport (unsigned int width, unsigned int height)

Public Attributes

HDC hDC

Protected Attributes

HGLRC hRC

Detailed Description

OpenGLApp.h

Author: Petter Alstermark, petter@alstermark.com

Definition at line 13 of file OpenGLApp.h.


Member Function Documentation

bool OpenGLApp::changeScreenResolution unsigned int  width,
unsigned int  height,
unsigned int  bitsPerPixel
 

Definition at line 118 of file OpenGLApp.cpp.

Referenced by createWindow().

bool OpenGLApp::createWindow HINSTANCE  hInstance  )  [virtual]
 

OpenGLApp.cpp

Author: Petter Alstermark, petter@alstermark.com

Reimplemented from Application.

Definition at line 12 of file OpenGLApp.cpp.

References changeScreenResolution(), g_bitsPerPixel, g_fullscreen, g_fullscreenHeight, g_fullscreenWidth, g_visible, g_windowBottom, g_windowLeft, g_windowRight, g_windowTop, hDC, hRC, Application::hWnd, initExtensions(), Application::renderer, and setViewport().

Here is the call graph for this function:

void OpenGLApp::destroyWindow  )  [virtual]
 

Implements Application.

Definition at line 134 of file OpenGLApp.cpp.

References g_fullscreen, hDC, hRC, Application::hWnd, Application::renderer, Application::resetDisplayMode(), and Application::showCursor().

Here is the call graph for this function:

void OpenGLApp::flush  )  [inline, virtual]
 

Implements Application.

Definition at line 17 of file OpenGLApp.h.

References hDC.

Referenced by MainApp::drawFrame(), and MainApp::drawLoading().

void OpenGLApp::setViewport unsigned int  width,
unsigned int  height
[virtual]
 

Implements Application.

Definition at line 162 of file OpenGLApp.cpp.

Referenced by createWindow().


Member Data Documentation

HDC OpenGLApp::hDC
 

Definition at line 22 of file OpenGLApp.h.

Referenced by createWindow(), destroyWindow(), flush(), and MainApp::load().

HGLRC OpenGLApp::hRC [protected]
 

Definition at line 25 of file OpenGLApp.h.

Referenced by createWindow(), and destroyWindow().


Generated on Sun Jun 5 15:50:30 2005 for Defacto by  doxygen 1.4.3