SFML community forums

Help => Graphics => Topic started by: diseasedtoe on December 28, 2011, 04:09:59 am

Title: Texture Manager (Solved)
Post by: diseasedtoe on December 28, 2011, 04:09:59 am
Hey guys,

I was wondering if you could point me in the right direction as to how to make a texture manager.  What I mean by this, is I want to have some way to keep track of the currently loaded textures.  Then lets say I wanted to load in a texture, and the manager detects that it is already loaded, it will not allow it to be loaded again, so I can save memory.

EDIT: I found this sfml extension called Thor C++ Library link: http://www.bromeon.ch/thor/

He provides all the functionality I need.
Title: Texture Manager (Solved)
Post by: Nexus on December 28, 2011, 11:04:39 am
I'm glad the ResourceManager provides the functionality you need. If you have questions, ideas or other feedback, don't hesitate to inform me. I would really appreciate it, since only few people seem to use Thor's Resources module so far. And maybe I will slightly change it in the future, so ideas are always welcome :)

By the way, I recommend to use the SVN version instead of Thor 1.0. It is up-to-date with a recent SFML 2 revision, contains more features and some bugs have been fixed.