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: wire frame

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2004
    Posts
    6

    wire frame

    I created a cube using

    glEnableClientState(GL_VERTEX_ARRAY);
    glVertexPointer(3, GL_FLOAT,0,vertices);
    glDrawElement(GL_QUADS,24,GL_UNSIGNED_BYTE,indices );

    this provides a solid cube with no outline for each face. how do i outline each face?

    thanks. mike

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: wire frame

    Hi !

    You can use glPolygonMode to select how polygons are rendered.

    Mikael

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2004
    Posts
    6

    Re: wire frame

    This works but not with the code in my original post. I had to create the cube using glBegin(...);

    ...

    glEnd();

    Thanks.
    Mike

Posting Permissions

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