K3dOpenGL Class Reference

#include <K3dOpenGL.h>

Inheritance diagram for K3dOpenGL:

K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dOpenGL (K3dGameData *_pGameData)
 Constructor.
 ~K3dOpenGL ()
bool InitGL ()
 Initializing OpenGL.
void ResizeGL (const int _iWidth, int _iHeight)
 Resize OpenGL screen.
void Set2DProjection ()
 Set 2D projection matrix by graphics option.
void Set3DProjection ()
 Set 3D projection matrix by graphics option.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.

Detailed Description

Definition at line 38 of file K3dOpenGL.h.


Constructor & Destructor Documentation

K3dOpenGL::K3dOpenGL ( K3dGameData _pGameData  ) 

Constructor.

Parameters:
_pGameData Pointer to global game data
See also:
K3dGameData

Definition at line 39 of file K3dOpenGL.cpp.

References m_pGameData, and K3dSceneData::SetOpenGL().

K3dOpenGL::~K3dOpenGL (  ) 

Definition at line 46 of file K3dOpenGL.cpp.


Member Function Documentation

bool K3dOpenGL::InitGL (  )  [inline]

Initializing OpenGL.

Definition at line 53 of file K3dOpenGL.h.

Referenced by K3dEngine::InitEngine().

void K3dOpenGL::ResizeGL ( const int  _iWidth,
int  _iHeight 
)

Resize OpenGL screen.

Parameters:
_iWidth Screen width
_iHeight Screen height

Definition at line 76 of file K3dOpenGL.cpp.

References K3dOptionsData::GetGraphicOption(), TGraphicOption::iHeight, TGraphicOption::iWidth, m_pGameData, and Set3DProjection().

Referenced by K3dEngine::InitEngine(), and K3dEngine::ProcessEvent().

void K3dOpenGL::Set2DProjection (  ) 

Set 2D projection matrix by graphics option.

Definition at line 51 of file K3dOpenGL.cpp.

References K3dOptionsData::GetGraphicOption(), TGraphicOption::iHeight, TGraphicOption::iWidth, and m_pGameData.

Referenced by K3dMngGraphics::DrawMngGraphics().

void K3dOpenGL::Set3DProjection (  ) 

Set 3D projection matrix by graphics option.

Definition at line 61 of file K3dOpenGL.cpp.

References K3dOptionsData::GetGraphicOption(), TGraphicOption::iFarPlane, TGraphicOption::iFovy, TGraphicOption::iHeight, TGraphicOption::iNearPlane, TGraphicOption::iWidth, and m_pGameData.

Referenced by K3dMngGeometry::DrawMngGeometry(), and ResizeGL().


Member Data Documentation

K3dGameData* K3dOpenGL::m_pGameData [private]

Global game data, data centered game system.

Reimplemented in K3dScene, and K3dMngSystem.

Definition at line 40 of file K3dOpenGL.h.

Referenced by K3dOpenGL(), ResizeGL(), Set2DProjection(), and Set3DProjection().


The documentation for this class was generated from the following files:
Generated on Thu Aug 16 23:53:33 2007 for K3dEngine by  doxygen 1.5.0