PDA

View Full Version : wire frame



mikeg
08-20-2004, 08:05 AM
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

mikael_aronsson
08-20-2004, 08:20 AM
Hi !

You can use glPolygonMode to select how polygons are rendered.

Mikael

mikeg
08-20-2004, 06:44 PM
This works but not with the code in my original post. I had to create the cube using glBegin(...);

...

glEnd();

Thanks.
Mike