Results 1 to 3 of 3

Thread: multitexture glInterleavedArrays / glDrawElements?

  1. #1

    multitexture glInterleavedArrays / glDrawElements?

    hi, is there any way you could use glDrawElements and glInterleavedArrays with multitexturing? because as far as it looks to me it only works with one set of texture coordinates, is it possible to make it work with multitexturing? or is there some other similar function that works with multitexturing?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: multitexture glInterleavedArrays / glDrawElements?

    use texture coordinates pointers along with vertex pointers, then select the active texture unit for each texture you'd like. multitexcoord doesn't work with arrays.

    hope that helps.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jan 2004
    Posts
    314

    Re: multitexture glInterleavedArrays / glDrawElements?

    1. use glClientActiveTexture to specify the texture unit
    2. enable texture coordinate array
    3. use glTexCoordPointer to specify texture coordinate array for the texture unit

Similar Threads

  1. Alpha channel with multitexture glDrawElements
    By mcastrillo in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-02-2005, 02:38 PM
  2. glInterleavedArrays
    By Mr J in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 04-15-2004, 06:41 AM
  3. glInterleavedArrays() + VBO?
    By grunt123 in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 12-11-2003, 03:47 PM
  4. glInterleavedArrays & glDrawElements
    By Ryuga in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-16-2002, 08:09 AM
  5. glInterleavedArrays
    By ffish in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-02-2001, 12:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean