🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
[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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement