View Full Version : Quick Question about glInterleavedArrays

01-14-2004, 03:46 AM
Hey, I just have a quick question about the format enum for glInterleavedArrays,

if I specify for instance GL_T2F_V3F does OGl interpret it as to expect ONE texture(as in 2 texture coordinates) or does it interpret it any other way?

If it's just ONE texture, how do I specify several to glInterleavedArrays? Do I have to setup TexturePointers?

I do notice that you can define for instance GL_T4F_V4F that logically would be two textures, but that uses a 4Float Vertex coordinate and I only want a 3Float...

01-14-2004, 03:53 AM
If you're talking about multitexturing, then forget about the predefined interleaved formats. They are for single texturing only. T4F means there's 4 values for each texture coordinate (see glTexCoord4f), not 2 sets with 2 coordinates each.

glInterleavedArrays is basically just a wrapper for the gl*Pointer functions. Set the vertex format using gl*Pointer instead.

01-14-2004, 03:55 AM
Yepp, Multitexturing was the thing I was asking about :-)

Okay, thanks...