[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



thanks! (pressuposed i understood the same object must be drawn twice,
as shape and as wireframe?)

On 7/27/09, Ian Mallett <geometrian@xxxxxxxxx> 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
>