Jump to content
  • Advertisement
Sign in to follow this  
Vortez

Texture ID Question...

This topic is 2358 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, is it possible to check if a texture with an ID of 1 (or any other number than 0) have been generated, or, is free to use?
(The number returned by glGenTextures)

I think i've saw how to do this once but i can't remember how...

Share this post


Link to post
Share on other sites
Advertisement
You can use the function glIsTexture to determine if a texture with an ID has been created (you have called glBindTexture on it), but there is no function to determine if it has only been allocated as a name (returned by glGenTexture). If this is a problem then you need to track the allocated IDs yourself.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!