Re: [PyOpenGL-Users] [pygame] opengl from python - drawing wireframe shape colours and contour in t
Brought to you by:
mcfletch
From: Paulo S. <nit...@gm...> - 2009-07-27 17:51:51
|
thanks! (pressuposed i understood the same object must be drawn twice, as shape and as wireframe?) On 7/27/09, Ian Mallett <geo...@gm...> wrote: > #Draw the object here > #Disable texturing, lighting, etc. here > glColor3f(0,0,0) > glLineWidth(4) #or whatever > glPolygonMode(GL_FRONT_AND_BACK,GL_LINE) > #Draw the object here > glPolygonMode(GL_FRONT_AND_BACK,GL_FILL) > glLineWidth(1) #also or whatever > glColor3f(1,1,1) > #Enable texturing, lighting, etc. here > |