Blender V2.61 - r43446
Public Member Functions | Protected Member Functions | Protected Attributes

GPG_Application Class Reference

#include <GPG_Application.h>

Inheritance diagram for GPG_Application:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GPG_Application (GHOST_ISystem *system)
 ~GPG_Application (void)
bool SetGameEngineData (struct Main *maggie, struct Scene *scene, GlobalSettings *gs, int argc, char **argv)
bool startWindow (STR_String &title, int windowLeft, int windowTop, int windowWidth, int windowHeight, const bool stereoVisual, const int stereoMode, const GHOST_TUns16 samples=0)
bool startFullScreen (int width, int height, int bpp, int frequency, const bool stereoVisual, const int stereoMode, const GHOST_TUns16 samples=0, bool useDesktop=false)
bool startEmbeddedWindow (STR_String &title, const GHOST_TEmbedderWindowID parent_window, const bool stereoVisual, const int stereoMode, const GHOST_TUns16 samples=0)
virtual bool processEvent (GHOST_IEvent *event)
int getExitRequested (void)
const STR_StringgetExitString (void)
GlobalSettingsgetGlobalSettings (void)
bool StartGameEngine (int stereoMode)
void StopGameEngine ()

Protected Member Functions

bool handleWheel (GHOST_IEvent *event)
bool handleButton (GHOST_IEvent *event, bool isDown)
bool handleCursorMove (GHOST_IEvent *event)
bool handleKey (GHOST_IEvent *event, bool isDown)
bool initEngine (GHOST_IWindow *window, int stereoMode)
bool startEngine (void)
void stopEngine (void)
void exitEngine (void)

Protected Attributes

short m_exitkey
STR_String m_startSceneName
struct Scenem_startScene
struct Mainm_maggie
int m_exitRequested
STR_String m_exitString
GlobalSettingsm_globalSettings
GHOST_ISystemm_system
GHOST_IWindowm_mainWindow
GHOST_ITimerTaskm_frameTimer
GHOST_TStandardCursor m_cursor
bool m_engineInitialized
bool m_engineRunning
bool m_isEmbedded
KX_KetsjiEnginem_ketsjiengine
GPG_Systemm_kxsystem
GPG_KeyboardDevicem_keyboard
GPC_MouseDevicem_mouse
GPG_Canvasm_canvas
GPC_RenderToolsm_rendertools
RAS_IRasterizerm_rasterizer
KX_ISceneConverterm_sceneconverter
NG_LoopBackNetworkDeviceInterfacem_networkdevice
bool m_blendermat
bool m_blenderglslmat
char * m_pyGlobalDictString
int m_pyGlobalDictString_Length
int m_argc
char ** m_argv

Detailed Description

Definition at line 58 of file GPG_Application.h.


Constructor & Destructor Documentation

GPG_Application::GPG_Application ( GHOST_ISystem system)

Definition at line 108 of file GPG_Application.cpp.

GPG_Application::~GPG_Application ( void  )

Member Function Documentation

void GPG_Application::exitEngine ( void  ) [protected]
int GPG_Application::getExitRequested ( void  )

Definition at line 513 of file GPG_Application.cpp.

References m_exitRequested.

Referenced by main().

const STR_String & GPG_Application::getExitString ( void  )

Definition at line 526 of file GPG_Application.cpp.

References m_exitString.

Referenced by main().

GlobalSettings * GPG_Application::getGlobalSettings ( void  )

Definition at line 519 of file GPG_Application.cpp.

References KX_KetsjiEngine::GetGlobalSettings(), and m_ketsjiengine.

Referenced by main().

bool GPG_Application::handleButton ( GHOST_IEvent event,
bool  isDown 
) [protected]
bool GPG_Application::handleCursorMove ( GHOST_IEvent event) [protected]
bool GPG_Application::handleKey ( GHOST_IEvent event,
bool  isDown 
) [protected]
bool GPG_Application::handleWheel ( GHOST_IEvent event) [protected]
bool GPG_Application::initEngine ( GHOST_IWindow window,
int  stereoMode 
) [protected]
bool GPG_Application::processEvent ( GHOST_IEvent event) [virtual]
bool GPG_Application::SetGameEngineData ( struct Main maggie,
struct Scene scene,
GlobalSettings gs,
int  argc,
char **  argv 
)

Definition at line 153 of file GPG_Application.cpp.

References Scene::id, m_argc, m_argv, m_globalSettings, m_maggie, m_startScene, m_startSceneName, ID::name, and NULL.

Referenced by main().

