Skip to content
davido262 edited this page Nov 11, 2012 · 4 revisions

Description of the Resources manager.

The Resources manager acts like a pool of resources. There should only be one instance of any given resource in memory at a given time. Whenever a resource is needed it checks if it is already loaded and if it is it returns a pointer to it, otherwise it loads the resource and then returns the pointer to it.

Initialization

It does nothing, it exists only for standardization purposes. All the Meshes and Textures are added by each Component when created.

Shutdown

It iterates over all the stored Textures and Meshes and destroys them.

Clone this wiki locally