Skip to main content
gamedev.net
🔒 Locked

glutMainLoop()

Started by tedjj Aug 8, 2007 at 8:55 PM 0 replies 900+ views
Original Post
tedjj
tedjj
The very last thing you must do is call glutMainLoop(void). All windows that have been created are now shown, and rendering to those windows is now effective. Event processing begins, and the registered display callback is triggered. Once this loop is entered, it is never exited! (http://www.glprogramming.com/red/chapter01.html) Is this true? When I run my program, it gets to glutMainLoop() and then it stops running and says The program '[4144] practice.exe: Native' has exited with code 1 (0x1). Does anyone know why that could be a case? Tad
Jaiminho
Jaiminho
Put some code here so we can know how you do things before calling the main loop.

Topic Locked

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

Sign in to reply to this topic.