libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moResourceManager Class Reference

Administrador de recursos. More...

#include <moResourceManager.h>

Inheritance diagram for moResourceManager:
moAbstract

Public Member Functions

 moResourceManager ()
 
virtual ~moResourceManager ()
 
virtual MOboolean Init (const moText &p_apppath, const moText &p_datapath, moConfig &p_consoleconfig, MOint p_render_to_texture_mode=0, MOint p_screen_width=320, MOint p_screen_height=240, MOint p_render_width=320, MOint p_render_height=240, MO_HANDLE p_OpWindowHandle=0, MO_DISPLAY p_Display=NULL)
 
virtual MOboolean Finish ()
 
moResourceNewResource (const moText &p_resname, const moText &p_configname, const moText &p_labelname, const moText &p_keyname, int paramindex=-1, int valueindex=-1, bool p_activate=true)
 
MOboolean AddResource (moResource *m_pResource)
 
MOboolean RemoveResource (MOint p_index)
 
MOint GetResourceIndex (moText p_labelname)
 
moText GetResourceName (MOint p_index)
 
moText GetResourceLabelName (MOint p_index)
 
moResourceGetResource (MOint p_index)
 
moResourceType GetResourceType (MOint p_index)
 
moResourceGetResourceByType (moResourceType p_type)
 
moResources & Resources ()
 
moFileManagerGetFileMan ()
 
moVideoManagerGetVideoMan ()
 
moFilterManagerGetFilterMan ()
 
moNetManagerGetNetMan ()
 
moDataManagerGetDataMan ()
 
moTimeManagerGetTimeMan ()
 
moFBManagerGetFBMan ()
 
moGLManagerGetGLMan ()
 
moRenderManagerGetRenderMan ()
 
moMathManagerGetMathMan ()
 
moShaderManagerGetShaderMan ()
 
moFontManagerGetFontMan ()
 
moGUIManagerGetGuiMan ()
 
moScriptManagerGetScriptMan ()
 
moTextureManagerGetTextureMan ()
 
moSoundManagerGetSoundMan ()
 
mo3dModelManagerGetModelMan ()
 
moDebugManagerGetDebugMan ()
 
moDecoderManagerGetDecoderMan ()
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

Additional Inherited Members

- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 

Detailed Description

Administrador de recursos.

los recursos son aquellos objetos que implementan funciones de tratamiento de datos, generalmente de dispositivos físicos, como son imágenes, videos, bases de dato

See also
moResource

Definition at line 224 of file moResourceManager.h.

Constructor & Destructor Documentation

moResourceManager::moResourceManager ( )

constructor genérico de la clase.

Definition at line 111 of file moResourceManager.cpp.

moResourceManager::~moResourceManager ( )
virtual

Definition at line 136 of file moResourceManager.cpp.

Member Function Documentation

MOboolean moResourceManager::AddResource ( moResource m_pResource)

crea un nuevo recurso

Definition at line 165 of file moResourceManager.cpp.

MOboolean moResourceManager::Finish ( )
virtual

Finalizador

Reimplemented from moAbstract.

Definition at line 574 of file moResourceManager.cpp.

moDataManager* moResourceManager::GetDataMan ( )
inline

crea un nuevo recurso

Definition at line 356 of file moResourceManager.h.

moDebugManager* moResourceManager::GetDebugMan ( )
inline

crea un nuevo recurso

Definition at line 447 of file moResourceManager.h.

moDecoderManager* moResourceManager::GetDecoderMan ( )
inline

crea un nuevo recurso

Definition at line 455 of file moResourceManager.h.

moFBManager* moResourceManager::GetFBMan ( )
inline

crea un nuevo recurso

Definition at line 370 of file moResourceManager.h.

moFileManager* moResourceManager::GetFileMan ( )
inline

crea un nuevo recurso

Definition at line 328 of file moResourceManager.h.

moFilterManager* moResourceManager::GetFilterMan ( )
inline

crea un nuevo recurso

Definition at line 342 of file moResourceManager.h.

moFontManager* moResourceManager::GetFontMan ( )
inline

crea un nuevo recurso

Definition at line 405 of file moResourceManager.h.

moGLManager* moResourceManager::GetGLMan ( )
inline

crea un nuevo recurso

Definition at line 377 of file moResourceManager.h.

moGUIManager* moResourceManager::GetGuiMan ( )
inline

