[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] opengl from python - drawing wireframe shape colours and contour in the same time



#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