From: Ethan Glasser-C. <gla...@us...> - 2007-07-10 02:46:48
|
Update of /cvsroot/pyode/pyode/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5671 Modified Files: tutorial3.py Log Message: * tutorial3.py: change glScale to glScalef to be compatible with python-opengl version 3.0 and up. Thanks to Nathanial Troutman for finding the bug and suggesting a fix. Index: tutorial3.py =================================================================== RCS file: /cvsroot/pyode/pyode/examples/tutorial3.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tutorial3.py 16 Jun 2007 06:50:11 -0000 1.3 --- tutorial3.py 10 Jul 2007 02:46:49 -0000 1.4 *************** *** 71,75 **** if body.shape=="box": sx,sy,sz = body.boxsize ! glScale(sx, sy, sz) glutSolidCube(1) glPopMatrix() --- 71,75 ---- if body.shape=="box": sx,sy,sz = body.boxsize ! glScalef(sx, sy, sz) glutSolidCube(1) glPopMatrix() |