Texture ID Question...

Started by
1 comment, last by Vortez 12 years, 4 months ago
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...
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.
Thanx, i think it was it.

This topic is closed to new replies.

Advertisement