Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Saving the screen as a bitmap

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2000
    Location
    Southampton England
    Posts
    13

    Saving the screen as a bitmap

    I heard that it is possible to call a function that writes the current screen to a picture file, is this true? Can anyone offer advice or help on this process.

    Also is it possible to write animation files as an output?

    Cheers Tom.
    Tom [img]/forum/images/%%GRAEMLIN_URL%%/smile.gif[/img]

  2. #2

    Re: Saving the screen as a bitmap

    glReadPixels doesn't write directly into a file but into a buffer where you can save it into any format you like. To save an animation you just have to grab each frame and store them using some lib or your own stuff.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •