-
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
-
Re: wire frame
Hi !
You can use glPolygonMode to select how polygons are rendered.
Mikael
-
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
-
Forum Rules