C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解
Create a simple polygon that rotates in 3D on it's y-axis.
Duplicate this polygon 4 times so that the same polygon is rotating similtainiously in 4 different places on the screen. In doing this you should use either a method for drawing the shape which you call 4 times or a using a display list (i.e. glNewList, glEndList, and glCallList). This will also involve using glPushMatrix and glPopMatrix (this assumes you are using the old fixed function pipeline, feel free to use a programmable pipeline approach in which case you will need to do the matrix operations outside OpenGL).
Once again display 4 of them rotating at the same time.