class: ewol::resource::Manager


Description:



Constructor and Destructor:

+                                                      Manager                 ();
+ virtual ~Manager ();

Synopsis:

+         void                                         unInit                  ();
+ void display ();
+ void reLoadResources ();
+ void update (const std::shared_ptr<ewol::Resource> & _object);
+ void updateContext ();
+ void contextHasBeenDestroyed ();
+ std::shared_ptr<ewol::Resource> localKeep (const std::string & _filename);
+ void localAdd (const std::shared_ptr<ewol::Resource> & _object);
+ virtual void cleanInternalRemoved ();

Detail:

Manager

+  Manager ();
initialize the internal variable


~Manager

+ virtual  ~Manager ();
Uninitiamize the resource manager, free all resources previously requested
Note: when not free == > generate warning, because the segfault can appear after...


unInit

+ void unInit ();
remove all resources (un-init) out of the destructor (due to the system implementation)


display

+ void display ();
display in the log all the resources loaded ...


reLoadResources

+ void reLoadResources ();
Reload all resources from files, and send there in openGL card if needed.
Note: If file is reference at THEME:XXX:filename if the Theme change the file will reload the newOne


update

+ void update (const std::shared_ptr<ewol::Resource> & _object);
Call by the system to send all the needed data on the graphic card chen they change ...


updateContext

+ void updateContext ();
Call by the system chen the openGL Context has been unexpectially removed == > This reload all the texture, VBO and other ....


contextHasBeenDestroyed

+ void contextHasBeenDestroyed ();
This is to inform the resources manager that we have no more openGl context ...


localKeep

+ std::shared_ptr<ewol::Resource> localKeep (const std::string & _filename);



localAdd

+ void localAdd (const std::shared_ptr<ewol::Resource> & _object);



cleanInternalRemoved

+ virtual void cleanInternalRemoved ();