Screenshot or snapshot from OpenGL .....
Can anyone forward me to tutorial where I can find how to take a snapshot from OpenGL scene in different formats? Like BMP and PNG or JPG. Or any information will be appreciated.
Thanks in advance.
/*=====================L2LIVE===================*/
If this is only for you to make the screenshot while your making whatever your making, just use the Print Screen on your keyboard, then press paste in MS Paint.
All you need to do is use glReadPixels to read every pixel on the screen into an array that you can then supply that to your image lib of choice.
You can also use the glCopyTex* methods and then convert the resulting textures back to an array.
Thanks for answers, is they are any tutorials for this? Or everybody doing by they own style or whatever.
I found this page
http://www.robthebloke.org/opengl_programming.html
scroll down to the Screen shot example.
It seems pretty straight forward.
http://www.robthebloke.org/opengl_programming.html
scroll down to the Screen shot example.
It seems pretty straight forward.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement