From: Diederick C. N. <dc...@gm...> - 2012-03-15 07:26:31
|
Hi All, 2012/3/10 Diederick C. Niehorster <dc...@gm...>: > I noticed that there is a lot of code duplication in > freeglut_geometry. It'd be easily cleaned up. [...] > Shall I go ahead and do that for this and the other object in there? > I'll put the body of the solid and wire version through a diff tool > for each first to make sure they really are identical. Any reason why the solid and wire version aren't generated by the same code, but the call for the wire version simply prefixed with glPolygonMode( GL_FRONT_AND_BACK, GL_LINE ) (and reset afterwards, glPush/PopAttrib)? Of course, the user could do this and the various glutSolid/glutWire combinations aren't needed at all then. So am I missing something? Best, Dee |