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: Putting gluQuadratic objects into VBOs...

  1. #1
    Advanced Member Frequent Contributor scratt's Avatar
    Join Date
    May 2008
    Location
    Thailand
    Posts
    556

    Putting gluQuadratic objects into VBOs...

    I am not sure if this is an advanced question or not... But guess I have more chance of an answer here as I can't find anything by googling..

    Prior to OpenGL 3.0 I tended to stick gluQuadratic objects into display lists to reduce transfers.

    WIth the advent of 3.0 I am removing deprecated things from my code base.
    It would be nice to retain the convenience of using Spheres and such from glu.

    Is there an easy way to extract the vertices, normals and texcoords generated by gluQuadratics into vertex arrays, or am I stuck now generating these myself with custom code?

  2. #2
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,932

    Re: Putting gluQuadratic objects into VBOs...

    Generate them yourself, it is easy. GLU source is available, so you can take a look how they do it.

  3. #3
    Advanced Member Frequent Contributor scratt's Avatar
    Join Date
    May 2008
    Location
    Thailand
    Posts
    556

    Re: Putting gluQuadratic objects into VBOs...

    Thanks. Colour me lazy! That was my second choice.

Posting Permissions

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