Class: ewol::ResourceManager
Synopsis:
+ ResourceManager (void);
+ ~ResourceManager (void);
+ void unInit (void);
+ void display (void);
+ void reLoadResources (void);
+ void update (ewol::Resource * _object);
+ void updateContext (void);
+ void contextHasBeenDestroyed (void);
+ ewol::Resource * localKeep (const std::string & _filename);
+ void localAdd (ewol::Resource * _object);
+ bool release (ewol::Resource * & _object);
Detail:
ewol::ResourceManager ()
ResourceManager(void);
initialize the internal variable
ewol::~ResourceManager ()
~ResourceManager(void);
Uninitiamize the resource manager, free all resources previously requested
Notes: when not free == > generate warning, because the segfault can appear after...
unInit ()
void unInit(void);
remove all resources (un-init) out of the destructor (due to the system implementation)
display ()
void display(void);
display in the log all the resources loaded ...
reLoadResources ()
void reLoadResources(void);
Reload all resources from files, and send there in openGL card if needed.
Notes: If file is reference at THEME:XXX:filename if the Theme change the file will reload the newOne
update ()
void update(ewol::Resource * _object);
Call by the system to send all the needed data on the graphic card chen they change ...
Parameter [input]: _object The resources that might be updated
updateContext ()
void updateContext(void);
Call by the system chen the openGL Context has been unexpectially removed == > This reload all the texture, VBO and other ....
contextHasBeenDestroyed ()
void contextHasBeenDestroyed(void);
This is to inform the resources manager that we have no more openGl context ...
localKeep ()
ewol::Resource * localKeep(const std::string & _filename);
localAdd ()
void localAdd(ewol::Resource * _object);
release ()
bool release(ewol::Resource * & _object);
release a resources and free it if the Last release is call.
Parameter [input] [output]: _object element to realease == > is return at NULL value.
Return: true, if element is removed, and false for just decreasing counter
ewol::ResourceManager ()
ResourceManager(void);
initialize the internal variable
ewol::~ResourceManager ()
~ResourceManager(void);
Uninitiamize the resource manager, free all resources previously requested
Notes: when not free == > generate warning, because the segfault can appear after...
unInit ()
void unInit(void);
remove all resources (un-init) out of the destructor (due to the system implementation)
display ()
void display(void);
display in the log all the resources loaded ...
reLoadResources ()
void reLoadResources(void);
Reload all resources from files, and send there in openGL card if needed.
Notes: If file is reference at THEME:XXX:filename if the Theme change the file will reload the newOne
update ()
void update(ewol::Resource * _object);
Call by the system to send all the needed data on the graphic card chen they change ...
-
Parameter [input]: _object The resources that might be updated
updateContext ()
void updateContext(void);
Call by the system chen the openGL Context has been unexpectially removed == > This reload all the texture, VBO and other ....
contextHasBeenDestroyed ()
void contextHasBeenDestroyed(void);
This is to inform the resources manager that we have no more openGl context ...
localKeep ()
ewol::Resource * localKeep(const std::string & _filename);
localAdd ()
void localAdd(ewol::Resource * _object);
release ()
bool release(ewol::Resource * & _object);
release a resources and free it if the Last release is call.
-
Parameter [input] [output]: _object element to realease == > is return at NULL value.
Return: true, if element is removed, and false for just decreasing counter