PDA

View Full Version : Construct a wired cube



tirengarfio
09-04-2006, 02:28 AM
Hi to all,

This place below explains how to construct a cube.

But, how to construct a wired cube with with a similar code?


http://www.morrowland.com/apron/tutorials/gl/gl_rotating_cube.php

RigidBody
09-04-2006, 02:31 AM
the code can be the same, but before glBegin(GL_QUADS) call glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)

alternatively, use glBegin(GL_LINE_LOOP) instead of GL_QUADS