View Full Version : Screen shots

04-27-2004, 01:44 PM
hi i am looking to obtain screen shots of my outputs for certain programs i have written.
is there anyway to get this done within the code itself (i'm not too keen on using printscreen).
i'm looking for some opengl command that wll create a bitmap or a jpeg file of watever is on display at that moment.
can anyone help me out???

04-27-2004, 01:48 PM
look at glReadPixels this will give you the raw pixel data. From there it is up to you to save it as some sort of image file.