简体   繁体   中英

Is there a glutDisplayFunc equivalent in GLFW3?

I'm developing an OpenGL application in C, and I'm using glew/glfw3, and in glut I'm used to registering a looping function with glutDisplayFunc . Is there any such function in glew/glfw3, or do I have to write the loop myself?

I'm mainly asking because I want to use glew/glfw3 properly, and I feel like if such a function existed, it should be used.

Thanks!

You will have to write your own loop. This might help Learn OpenGL .
It shows setting up event callbacks and a while loop using mostly glfw functions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM