OpenGL Get a Texture's Width and Height
I already have the code down to generate and create a texture in memory and I store the texture id's to use for later. The thing I was wondering is does OpenGL have a function that if I give it the texture id, it will return the texture's width and height? If not, I'll just store that data myself, but it would be most convenient for me if it did. Also, not sure if it matters, but I'm using SFML as well. Thanks.
Store the data yourself - even when OpenGL does allow you to retrieve values, it is generally more efficient to manage them yourself.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement