gl-capture-0.1.0.0: simple image capture from OpenGL

Portabilityportable
Stabilityprovisional
Maintainerclaude@mathr.co.uk
Safe HaskellSafe-Infered

Graphics.Rendering.OpenGL.Capture

Description

Simple image capture from OpenGL.

Synopsis

Documentation

capturePPM :: IO ByteStringSource

Capture the current viewport to a ByteString in PPM P6 format. Correctly handles pixel alignment for oddly-sized regions. Corrects the image orientation so that the origin is top left.