Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用 glut/opengl 编写了一个类似 ms paint 的程序,我想保存当前屏幕并在绘制后重新加载。如何将当前显示屏幕保存到变量中并在需要时重新加载?
您可能希望将其存储在 Framebuffer Object 中,并随意交换它们。不过,这在很大程度上取决于您的用例场景。
http://www.opengl.org/wiki/Framebuffer_Object