开发者

How do I get the width of a GLuint texture?

开发者 https://www.devze.com 2023-02-23 19:33 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消