![]() |
Kochol Game Engine
0.1.0
|
This is the main class that user must create and Device will create other parts of engine. More...
#include <Device.h>
Public Member Functions | |
Device () | |
Constructor. | |
~Device () | |
Destructor. | |
bool | Init (InitParameters ¶ms) |
bool | Run () |
gfx::Renderer * | GetRenderer () |
void | SetWindowCaption (const char *Text) |
Sets the rendering window caption. | |
void | SetMouseCursor (kge::io::CURSOR_TYPES cur) |
Change the mouse cursur type. | |
sn::SceneManager * | GetSceneManager () |
Gets the main scene manager pointer. | |
io::IWindow * | GetWindow () |
returns the rendering window. | |
gui::GuiManager * | GetGuiManager () |
Returns the GUI manager pointer. | |
PluginManager * | GetPluginManager () |
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::PhysManager * | GetPhysManager (ph::PhysicsEngineType enumPhysType=ph::EPET_PhysX) |
Returns the requested physics engine manager. Only one physics engine can be used at the same time. | |
av::SoundSystem * | GetSoundSystem () const |
Returns a pointer to the sound system. | |
ResourceManager< gui::Font > * | GetFontManager () |
Returns the font manager. | |
efx::EffectManager * | GetEffectManager () |
Returns the effect manager. | |
io::IWindow * | CreateNewWindow () |
Creates a new window and return its pointer. | |
InitParameters | GetParams () |
![]() | |
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 Device * | GetSingletonPtr () |
Returns the Device class pointer. |
Protected Attributes | |
io::IWindow * | m_pWindow |
gfx::Renderer * | m_pRenderer |
sn::SceneManager * | m_pSnMan |
gui::GuiManager * | m_pGuimgr |
PluginManager * | m_pPluginmgr |
ph::PhysManager * | m_pPhysManager |
av::SoundSystem * | m_pSoundSystem |
efx::EffectManager * | m_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 | |
![]() | |
void | SetDebugText (char *text) |
This is the main class that user must create and Device will create other parts of engine.
kge::Device::Device | ( | ) |
Constructor.
kge::Device::~Device | ( | ) |
Destructor.
io::IWindow* kge::Device::CreateNewWindow | ( | ) |
Creates a new window and return its pointer.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
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.
|
inline |
|
inline |
gfx::Renderer* kge::Device::GetRenderer | ( | ) |
|
inline |
Gets the main scene manager pointer.
Definition at line 86 of file Device.h.
Referenced by kge::sn::Bone::AddChild().
|
static |
Returns the Device class pointer.
Referenced by kge::sn::Bone::AddChild().
|
inline |
|
inline |
|
inline |
io::IWindow* kge::Device::GetWindow | ( | ) |
returns the rendering window.
bool kge::Device::Init | ( | InitParameters & | params | ) |
Inits the engine and its submoduoles
params | The parameters for initialzing engine |
bool kge::Device::Run | ( | ) |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |