ricardoangelico
01-29-2004, 01:13 AM
How can I draw a wirecube without showing the lines not visible?
Draw a solid cube with glPolygonMode set to GL_LINE. This will draw the edges if the primitives only, resulting in a wire cube. And since a cube is a convex object, you can enable backface culling to remove hidden lines.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.