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.
|
Recurso ( objeto para cargar y manipular objetos físicos de datos de imágenes, audio, video, 3d, 2d, fuentes, shaders y de cualquier otro tipo extendible por un plugin ) More...
#include <moResourceManager.h>
Public Member Functions | |
moResource () | |
virtual | ~moResource () |
virtual MOboolean | Init () |
virtual MOboolean | Finish () |
moResourceType | GetResourceType () |
Public Member Functions inherited from moMoldeoObject | |
moMoldeoObject () | |
moMoldeoObject (moMoldeoObjectType p_type) | |
virtual | ~moMoldeoObject () |
virtual MOboolean | Init (moResourceManager *p_pResources) |
virtual MOboolean | CreateConnectors () |
virtual MOboolean | UpdateConnectors () |
virtual MOboolean | RefreshValue (moParam ¶m, int value_index) |
virtual MOboolean | ResolveValue (moParam ¶m, int value_index, bool p_refresh=false) |
virtual void | Update (moEventList *p_EventList) |
void | SetResourceManager (moResourceManager *p_pResourceManager) |
moResourceManager * | GetResourceManager () |
MOint | GetId () const |
void | SetId (MOint p_id) |
moMoldeoObjectType | GetType () const |
void | SetType (moMoldeoObjectType p_type) |
void | SetName (const moText &p_name) |
void | SetLabelName (const moText &p_labelname) |
void | SetKeyName (const moText &p_keyname) |
const moText & | GetKeyName () const |
const moText & | GetName () const |
const moText & | GetLabelName () const |
moConfig * | GetConfig () |
void | SyncConnections () |
virtual int | Save (const moText &p_save_filename=moText("")) |
void | SetConfigName (const moText &p_configname) |
const moText & | GetConfigName () const |
const moText & | GetDescription () const |
Devuelve al descripción del objeto. More... | |
void | SetDescription (const moText &p_Description) |
Fija la descripción de este objeto. More... | |
const moMobDefinition & | GetMobDefinition () const |
void | SetMobDefinition (const moMobDefinition &p_MobDef) |
virtual moConfigDefinition * | GetDefinition (moConfigDefinition *p_configdefinition=NULL) |
moOutlets * | GetOutlets () |
moInlets * | GetInlets () |
MOint | GetInletIndex (moText p_connector_name) const |
MOint | GetOutletIndex (moText p_connector_name) const |
virtual void | RegisterFunctions () |
beware ! call only once or die!!! More... | |
virtual int | ScriptCalling (moLuaVirtualMachine &vm, int iFunctionNumber) |
virtual void | HandleReturns (moLuaVirtualMachine &vm, const char *strFunc) |
virtual const moMobState & | GetState () const |
virtual bool | SetState (const moMobState &p_MobState) |
virtual void | Activate () |
virtual void | Deactivate () |
virtual bool | Activated () const |
virtual void | Select () |
virtual void | Unselect () |
virtual bool | Selected () const |
virtual void | SetConsoleParamIndex (MOint p_paramindex) |
virtual void | SetConsoleValueIndex (MOint p_valueindex) |
virtual const moText & | ToJSON () |
Public Member Functions inherited from moAbstract | |
moAbstract () | |
virtual | ~moAbstract () |
MOboolean | Initialized () |
Pregunta si está inicializado. More... | |
Public Member Functions inherited from moScript | |
moScript () | |
virtual | ~moScript (void) |
void | InitScript () |
void | FinishScript () |
bool | IsInitialized () |
bool | CompileFile (const char *strFilename) |
bool | CompileBuffer (unsigned char *pbBuffer, size_t szLen) |
int | RegisterFunction (const char *strFuncName, moScript::Function &fun) |
int | RegisterFunction (const char *strFuncName) |
int | RegisterBaseFunction (const char *strFuncName) |
bool | SelectScriptFunction (const char *strFuncName) |
void | AddFunctionParam (int iInt) |
void | AddFunctionParam (float fFloat) |
void | AddFunctionParam (char *string) |
bool | RunSelectedFunction (int nReturns=0) |
bool | ScriptHasFunction (const char *strScriptName) |
int | methods (void) |
virtual int | ResetScriptCalling () |
virtual int | NextScriptCalling () |
moLuaVirtualMachine & | mvm (void) |
Additional Inherited Members | |
Public Types inherited from moScript | |
typedef int(* | Function )(moLuaVirtualMachine &vm) |
Public Attributes inherited from moAbstract | |
MOboolean | m_bInitialized |
Valor de inicialización More... | |
Public Attributes inherited from moScript | |
Function | Functions [255] |
Static Public Attributes inherited from moAbstract | |
static moDebug * | MODebug2 = new moDebug() |
Clase de impresión de errores para depuración More... | |
static moTextHeap * | MODebug = new moTextHeap() |
Lista de textos. More... | |
Protected Attributes inherited from moMoldeoObject | |
moText | m_FullJSON |
moText | m_Script |
moMobDefinition | m_MobDefinition |
moMobState | m_MobState |
Moldeo Object State. More... | |
moConfig | m_Config |
Configuración de parámetros del objeto. More... | |
moResourceManager * | m_pResourceManager |
Puntero al administrador de recursos. More... | |
moOutlets | m_Outlets |
Conectores de salida, Arreglo de moOutlet's. More... | |
moInlets | m_Inlets |
Conectores de entrada, Arreglo de moInlet's. More... | |
moInlet * | InletScreenWidth |
moInlet * | InletScreenHeight |
moInlet * | InletTimeabs |
moInlet * | InletPreconfig |
MOboolean | m_bConnectorsLoaded |
int | __iscript |
Protected Attributes inherited from moScript | |
bool | m_initialized |
int | m_nMethods |
int | m_iThisRef |
int | m_nArgs |
const char * | m_strFunctionName |
int | m_iMethodBase |
int | m_iMethodBaseIterator |
actual class index method base More... | |
int | m_iMethodBaseAncestors |
actual class iterator index method base More... | |
int | m_MethodBases [256] |
increment on each call to RegisterFunctions More... | |
Static Protected Attributes inherited from moScript | |
static moLuaVirtualMachine | m_vm |
static moLuaDebugger | m_dbg |
Recurso ( objeto para cargar y manipular objetos físicos de datos de imágenes, audio, video, 3d, 2d, fuentes, shaders y de cualquier otro tipo extendible por un plugin )
Los recursos son aquellos objetos que implementan funciones de tratamiento de datos, generalmente localizados en dispositivos físicos, locales o remotos,o que tienen por destino algún tipo de representación.
Aquellos recursos predeterminados dentro de la librería de Moldeo conforman la columna vertebral de las funcionalidades del Core de Moldeo. Estos son: moRenderManager, moGLManager, moTextureManager, mo3dModelManager, moShaderManager, moVideoManager, moSoundManager, moScriptManager, moTimeManager, moFBManager, moMathManager
Un plugin derivado de moResourcePlugin es usado típicamente para acceder a archivos de distintos formatos para luego administrar estos contenidos en un arreglo interno dinámico evitando redundancias de datos.
Un ejemplo sería el moTextureManager, que administrar la carga de imágenes en texturas de opengl.
Otro ejemplo sería el mo3dModelManager, que administrar la carga de objeto 3d, en este caso del formato .3ds. El mo3dModelManager a su vez depende del moTextureManager para cargar las texturas especificadas por los materiales de los modelos tridimensionales. Mantener esta coherencia de los datos en Moldeo es una de las características importantes de su arquitectura.
Definition at line 152 of file moResourceManager.h.
moResource::moResource | ( | ) |
constructor genérico de la clase.
|
virtual |
constructor genérico de la clase.
Definition at line 59 of file moResourceManager.cpp.
|
virtual |
constructor genérico de la clase.
Reimplemented from moMoldeoObject.
Reimplemented in moFilterManager, moGUIManager, moVideoManager, moDataManager, moSoundManager, mo3dModelManager, moFileManager, moRenderManager, moGLManager, moNetManager, moTextureManager, moFontManager, moDecoderManager, moTimeManager, moShaderManager, moFBManager, moScriptManager, moMathManager, and moDebugManager.
Definition at line 83 of file moResourceManager.cpp.
moResourceType moResource::GetResourceType | ( | ) |
devuelve el tipo de recurso
Definition at line 89 of file moResourceManager.cpp.
|
virtual |
constructor genérico de la clase.
Reimplemented from moMoldeoObject.
Reimplemented in moFilterManager, moGUIManager, moVideoManager, moDataManager, moSoundManager, mo3dModelManager, moFileManager, moNetManager, moGLManager, moTextureManager, moFontManager, moDecoderManager, moTimeManager, moShaderManager, moFBManager, moScriptManager, moMathManager, and moDebugManager.
Definition at line 64 of file moResourceManager.cpp.
|
protected |
Definition at line 96 of file moResourceManager.cpp.