Results 1 to 2 of 2

Thread: Defining multiple vertex arrays

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2001

    Defining multiple vertex arrays


    Can you define in OpenGL multiple vertex arrays?

    Code :
    glTranslated(<point1> );
    //first array
    glTranslated(<point2> );
    //second array
    //here i want a functioncall that 
    //access the first array and the second 
    //and draw triangles in between
    glDraw<from first array to second>
    I want to draw a cylinder between to points in space...
    Thank you in advance...

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2002

    Re: Defining multiple vertex arrays

    You can't use the arrays like you want to do in your pseudocode. The arrays are used when you call the glDraw... function. So in your code the two translations are just added and only the last specified arrays are used for drawing.

Similar Threads

  1. Multiple textures in Vertex Arrays
    By Twixn in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-14-2004, 01:54 PM
  2. multiple vertex arrays
    By hugo4711 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 02-02-2004, 10:27 AM
  3. One Vertex Array or Multiple Vertex Arrays ?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-24-2003, 09:16 AM
  4. how to use vertex arrays with multiple normals per vertex ?
    By speedy gonzalez in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 11-18-2003, 10:09 AM
  5. Multiple Vertex Arrays...
    By Richelieu in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-17-2000, 07:10 PM

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