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: vertexdata per index in glDrawElements

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jan 2001
    Posts
    181

    vertexdata per index in glDrawElements

    i'd like to see that i can define several UV, color and normal values per vertex with one glDrawElements call. so, if the vertex array contains n vertexes and the indexlist has m entries, the texture coord array, color array and so on can have m entries, too if it was enabled by e.g. glEnableClientState(GL_INDEX_TEXTURE_COORD_ARRAY). so vertexdata will not be transformed twice or more in well coded drivers and the app doesn't have the overhead of innumerably function calls.

  2. #2
    Member Regular Contributor
    Join Date
    Jun 2000
    Location
    B.C., Canada
    Posts
    397

    Re: vertexdata per index in glDrawElements

    There was a pretty long discussion about a feature such as this a while ago.
    http://www.opengl.org/discussion_boa...ML/000085.html

    Basically, it would be extremely difficult to implement this properly in a driver, and there would not be that much performance improvement.

    j

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jan 2001
    Posts
    181

    Re: vertexdata per index in glDrawElements

    thank you.

Posting Permissions

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