开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