Copyright | (c) Sven Panne 2002-2016 |
---|---|
License | BSD3 |
Maintainer | Sven Panne <svenpanne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module corresponds to a part of section 3.6.1 (Pixel Storage Modes) of the OpenGL 2.1 specs.
- data PixelMapTarget
- class Storable c => PixelMapComponent c
- class PixelMap m where
- data GLpixelmap a
- maxPixelMapTable :: GettableStateVar GLsizei
- pixelMap :: (PixelMap m, PixelMapComponent c) => PixelMapTarget -> StateVar (m c)
- pixelMapIToRGBA :: PixelMapComponent c => StateVar [Color4 c]
- pixelMapRGBAToRGBA :: PixelMapComponent c => StateVar [Color4 c]
Documentation
data PixelMapTarget Source #
class Storable c => PixelMapComponent c Source #
getPixelMapv, pixelMapv
class PixelMap m where Source #
withNewPixelMap :: PixelMapComponent c => Int -> (Ptr c -> IO ()) -> IO (m c) Source #
withPixelMap :: PixelMapComponent c => m c -> (Int -> Ptr c -> IO a) -> IO a Source #
newPixelMap :: PixelMapComponent c => [c] -> IO (m c) Source #
getPixelMapComponents :: PixelMapComponent c => m c -> IO [c] Source #
data GLpixelmap a Source #
PixelMap GLpixelmap Source # | |
Eq (GLpixelmap a) Source # | |
Ord (GLpixelmap a) Source # | |
Show (GLpixelmap a) Source # | |
pixelMap :: (PixelMap m, PixelMapComponent c) => PixelMapTarget -> StateVar (m c) Source #
pixelMapIToRGBA :: PixelMapComponent c => StateVar [Color4 c] Source #
Convenience state variable
pixelMapRGBAToRGBA :: PixelMapComponent c => StateVar [Color4 c] Source #
Convenience state variable