Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

stryx

Screenshot ?

This topic is 5920 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I want to implement a screenshot feature in my engine. How can I make an Screenshot and write it to an file ? Thanks , stryx

Share this post


Link to post
Share on other sites
Advertisement
Retrieve the image data using glReadPixels, and write it using fopen/fwrite/fclose. Youll need to format the data into a standard image format though.

-----------------------
"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else''s drivers, I assume it is their fault" - John Carmack

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
there is an example of doing a screenshot in the terrain engine programm of the nehe game tutorial. you can download it and see the source, if you cant find it i will post the source...

Share this post


Link to post
Share on other sites
I think I saw about a exact post like this a couple of days ago.. =)

Kenneth Wilhelmsen
Try my little 3D Engine project, and mail me the FPS. WEngine
Or just visit my site
--------------------------
He who joyfully marches to music in rank and file has already earned my contempt. He has
been given a large brain by mistake, since for him the spinal cord would fully suffice. This
disgrace to civilization should be done away with at once. Heroism at command, senseless
brutality, deplorable love-of-country stance, how violently I hate all this, how despicable and ignoble war is; I would rather be torn to shreds than be a part of so base an action! It is my conviction that killing under the cloak of war is nothing but an act of murder

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!