How to use GLUT/OpenGL to render to a file?
glReadPixels runnable PBO example The example below generates either: one ppm per frame at 200 FPS and no extra dependencies, one png per frame at 600 FPS with libpng one mpg for all frames at 1200 FPS with FFmpeg on a ramfs. The better the compression, the larger the FPS, so we must be memory … Read more