Advertisement

[python] nehe examples update

Started by February 19, 2007 08:40 AM
0 comments, last by Caste 18 years ago
I noticed that in the lessons 1, 3 and 4 wouldn't work straight out of the box. It seems like they still using an old syntax. To fix it, you can take a look into the lesson 2 file or read below. Summary of fixes: (1) Find: glutSetDisplayFuncCallback(DrawGLScene) glutDisplayFunc() Replace: glutDisplayFunc (DrawGLScene) (2) Find: glutSetIdleFuncCallback(DrawGLScene) glutIdleFunc() Replace: glutIdleFunc(DrawGLScene) (3) Find: glutSetReshapeFuncCallback(ReSizeGLScene) glutReshapeFunc() Replace: glutReshapeFunc (ReSizeGLScene) (4) Find: glutSetKeyboardFuncCallback(keyPressed) glutKeyboardFunc() Replace: glutKeyboardFunc (keyPressed) Perhaps the admin of NeHe could update the python samples :) ?
We'll take a look at that when we've released the new NeHe lessons with a more object oriented C++ basecode. Could you perhaps mail working versions to nehe@gamedev.net ?

Thx!
Caste

This topic is closed to new replies.

Advertisement