Take screenshots in GLUT
I have a GLUT application and I want to take a sequence of screen captures of the window so I can later put it into a movie. Is there a function that takes the开发者_高级运维 contents of a window created by GLUT and puts it into an image file?
Use glReadPixels()
to grab the framebuffer and dump the result using your favorite image handling library.
精彩评论