35 #ifndef __MO_RESOURCE_PLUGIN_H__
36 #define __MO_RESOURCE_PLUGIN_H__
41 moResourceFactory() {}
42 virtual ~moResourceFactory();
47 typedef moResourceFactory*(
MO_PLG_ENTRY *CreateResourceFactoryFunction)();
48 typedef void(
MO_PLG_ENTRY *DestroyResourceFactoryFunction)();
56 CreateResourceFactoryFunction CreateResourceFactory;
57 DestroyResourceFactoryFunction DestroyResourceFactory;
59 moResourceFactory* m_factory;
61 moResourcePlugin() { handle = NULL; n=0; array = NULL; m_factory = NULL; }
62 moResourcePlugin(
moText plugin_file) { m_factory = NULL; handle = NULL; n = 0; array = NULL; Load(plugin_file); }
63 virtual ~moResourcePlugin() {
if(handle != NULL) Unload(); }
65 void Load(
moText plugin_file);
69 moText GetName() {
return name; }
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 )
LIBMOLDEO_API bool moDeleteResource(moResource *Resource, moResourcePluginsArray &plugins)
clase de para manejar textos
#define moDeclareExportedDynamicArray(T, name)
LIBMOLDEO_API moResource * moNewResource(moText resource_name, moResourcePluginsArray &plugins)