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

Hi !

You can use glPolygonMode to select how polygons are rendered.

Mikael

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

glEnd();

Thanks.
Mike