freeglut_main.c not found in OPTIX 3.8

109 Views Asked by At

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

There are 1 best solutions below

0
On

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()