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

Thread: glutSolidSphere VS. gluSphere

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2002
    Location
    Memphis, TN, USA
    Posts
    23

    glutSolidSphere VS. gluSphere

    What is the difference in the glut versions and the glu versions of functions?

    Just Curious.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,096

    Re: glutSolidSphere VS. gluSphere

    The glut one does not create texture coordinates vs. the glu which has the option.

    The main reason for glutSphere and other prebuilt objects was to replace the functions in the glaux library.

    You would use glut_____Sphere when you just need a quick way to draw a simple object like in a demo or example.

    gluSphere would be for if you need more advanced features.



    Originally posted by jbarton:
    What is the difference in the glut versions and the glu versions of functions?

    Just Curious.

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2002
    Location
    Memphis, TN, USA
    Posts
    23

    Re: glutSolidSphere VS. gluSphere

    So the glut functions are generally more simplistic versions of the glu functions.

    Thanks,

  4. #4
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: glutSolidSphere VS. gluSphere

    check the source for glut at lib/glut directory. u will see for the sphere it actually calls glusphere

    void APIENTRY
    glutSolidSphere(GLdouble radius, GLint slices, GLint stacks)
    {
    QUAD_OBJ_INIT();
    gluQuadricDrawStyle(quadObj, GLU_FILL);
    gluQuadricNormals(quadObj, GLU_SMOOTH);
    /* If we ever changed/used the texture or orientation state
    of quadObj, we'd need to change it to the defaults here
    with gluQuadricTexture and/or gluQuadricOrientation. */
    gluSphere(quadObj, radius, slices, stacks);
    }

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2002
    Location
    Memphis, TN, USA
    Posts
    23

    Re: glutSolidSphere VS. gluSphere

    Thanks All!

Posting Permissions

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