Quick Question about glInterleavedArrays

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…

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 glPointer functions. Set the vertex format using glPointer instead.

Yepp, Multitexturing was the thing I was asking about :slight_smile:

Okay, thanks…