I'm using the freeGLUT library. Here are the functions of a GLUT app...
keyboard()
display()
idle()
render()
and glutMainLoop() cycles through them. But where does the application logic go? Could someone help me out?
I'm using the freeGLUT library. Here are the functions of a GLUT app...
keyboard()
display()
idle()
render()
and glutMainLoop() cycles through them. But where does the application logic go? Could someone help me out?
How about the readme / FAQs / examples from wherever you got the library?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Yes, I always look in the help files, and do an extensive search on google before I post. It gives examples of functions and how they are used, but there isn't a real application example. I know how I could make an application using Win32 - I want to make a similar application using GLUT.
Also - What is faster? Win32 or GLUT?