Can I use OpenGL for off-screen rendering? [duplicate]
问题 This question already has answers here : How to use GLUT/OpenGL to render to a file? (5 answers) Closed 5 years ago . I want to try to make a simple program that takes a 3D model and renders it into an image. Is there any way I can use OpenGL to render an image and put it into a variable that holds an image rather than displaying an image? I don't want to see what I'm rendering I just want to save it. Is there any way to do this with OpenGL? 回答1: I'm assuming that you know how to draw stuff