Skip to main content
GameDev.net gamedev.net
🔒 Locked

[python] nehe examples update

Started by Falcon4ver Feb 19, 2007 at 8:40 AM 0 replies 3.2k views
Original Post
Falcon4ver
Falcon4ver
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 :) ?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.