Original Post
I''m trying to write a simple texture manager for my OpenGL engine. The main thing I want it to do is avoid loading the same texture more than once, even if it''s being used by several objects.
Now my question is how do I store the texture information in the manager and how can I quickly verify if a texture is already loaded? Comparing the name of the file i''m trying to load with all the loaded filenames would be much too slow. I''ve seen a couple of posts in the forums here about this but they didn''t answer my questions. Anyone ever implemented this kind of manager in an efficient way?
thanks
zxc