K3dEngine Class Reference

#include <K3dEngine.h>

List of all members.

Public Member Functions

 K3dEngine ()
 ~K3dEngine ()
bool Init (int _argc, char *_argv[], bool _bReinit=false)
 Public Init.
int Start ()
 Start engine.

Private Member Functions

bool InitEngine (int _argc, char *_argv[], bool _bReinit=false)
 Init engine.
void Destroy ()
 Destroy engine.
bool ProcessEvent ()
 Catch system messages.
bool ToggleFullscreen ()
 Change fullscreen to window and vice versa.

Private Attributes

SDL_Surface * m_pScreen
 SDL screen.
K3dGameDatam_pGameData
 Game data.
K3dVMm_pVM
 Virtual machine.
K3dScenem_pScene
 Scene.
int m_argc
 Application arguments.
char ** m_argv
Uint32 m_uiFlags
 SDL fullscreen, window flags.
bool m_bIsFullscreen


Detailed Description

Definition at line 50 of file K3dEngine.h.


Constructor & Destructor Documentation

K3dEngine::K3dEngine (  ) 

Definition at line 34 of file K3dEngine.cpp.

K3dEngine::~K3dEngine (  ) 

Definition at line 39 of file K3dEngine.cpp.


Member Function Documentation

bool K3dEngine::InitEngine ( int  _argc,
char *  _argv[],
bool  _bReinit = false 
) [private]

Init engine.

Definition at line 61 of file K3dEngine.cpp.

References TGraphicOption::bFullscreen, K3dVM::Engine_Init(), K3dOptionsData::GetGraphicOption(), K3dOptionsData::GetScriptOption(), TGraphicOption::iColorBits, TGraphicOption::iHeight, K3dOpenGL::InitGL(), TGraphicOption::iWidth, K3dVM::LoadScript(), m_bIsFullscreen, m_pGameData, m_pScene, m_pScreen, m_pVM, m_uiFlags, K3dOptions::PrintParams(), K3dOpenGL::ResizeGL(), SDL_SUBSYSTEMS, TScriptOption::strDefault, TGraphicOption::uiFlags, and WIN_TITLE.

Referenced by Init().

void K3dEngine::Destroy (  )  [private]

Destroy engine.

Definition at line 195 of file K3dEngine.cpp.

References K3dScene::Delete(), K3dOptions::DeleteOptions(), K3dVM::Engine_Delete(), m_pGameData, m_pScene, and m_pVM.

Referenced by Init(), Start(), and ToggleFullscreen().

bool K3dEngine::ProcessEvent (  )  [private]

Catch system messages.

Definition at line 255 of file K3dEngine.cpp.

References K3dScene::GetExit(), K3dOptionsData::GetGraphicOption(), K3dGui::GetInput(), K3dSceneData::GetMouse(), TGraphicOption::iColorBits, m_pGameData, m_pScene, m_pScreen, K3dMouse::MousePosition(), K3dMouse::MousePositionRel(), K3dMouse::MouseWheelButtonDown(), K3dMouse::MouseWheelButtonUp(), K3dOptions::PrintParams(), TGraphicOption::ptScreen, K3dOpenGL::ResizeGL(), K3dGui::SetTargetPlane(), ToggleFullscreen(), and TGraphicOption::uiFlags.

Referenced by Start().

bool K3dEngine::ToggleFullscreen (  )  [private]

Change fullscreen to window and vice versa.

Definition at line 223 of file K3dEngine.cpp.

References Destroy(), Init(), m_argc, m_argv, m_bIsFullscreen, m_pScreen, and m_uiFlags.

Referenced by ProcessEvent().

bool K3dEngine::Init ( int  _argc,
char *  _argv[],
bool  _bReinit = false 
)

Public Init.

Definition at line 45 of file K3dEngine.cpp.

References Destroy(), InitEngine(), m_pScene, K3dOptions::PrintGraphicDriverInfo(), K3dOptions::PrintGraphicDriverName(), and K3dOptions::PrintModes().

Referenced by ToggleFullscreen().

int K3dEngine::Start (  ) 

Start engine.

Definition at line 366 of file K3dEngine.cpp.

References Destroy(), K3dScene::Draw(), K3dVM::Engine_Update(), m_pScene, m_pVM, ProcessEvent(), and K3dScene::Update().


Member Data Documentation

SDL_Surface* K3dEngine::m_pScreen [private]

SDL screen.

Definition at line 53 of file K3dEngine.h.

Referenced by InitEngine(), ProcessEvent(), and ToggleFullscreen().

K3dGameData* K3dEngine::m_pGameData [private]

Game data.

Definition at line 55 of file K3dEngine.h.

Referenced by Destroy(), InitEngine(), and ProcessEvent().

K3dVM* K3dEngine::m_pVM [private]

Virtual machine.

Definition at line 57 of file K3dEngine.h.

Referenced by Destroy(), InitEngine(), and Start().

K3dScene* K3dEngine::m_pScene [private]

Scene.

Definition at line 59 of file K3dEngine.h.

Referenced by Destroy(), Init(), InitEngine(), ProcessEvent(), and Start().

int K3dEngine::m_argc [private]

Application arguments.

Definition at line 61 of file K3dEngine.h.

Referenced by ToggleFullscreen().

char** K3dEngine::m_argv [private]

Definition at line 62 of file K3dEngine.h.

Referenced by ToggleFullscreen().

Uint32 K3dEngine::m_uiFlags [private]

SDL fullscreen, window flags.

Definition at line 64 of file K3dEngine.h.

Referenced by InitEngine(), and ToggleFullscreen().

bool K3dEngine::m_bIsFullscreen [private]

Definition at line 65 of file K3dEngine.h.

Referenced by InitEngine(), and ToggleFullscreen().


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