Re: FreeGlut Example Not Working
- Posted by ghaberek (admin) Feb 03, 2021
- 924 views
petelomax said...
I know nothing, but
http://openglut.sourceforge.net/group__window.html#ga9 said...
In fact, you must register a display callback via glutDisplayFunc() before you enter glutMainLoop().
Well you must know something because I think you're right. I reconstructed the demo and this is what I get when I run it:
freeglut (C:\Euphoria\bin\eui.exe): ERROR: No display callback registered for window 1
Edit: Assigning an empty callback via glutDisplayFunc() makes the window open correctly. Make sure you are testing these things with eui and not euiw so you don't miss out on any console-printed error messages.
-Greg