#include <K3dOpenGL.h>
Inheritance diagram for K3dOpenGL:

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 | |
| K3dGameData * | m_pGameData |
| Global game data, data centered game system. | |
Definition at line 38 of file K3dOpenGL.h.
| K3dOpenGL::K3dOpenGL | ( | K3dGameData * | _pGameData | ) |
Constructor.
| _pGameData | Pointer to global game data |
Definition at line 39 of file K3dOpenGL.cpp.
References m_pGameData, and K3dSceneData::SetOpenGL().
| K3dOpenGL::~K3dOpenGL | ( | ) |
Definition at line 46 of file K3dOpenGL.cpp.
| 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.
| _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().
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().
1.5.0