how to determine the maximum texture size?

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.

Originally posted by pchiu:
[b]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.[/b]
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.