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 2 of 2

Thread: how tu use (C)VA(R) with multi-texturing (ARB) ?

  1. #1
    Intern Contributor
    Join Date
    Mar 2002
    Location
    France
    Posts
    52

    how tu use (C)VA(R) with multi-texturing (ARB) ?

    hi all !!

    i have a simple program that lets me draw almost what i want (simple things however). It uses CVA, or VAR if any, otherwise it's down to simple VA.
    So, i use only arrays for storing my texture coordinates. But, for only one texture... you know glTexCoordPointer....

    I would like to know if it's possible to merge correctly (best as possible) vertex arrays with multitexturing using ARB.

    I hope their's something to do for it !
    Je suis celui qui failli qui trépasse et se lasse, je suis celui qu'on abuse à vider de sa face

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,407

    Re: how tu use (C)VA(R) with multi-texturing (ARB) ?

    see the opengl spec (can be gotten from this site)

    glCLinetActiveTexture( GL_TEXTURE0 );
    glEnable( GL_TEXTURE_COORD_ARRAY );
    glTexCoordPointer(...)
    glCLinetActiveTexture( GL_TEXTURE1 );
    glEnable( GL_TEXTURE_COORD_ARRAY );
    glTexCoordPointer(...)
    glCLinetActiveTexture( GL_TEXTURE2 );
    glEnable( GL_TEXTURE_COORD_ARRAY );
    glTexCoordPointer(...)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •