Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Quick Question about glInterleavedArrays

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2004
    Location
    Boden, Norrbotten, Sweden
    Posts
    9

    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...

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    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.

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2004
    Location
    Boden, Norrbotten, Sweden
    Posts
    9

    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
  •