-
Notifications
You must be signed in to change notification settings - Fork 2
Resource Manager
DrJonki edited this page Sep 10, 2014
·
3 revisions
ResourceManager
is a singleton class that takes care of all the common resources you might use. Use of this class is required if you want to use any of the following resources:
- Textures
- Images
- Fonts
- Sounds
You can access these resources with their respective Load*
functions. You can access the ResourceManager
with the uthRS
macro.
If any resource has been loaded before, it won't be loaded again, but a pointer to it will be returned. You can unload resources by using either the Clear
or Delete*
function. Resources will be automatically cleared when scene is changed.