开发者

Take screenshots in GLUT

开发者 https://www.devze.com 2023-02-25 04:28 出处:网络
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 crea

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消