Results 1 to 4 of 4

Thread: Wireframe world

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Posts
    4

    Wireframe world

    I am working with opengl and noticed that you can render glutSolidcone and glutWirecone, etc... I was wondering if there is a world option to set so that opengl draws the world in wireframes if you give it a command such as glBegin(GL_POLYGONS)...

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

    Re: Wireframe world

    No, glut objects are pre-built and can not be changed.

    You can use glu objects, or create the sphere with your own sphere routine using glBegin.


    Originally posted by tzano:
    I am working with opengl and noticed that you can render glutSolidcone and glutWirecone, etc... I was wondering if there is a world option to set so that opengl draws the world in wireframes if you give it a command such as glBegin(GL_POLYGONS)...

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2004
    Posts
    4

    Re: Wireframe world

    heh, thanks for the reply, i actually figured out my own question. If you are using the GL_POLYGONS and associate them with vertices to follow, you can change the glPolygonMode from GL_FILL to GL_LINE which will give you a wireframe mode. Default is GL_FILL

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

    Re: Wireframe world

    Sure, just remember you have to redraw the object to make the change happen.

    example:

    if (wire_world) glPolygonMode( GL_LINE );
    if (!wire_world) glPolygonMode( GL_FILL );

    Draw_stuff();


    Originally posted by tzano:
    heh, thanks for the reply, i actually figured out my own question. If you are using the GL_POLYGONS and associate them with vertices to follow, you can change the glPolygonMode from GL_FILL to GL_LINE which will give you a wireframe mode. Default is GL_FILL

Similar Threads

  1. Wireframe in GL3
    By Jan in forum OpenGL: Advanced Coding
    Replies: 17
    Last Post: 12-19-2008, 04:42 PM
  2. Continuous World / World Wrapping
    By MicahBrening in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 02-24-2007, 06:46 PM
  3. wireframe
    By OGforever in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-24-2005, 10:57 PM
  4. wireframe?
    By BarrelRider in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-05-2001, 07:01 AM
  5. Wireframe
    By Rottbott in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-25-2001, 06:36 AM

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