OpenGL-2.9.2.0: A binding for the OpenGL graphics system

Portabilityportable
Stabilitystable
MaintainerSven Panne <svenpanne@gmail.com>
Safe HaskellNone

Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelMap

Description

This module corresponds to a part of section 3.6.1 (Pixel Storage Modes) of the OpenGL 2.1 specs.

Synopsis

Documentation

class PixelMap m whereSource

Methods

withNewPixelMap :: PixelMapComponent c => Int -> (Ptr c -> IO ()) -> IO (m c)Source

withPixelMap :: PixelMapComponent c => m c -> (Int -> Ptr c -> IO a) -> IO aSource

newPixelMap :: PixelMapComponent c => [c] -> IO (m c)Source

getPixelMapComponents :: PixelMapComponent c => m c -> IO [c]Source

Instances

pixelMapIToRGBA :: PixelMapComponent c => StateVar [Color4 c]Source

Convenience state variable

pixelMapRGBAToRGBA :: PixelMapComponent c => StateVar [Color4 c]Source

Convenience state variable