[python] nehe examples update
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
Thx!
Caste
Member of the NeHe team | PhD Student at Heidelberg Collaboratory for Image Processing | ProCamera Developer
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement