-1

I have been working in Optix for my ray tracing project, i went through its classes and function , I know that all the display function and call backs are handled in glutmainloop() and it will never end, my question is I cannot find any function or .c file where glutmainloop() is defined? is it hidden?

Can anyone help me?

1 Answers1

0

glutMainLoop is a function from the GL Utility Toolkit (GLUT). On Windows the library gets linked in and thus no source code is provided. Precisely it is provided from the open source freeglut:

GLUT

Most OptiX samples use the GLUT toolkit. Freeglut ships with the Windows OptiX distribution. GLUT is installed by default on Mac OSX. A GLUT installation is required to build samples on Linux.

Take a look at github's mirror for its code

More information here: opengl glutmainloop()

Community
  • 1
  • 1
Marco A.
  • 43,032
  • 26
  • 132
  • 246