bool GPG_Application::startEmbeddedWindow ( STR_String title,
const GHOST_TEmbedderWindowID  parent_window,
const bool  stereoVisual,
const int  stereoMode,
const GHOST_TUns16  samples = 0 
)
bool GPG_Application::startEngine ( void  ) [protected]
bool GPG_Application::startFullScreen ( int  width,
int  height,
int  bpp,
int  frequency,
const bool  stereoVisual,
const int  stereoMode,
const GHOST_TUns16  samples = 0,
bool  useDesktop = false 
)
bool GPG_Application::StartGameEngine ( int  stereoMode)

Definition at line 402 of file GPG_Application.cpp.

References initEngine(), m_mainWindow, and startEngine().

Referenced by main().

bool GPG_Application::startWindow ( STR_String title,
int  windowLeft,
int  windowTop,
int  windowWidth,
int  windowHeight,
const bool  stereoVisual,
const int  stereoMode,
const GHOST_TUns16  samples = 0 
)
void GPG_Application::stopEngine ( void  ) [protected]
void GPG_Application::StopGameEngine ( )

Definition at line 414 of file GPG_Application.cpp.

References exitEngine().

Referenced by main().


Member Data Documentation

int GPG_Application::m_argc [protected]

Definition at line 164 of file GPG_Application.h.

Referenced by SetGameEngineData(), and startEngine().

char** GPG_Application::m_argv [protected]

Definition at line 165 of file GPG_Application.h.

Referenced by SetGameEngineData(), and startEngine().

Definition at line 154 of file GPG_Application.h.

Referenced by initEngine(), and startEngine().

Definition at line 153 of file GPG_Application.h.

Referenced by initEngine(), and startEngine().

The game engine's canvas abstraction.

Definition at line 143 of file GPG_Application.h.

Referenced by exitEngine(), initEngine(), processEvent(), and startEngine().

Definition at line 125 of file GPG_Application.h.

Engine construction state.

Definition at line 128 of file GPG_Application.h.

Referenced by exitEngine(), and initEngine().

Engine state.

Definition at line 130 of file GPG_Application.h.

Referenced by startEngine(), and stopEngine().

short GPG_Application::m_exitkey [protected]

Definition at line 106 of file GPG_Application.h.

Definition at line 114 of file GPG_Application.h.

Referenced by exitEngine(), getExitRequested(), handleKey(), and processEvent().

Definition at line 115 of file GPG_Application.h.

Referenced by getExitString(), and processEvent().

Definition at line 123 of file GPG_Application.h.

Referenced by startEngine(), and stopEngine().

Definition at line 116 of file GPG_Application.h.

Referenced by initEngine(), SetGameEngineData(), and startEngine().

Running on embedded window

Definition at line 132 of file GPG_Application.h.

Referenced by handleKey(), and startEmbeddedWindow().

the gameengine itself

Definition at line 135 of file GPG_Application.h.

Referenced by exitEngine(), getGlobalSettings(), initEngine(), processEvent(), startEngine(), and stopEngine().

The game engine's keyboard abstraction.

Definition at line 139 of file GPG_Application.h.

Referenced by exitEngine(), handleKey(), initEngine(), and startEngine().

The game engine's system abstraction.

Definition at line 137 of file GPG_Application.h.

Referenced by exitEngine(), initEngine(), and processEvent().

struct Main* GPG_Application::m_maggie [protected]

Definition at line 111 of file GPG_Application.h.

Referenced by initEngine(), SetGameEngineData(), and startEngine().

The game engine's mouse abstraction.

Definition at line 141 of file GPG_Application.h.

Referenced by exitEngine(), handleButton(), handleCursorMove(), handleWheel(), initEngine(), and startEngine().

Network interface.

Definition at line 151 of file GPG_Application.h.

Referenced by exitEngine(), initEngine(), startEngine(), and stopEngine().

Definition at line 160 of file GPG_Application.h.

Referenced by startEngine(), stopEngine(), and ~GPG_Application().

Definition at line 161 of file GPG_Application.h.

Referenced by startEngine(), stopEngine(), and ~GPG_Application().

the rasterizer

Definition at line 147 of file GPG_Application.h.

Referenced by exitEngine(), initEngine(), and startEngine().

The game engine's platform dependent render tools.

Definition at line 145 of file GPG_Application.h.

Referenced by exitEngine(), initEngine(), and startEngine().

Converts Blender data files.

Definition at line 149 of file GPG_Application.h.

Referenced by startEngine(), and stopEngine().

struct Scene* GPG_Application::m_startScene [protected]

Definition at line 110 of file GPG_Application.h.

Referenced by initEngine(), SetGameEngineData(), and startEngine().

Definition at line 109 of file GPG_Application.h.

Referenced by SetGameEngineData(), and startEngine().

Definition at line 119 of file GPG_Application.h.

Referenced by initEngine(), processEvent(), startEngine(), and stopEngine().


The documentation for this class was generated from the following files: