View Full Version : how to determine the maximum texture size?
pchiu
07-05-2005, 06:10 PM
I am trying to determine what is my maximum texture size:
glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE_EXT,result);
The number returned back is 512. What does this number mean? Does it mean I can only have upto 512bytes of texture data?
Thanks.
OGL_PGR
07-05-2005, 08:35 PM
Originally posted by pchiu:
I am trying to determine what is my maximum texture size:
glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE_EXT,result);
The number returned back is 512. What does this number mean? Does it mean I can only have upto 512bytes of texture data?
Thanks.params returns one value, a rough estimate of the largest 3D texture that the GL can handle. If the GL version is 1.2 or greater, use GL_PROXY_TEXTURE_3D to determine if a texture is too large.
The number returned means the size of the texture in pixels (in our case a square or cube texture). Of course you can change dimensions (for example 1024x64 instead of 512x512). Try searching for the red book to see what's written regarding this.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.