PDA

View Full Version : Max Texture Size



Mighty
01-30-2004, 01:03 PM
Just wondering if there's a size for textures loaded in openGL?

Jan
01-30-2004, 01:17 PM
glGetInteger (GL_MAX_TEXTURE_SIZE_2D) or so (not sure, check out some documentation) will give you the answer.

Jan.

01-30-2004, 02:02 PM
GL_MAX_TEXTURE_SIZE, I believe.

Also please note that the width and height of any texture you load normally must be a power-of-two. Textures like 64x64, 32x64, 512x128, 1024x1024 etc are all good, but things like 100x100 etc aren't guaranteed to work without specific extensions being implemented.