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

Thread: glut wire objects

  1. #1
    Intern Newbie
    Join Date
    Sep 2002
    Posts
    40

    glut wire objects

    Would someone know how to use glutwire objects, for example how to draw a sphere, cone, cylinder etc.
    I think there are predefined objects, such as glutWireSphere(..) which we can use..but i dont know where to look them up.

    Thanks

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    654

    Re: glut wire objects

    have you looked int the glut user manual?

  3. #3
    Intern Newbie
    Join Date
    Sep 2002
    Posts
    40

    Re: glut wire objects

    Found it

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

    Re: glut wire objects

    You can find out anything about a glut command by going to the openGL main page and use the search box.

    Note that glut does not have a cylinder function but has the following: sphere, cone, cube, torus, teapot, dodecahedron, octahedron, tetrahedron, iscosahedron.
    All glut object can be solid or wire.

    example:

    glRotatef(15, 0, 0, 1);
    glTranslatef( 3, 1, 2);
    glutSolidCube(10); // where value is size of cube



    Originally posted by lara:
    Would someone know how to use glutwire objects, for example how to draw a sphere, cone, cylinder etc.
    I think there are predefined objects, such as glutWireSphere(..) which we can use..but i dont know where to look them up.

    Thanks

Posting Permissions

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