How do I get the width of a GLuint texture?
I was wondering how I get the width of a GLuint Texture in OpenGL. Could someone please开发者_高级运维 tell me? and maybe give me a link to somewhere that has these things mapped out?
Bind the texture and call glGetTexLevelParameter to get the width, you can get other parameters using the same call:
http://www.opengl.org/sdk/docs/man/xhtml/glGetTexLevelParameter.xml
精彩评论