-
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...
-
Senior Member
OpenGL Guru
Re: Quick Question about glInterleavedArrays
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.
-
Re: Quick Question about glInterleavedArrays
Yepp, Multitexturing was the thing I was asking about :-)
Okay, thanks...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules