Jump to content
  • Advertisement
Sign in to follow this  
normal31337guy

Comparing Textures

This topic is 5023 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

I'm trying to make a texture manager. I need to be able to compare two textures if they are the same. However my brain is drawing a blank on how to do this, I'm sure this is very simple, but I'm having a major mind-block situation. I think I want to compare their filenames, but how would I implement this? Perhaps is there an easier way?

Share this post


Link to post
Share on other sites
Advertisement
You could load the surfaces into memory and then compare pixel by pixel. There are also ways to check whether the file is exactly the same by comparing their MD5. You can find more information about that on this site.

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!