max texture sizes

hi

does anyone know how large textures may be on
voodoo 4/5
tnt2
radeon
geforce
?

thx
eik

Here .

Hardcoded constants are unreliable. The maximum texture size may for example vary with selected screen resolution.
You need to query glGetIntegerv(GL_MAX_TEXTURE_SIZE, &i); and adapt to that if your desired textures were bigger.

[This message has been edited by Relic (edited 05-28-2002).]

I thought you had to use proxy textures to find that out - or is that just to find out if you’ve enough memory for the texture?

Originally posted by knackered:
I thought you had to use proxy textures to find that out - or is that just to find out if you’ve enough memory for the texture?

IIRC, the glGetInteger is a way to see what the maximum supported size is.
The proxy method will tell you if a specific texture (format and all) will upload or fail.

for example 1024 x 1024 x 16 might be supported but 1024 x 1024 x 32 might not and 1024 x 512 x 32 might, …(just making up some numbers here)
V-man