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

Loads plugins and manage them. More...

#include <PluginManager.h>

Public Member Functions

virtual ~PluginManager ()
 Destructor.
int LoadPlugin (const char *name)
void Release ()
 Release all loaded plugin from memory.
int GetRendererPluginsCount ()
 Returns the count of Renderer plugins that loaded in engine.
RendererPluginGetRendererPlugin (int index)
 Get renderer plugin with its index.
int RegisterRenderer (RendererPlugin *pRenPlug)
int GetInputManagerPluginCount ()
 Returns the count of InputManager plugins that loaded in engine.
InputMgrPluginGetInputManagerPlugin (int index)
 Get InputManager plugin with its index.
int RegisterInputManager (InputMgrPlugin *pInputMgrPlug)
int RegisterLoader (LoaderPlugin *pLoaderPlug)
int RegisterFileSystem (FileSystemPlugin *pFileSysPlug)

Static Public Member Functions

static PluginManagerGetSingletonPtr ()
 Returns the PluginManager singleton pointer.

Protected Member Functions

 PluginManager ()
 Protected Constructor.

Protected Attributes

std::vector< RendererPlugin * > m_vRendererPlugins
 Renderer plugins list.
std::vector< InputMgrPlugin * > m_vInputMgrPlugins
 Input manager plugins list.
std::vector< FileSystemPlugin * > m_vFileSystemPlugins
 File system plugins list.
std::vector< LoaderPlugin * > m_vLoaderPlugins
 Resource loaders plugins list.

Detailed Description

Loads plugins and manage them.

Definition at line 38 of file PluginManager.h.

Constructor & Destructor Documentation

virtual kge::PluginManager::~PluginManager ( )
virtual

Destructor.

kge::PluginManager::PluginManager ( )
protected

Protected Constructor.

Member Function Documentation

InputMgrPlugin* kge::PluginManager::GetInputManagerPlugin ( int  index)
inline

Get InputManager plugin with its index.

Parameters
indexThe index of registered InputManager plugin.
Returns
Returns the requested InputManager plugin
See Also
GetInputManagerPluginCount()

Definition at line 95 of file PluginManager.h.

int kge::PluginManager::GetInputManagerPluginCount ( )
inline

Returns the count of InputManager plugins that loaded in engine.

Returns
Returns the count of InputManager plugins that loaded in engine
See Also
GetInputManagerPlugin()

Definition at line 87 of file PluginManager.h.

RendererPlugin* kge::PluginManager::GetRendererPlugin ( int  index)
inline

Get renderer plugin with its index.

Parameters
indexThe index of registered renderer plugins.
Returns
Returns the requested renderer plugin
See Also
GetRendererPluginsCount()

Definition at line 72 of file PluginManager.h.

int kge::PluginManager::GetRendererPluginsCount ( )
inline

Returns the count of Renderer plugins that loaded in engine.

Returns
Returns the count of Renderer plugins that loaded in engine
See Also
GetRendererPlugin()

Definition at line 64 of file PluginManager.h.

static PluginManager* kge::PluginManager::GetSingletonPtr ( )
static

Returns the PluginManager singleton pointer.

int kge::PluginManager::LoadPlugin ( const char *  name)

Loads a plugin from a .dll or .so file.

int kge::PluginManager::RegisterFileSystem ( FileSystemPlugin pFileSysPlug)

With this interface a FileSystem Plugin will register himself with PluginManager.

int kge::PluginManager::RegisterInputManager ( InputMgrPlugin pInputMgrPlug)

With this interface an InputManager Plugin will register himself with PluginManager.

int kge::PluginManager::RegisterLoader ( LoaderPlugin pLoaderPlug)

With this interface a Resource Loader Plugin will register himself with PluginManager.

int kge::PluginManager::RegisterRenderer ( RendererPlugin pRenPlug)

With this interface a Renderer Plugin will register himself with PluginManager.

void kge::PluginManager::Release ( )

Release all loaded plugin from memory.

Member Data Documentation

std::vector<FileSystemPlugin*> kge::PluginManager::m_vFileSystemPlugins
protected

File system plugins list.

Definition at line 123 of file PluginManager.h.

std::vector<InputMgrPlugin*> kge::PluginManager::m_vInputMgrPlugins
protected

Input manager plugins list.

Definition at line 122 of file PluginManager.h.

std::vector<LoaderPlugin*> kge::PluginManager::m_vLoaderPlugins
protected

Resource loaders plugins list.

Definition at line 124 of file PluginManager.h.

std::vector<RendererPlugin*> kge::PluginManager::m_vRendererPlugins
protected

Renderer plugins list.

Definition at line 121 of file PluginManager.h.


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