Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::Device Class Reference

This is the main class that user must create and Device will create other parts of engine. More...

#include <Device.h>

Inheritance diagram for kge::Device:
kge::KgeUnknown

Public Member Functions

 Device ()
 Constructor.
 ~Device ()
 Destructor.
bool Init (InitParameters &params)
bool Run ()
gfx::RendererGetRenderer ()
void SetWindowCaption (const char *Text)
 Sets the rendering window caption.
void SetMouseCursor (kge::io::CURSOR_TYPES cur)
 Change the mouse cursur type.
sn::SceneManagerGetSceneManager ()
 Gets the main scene manager pointer.
io::IWindowGetWindow ()
 returns the rendering window.
gui::GuiManagerGetGuiManager ()
 Returns the GUI manager pointer.
PluginManagerGetPluginManager ()
 Return the plugin manager pointer then you can load the plugins for KGE.
ResourceManager< gfx::Image > * GetImageManager ()
 Return the Image resource manager.
ResourceManager< gfx::Texture > * GetTextureManager ()
 Returns the texture manager.
ResourceManager< gfx::Shader > * GetVertexShaderManager ()
 Returns the vertex shader manager.
ResourceManager< gfx::Shader > * GetPixelShaderManager ()
 Returns the pixel shader manager.
ph::PhysManagerGetPhysManager (ph::PhysicsEngineType enumPhysType=ph::EPET_PhysX)
 Returns the requested physics engine manager. Only one physics engine can be used at the same time.
av::SoundSystemGetSoundSystem () const
 Returns a pointer to the sound system.
ResourceManager< gui::Font > * GetFontManager ()
 Returns the font manager.
efx::EffectManagerGetEffectManager ()
 Returns the effect manager.
io::IWindowCreateNewWindow ()
 Creates a new window and return its pointer.
InitParameters GetParams ()
- Public Member Functions inherited from kge::KgeUnknown
 KgeUnknown ()
 Constructor.
virtual ~KgeUnknown ()
 Destructor.
virtual void AddRef ()
 Add a reference to the object.
virtual void DecRef ()
 Decrease a reference from the object. if its reference count get 0 then the object will destroy.
u32 GetRefCount ()
 Return resource reference count.
const char * GetDebugText ()
 returns the instance debug text.

Static Public Member Functions

static DeviceGetSingletonPtr ()
 Returns the Device class pointer.

Protected Attributes

io::IWindowm_pWindow
gfx::Rendererm_pRenderer
sn::SceneManagerm_pSnMan
gui::GuiManagerm_pGuimgr
PluginManagerm_pPluginmgr
ph::PhysManagerm_pPhysManager
av::SoundSystemm_pSoundSystem
efx::EffectManagerm_pEffectManager
gfx::RendererAPI m_RA
InitParameters m_Params
ResourceManager< gfx::Image > * m_pImageMan
 Image managers.
ResourceManager< gfx::Texture > * m_pTextureManager
ResourceManager< gfx::Shader > * m_pVertexShaderManager
ResourceManager< gfx::Shader > * m_pPixelShaderManager
ResourceManager< gui::Font > * m_pFontManager
 Font manager.

Additional Inherited Members

- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *text)

Detailed Description

This is the main class that user must create and Device will create other parts of engine.

Definition at line 54 of file Device.h.

Constructor & Destructor Documentation

kge::Device::Device ( )

Constructor.

kge::Device::~Device ( )

Destructor.

Member Function Documentation

io::IWindow* kge::Device::CreateNewWindow ( )

Creates a new window and return its pointer.

efx::EffectManager* kge::Device::GetEffectManager ( )
inline

Returns the effect manager.

Definition at line 119 of file Device.h.

ResourceManager<gui::Font>* kge::Device::GetFontManager ( )
inline

Returns the font manager.

Definition at line 116 of file Device.h.

gui::GuiManager* kge::Device::GetGuiManager ( )
inline

Returns the GUI manager pointer.

Definition at line 92 of file Device.h.

ResourceManager<gfx::Image>* kge::Device::GetImageManager ( )
inline

Return the Image resource manager.

Definition at line 98 of file Device.h.

InitParameters kge::Device::GetParams ( )
inline

Definition at line 124 of file Device.h.

ph::PhysManager* kge::Device::GetPhysManager ( ph::PhysicsEngineType  enumPhysType = ph::EPET_PhysX)

Returns the requested physics engine manager. Only one physics engine can be used at the same time.

ResourceManager<gfx::Shader>* kge::Device::GetPixelShaderManager ( )
inline

Returns the pixel shader manager.

Definition at line 107 of file Device.h.

PluginManager* kge::Device::GetPluginManager ( )
inline

Return the plugin manager pointer then you can load the plugins for KGE.

Definition at line 95 of file Device.h.

gfx::Renderer* kge::Device::GetRenderer ( )
sn::SceneManager* kge::Device::GetSceneManager ( )
inline

Gets the main scene manager pointer.

Definition at line 86 of file Device.h.

Referenced by kge::sn::Bone::AddChild().

static Device* kge::Device::GetSingletonPtr ( )
static

Returns the Device class pointer.

Referenced by kge::sn::Bone::AddChild().

av::SoundSystem* kge::Device::GetSoundSystem ( ) const
inline

Returns a pointer to the sound system.

Definition at line 113 of file Device.h.

ResourceManager<gfx::Texture>* kge::Device::GetTextureManager ( )
inline

Returns the texture manager.

Definition at line 101 of file Device.h.

ResourceManager<gfx::Shader>* kge::Device::GetVertexShaderManager ( )
inline

Returns the vertex shader manager.

Definition at line 104 of file Device.h.

io::IWindow* kge::Device::GetWindow ( )

returns the rendering window.

bool kge::Device::Init ( InitParameters params)

Inits the engine and its submoduoles

Parameters
paramsThe parameters for initialzing engine
bool kge::Device::Run ( )
void kge::Device::SetMouseCursor ( kge::io::CURSOR_TYPES  cur)
inline

Change the mouse cursur type.

Definition at line 82 of file Device.h.

void kge::Device::SetWindowCaption ( const char *  Text)
inline

Sets the rendering window caption.

Definition at line 79 of file Device.h.

Member Data Documentation

InitParameters kge::Device::m_Params
protected

Definition at line 138 of file Device.h.

efx::EffectManager* kge::Device::m_pEffectManager
protected

Definition at line 135 of file Device.h.

ResourceManager<gui::Font>* kge::Device::m_pFontManager
protected

Font manager.

Definition at line 149 of file Device.h.

gui::GuiManager* kge::Device::m_pGuimgr
protected

Definition at line 130 of file Device.h.

ResourceManager<gfx::Image>* kge::Device::m_pImageMan
protected

Image managers.

Definition at line 141 of file Device.h.

ph::PhysManager* kge::Device::m_pPhysManager
protected

Definition at line 132 of file Device.h.

ResourceManager<gfx::Shader>* kge::Device::m_pPixelShaderManager
protected

Pixel Shader Manager pointer

Definition at line 147 of file Device.h.

PluginManager* kge::Device::m_pPluginmgr
protected

Definition at line 131 of file Device.h.

gfx::Renderer* kge::Device::m_pRenderer
protected

Definition at line 128 of file Device.h.

sn::SceneManager* kge::Device::m_pSnMan
protected

Definition at line 129 of file Device.h.

av::SoundSystem* kge::Device::m_pSoundSystem
protected

Definition at line 133 of file Device.h.

ResourceManager<gfx::Texture>* kge::Device::m_pTextureManager
protected

Texture Manager pointer

Definition at line 143 of file Device.h.

ResourceManager<gfx::Shader>* kge::Device::m_pVertexShaderManager
protected

Vertex Shader Manager pointer

Definition at line 145 of file Device.h.

io::IWindow* kge::Device::m_pWindow
protected

Definition at line 127 of file Device.h.

gfx::RendererAPI kge::Device::m_RA
protected

Definition at line 137 of file Device.h.


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