crea un nuevo recurso

Definition at line 412 of file moResourceManager.h.

moMathManager* moResourceManager::GetMathMan ( )
inline

crea un nuevo recurso

Definition at line 391 of file moResourceManager.h.

mo3dModelManager* moResourceManager::GetModelMan ( )
inline

crea un nuevo recurso

Definition at line 440 of file moResourceManager.h.

moNetManager* moResourceManager::GetNetMan ( )
inline

crea un nuevo recurso

Definition at line 349 of file moResourceManager.h.

moRenderManager* moResourceManager::GetRenderMan ( )
inline

crea un nuevo recurso

Definition at line 384 of file moResourceManager.h.

moResource * moResourceManager::GetResource ( MOint  p_index)

Devuelve el puntero al recruso de indice p_ID

Definition at line 199 of file moResourceManager.cpp.

moResource * moResourceManager::GetResourceByType ( moResourceType  p_type)

crea un nuevo recurso

Definition at line 250 of file moResourceManager.cpp.

MOint moResourceManager::GetResourceIndex ( moText  p_labelname)

crea un nuevo recurso

Definition at line 207 of file moResourceManager.cpp.

moText moResourceManager::GetResourceLabelName ( MOint  p_index)

Devuelve la etiqueta del recurso de indice p_ID

Definition at line 231 of file moResourceManager.cpp.

moText moResourceManager::GetResourceName ( MOint  p_index)

Devuelve el nombre del recurso de indice p_ID

Definition at line 220 of file moResourceManager.cpp.

moResourceType moResourceManager::GetResourceType ( MOint  p_index)

crea un nuevo recurso

Definition at line 243 of file moResourceManager.cpp.

moScriptManager* moResourceManager::GetScriptMan ( )
inline

crea un nuevo recurso

Definition at line 419 of file moResourceManager.h.

moShaderManager* moResourceManager::GetShaderMan ( )
inline

crea un nuevo recurso

Definition at line 398 of file moResourceManager.h.

moSoundManager* moResourceManager::GetSoundMan ( )
inline

crea un nuevo recurso

Definition at line 433 of file moResourceManager.h.

moTextureManager* moResourceManager::GetTextureMan ( )
inline

crea un nuevo recurso

Definition at line 426 of file moResourceManager.h.

moTimeManager* moResourceManager::GetTimeMan ( )
inline

crea un nuevo recurso

Definition at line 363 of file moResourceManager.h.

moVideoManager* moResourceManager::GetVideoMan ( )
inline

crea un nuevo recurso

Definition at line 335 of file moResourceManager.h.

MOboolean moResourceManager::Init ( const moText p_apppath,
const moText p_datapath,
moConfig p_consoleconfig,
MOint  p_render_to_texture_mode = 0,
MOint  p_screen_width = 320,
MOint  p_screen_height = 240,
MOint  p_render_width = 320,
MOint  p_render_height = 240,
MO_HANDLE  p_OpWindowHandle = 0,
MO_DISPLAY  p_Display = NULL 
)
virtual

inicialización se especifican los parámetros generales para el acceso a los datos

Asigna configname, y labelname a los recursos PREDETERMINADOS en caso de encontrarse en el config

TODO: chequear errores...

Primero debe inicializarse el contexto OpenGL con glewInit: el RenderManager usa a su vez al Shader Manager, aunque no lo necesita para la inicializacion, lo usará luego para otras funciones especificas como Render( moObject3D....) que hace uso del moShaderManager::m_RenderBasic diseñado para dar soporte a OpenGL ES 2>

Definition at line 263 of file moResourceManager.cpp.

moResource * moResourceManager::NewResource ( const moText p_resname,
const moText p_configname,
const moText p_labelname,
const moText p_keyname,
int  paramindex = -1,
int  valueindex = -1,
bool  p_activate = true 
)

crea un nuevo recurso

Definition at line 140 of file moResourceManager.cpp.

MOboolean moResourceManager::RemoveResource ( MOint  p_index)

crea un nuevo recurso

Tratamos de borrarlo de los recursos de plugins

si no es parte de un plugin lo eliminamos a mano no hacemos nada! esto deberia hacer el Finish() ya que este se encargo de crearlos

Definition at line 176 of file moResourceManager.cpp.

moResources & moResourceManager::Resources ( )

crea un nuevo recurso

Definition at line 194 of file moResourceManager.cpp.


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