Jump to content
  • Advertisement
Sign in to follow this  
Thaligar

TextureManager *SOLVED*

This topic is 4848 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi folks, ok, at the moment i'm reimplementing my engine and also try to make it more flexible, well but now i came across a problem, in my prev. engine i used only opengl and so i made a texturemanager which was not part of the renderer, but now if i really wanna make it possible that my renderer can be exchanged than i have to make a texturemanager for each renderer, so is the texturemanager part of the renderer or am i completly wrong, if someone can help, please post, thanks in advance for your time, and best regards, tgar [Edited by - Thaligar on August 10, 2005 7:06:58 AM]

Share this post


Link to post
Share on other sites
Advertisement
Well you could have two objects, one that encapsulates a texture for OGL and one that encapsulates a texture for DirectX. If you use polymorphism you can store both types within the same manager so long as they derive from the same base object. It would be important for each texture to interface with the rest of the engine the same so that to the rest of the engine it is just a texture.

ace

Share this post


Link to post
Share on other sites
thanks ace_lovegrove,

i'll try to make a std interface for the texture handles,
this should solve my prob, one texturemgr and one baseclass with
a base interface,

you brought my brain the enlightment it needed,

thanks again
greets
tgar

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!