OpenGL Get a Texture's Width and Height

Started by
2 comments, last by DigiMan Shart 14 years ago
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.
Alabama Man!!!
Advertisement
I would just store it. However, I think this may be what you're looking for.
Store the data yourself - even when OpenGL does allow you to retrieve values, it is generally more efficient to manage them yourself.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Fair enough. Thanks for the advice jyk and swiftcoder.
Alabama Man!!!

This topic is closed to new replies.

Advertisement