Re: About PyOpenGL

2009-01-05 Thread trueli...@gmail.com
On Jan 6, 12:58 am, Rob Williscroft wrote: > trueli...@gmail.com wrote in news:f8099226-a953-4598-bfe2-61ee5772ce26 > @l33g2000pri.googlegroups.com in comp.lang.python: > > > > > > > Traceback (most recent call last): > >   File "test.py", line 36, in &

About PyOpenGL

2009-01-05 Thread trueli...@gmail.com
I follow the , write a small test: #!/usr/bin/env python # encoding=utf-8 import sys from OpenGL.GL import * from OpenGL.GLUT import * def display(): glClear(GL_COLOR_BUFFER_BIT) glColor(1.0, 1.0, 1.0) glBegin(GL_POLYGON) glVertex(0.25, 0.25, 0.0) glVertex(0.75, 0.25, 0.0)