I’ve got a problem with the GLUT tutorial… It seems like my OpenGL window is ‘stuck’… I mean, when the cursor is over it, it has the shape like when it is busy, and the window hardly refreshes itself, and whenever it does, it is all white… I can’t do anything (close, resize, move etc), and i need a while(!kbhit()); to prevent it from quitting…
Where’s your window resize function? You’ll need it to choose a projection and setup a viewport.
Also glutMainLoop() never returns so you’ll need to set up a keyboard handler where you can determine when to quit. For this use glutKeyboardFunc() and check for a key (e.g. say ESC) that calls exit();
Originally posted by ipo:
[b]Where’s your window resize function? You’ll need it to choose a projection and setup a viewport.
Ok I try to add a resize function…
Also glutMainLoop() never returns so you’ll need to set up a keyboard handler where you can determine when to quit.
Yes, but my glutMainLoop does return !.. The display function is just called once… Maybe I should try to install better drivers.
… Additionnaly, when I download examples, they compile ok, but there’s a message box reading “A .DLL file, .DLL, wasn’t found” at run time… And so it can’t be launched… What DLL files could I need except from GLUT32.DLL, GLU32.DLL and OPENGL32.DLL which are all located in my windows\system\ ??