| Copyright | (c) Sven Panne 2002-2018 |
|---|---|
| License | BSD3 |
| Maintainer | Sven Panne <svenpanne@gmail.com> |
| Stability | stable |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
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
- 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 #
Instances
| Eq PixelMapTarget # | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelMap Methods (==) :: PixelMapTarget -> PixelMapTarget -> Bool # (/=) :: PixelMapTarget -> PixelMapTarget -> Bool # | |
| Ord PixelMapTarget # | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelMap Methods compare :: PixelMapTarget -> PixelMapTarget -> Ordering # (<) :: PixelMapTarget -> PixelMapTarget -> Bool # (<=) :: PixelMapTarget -> PixelMapTarget -> Bool # (>) :: PixelMapTarget -> PixelMapTarget -> Bool # (>=) :: PixelMapTarget -> PixelMapTarget -> Bool # max :: PixelMapTarget -> PixelMapTarget -> PixelMapTarget # min :: PixelMapTarget -> PixelMapTarget -> PixelMapTarget # | |
| Show PixelMapTarget # | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelMap Methods showsPrec :: Int -> PixelMapTarget -> ShowS # show :: PixelMapTarget -> String # showList :: [PixelMapTarget] -> ShowS # | |
class Storable c => PixelMapComponent c #
Minimal complete definition
getPixelMapv, pixelMapv
Methods
withNewPixelMap :: PixelMapComponent c => Int -> (Ptr c -> IO ()) -> IO (m c) #
withPixelMap :: PixelMapComponent c => m c -> (Int -> Ptr c -> IO a) -> IO a #
newPixelMap :: PixelMapComponent c => [c] -> IO (m c) #
getPixelMapComponents :: PixelMapComponent c => m c -> IO [c] #
Instances
| PixelMap GLpixelmap # | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelMap Methods withNewPixelMap :: PixelMapComponent c => Int -> (Ptr c -> IO ()) -> IO (GLpixelmap c) # withPixelMap :: PixelMapComponent c => GLpixelmap c -> (Int -> Ptr c -> IO a) -> IO a # newPixelMap :: PixelMapComponent c => [c] -> IO (GLpixelmap c) # getPixelMapComponents :: PixelMapComponent c => GLpixelmap c -> IO [c] # | |
data GLpixelmap a #
Instances
pixelMap :: (PixelMap m, PixelMapComponent c) => PixelMapTarget -> StateVar (m c) #
pixelMapIToRGBA :: PixelMapComponent c => StateVar [Color4 c] #
Convenience state variable
pixelMapRGBAToRGBA :: PixelMapComponent c => StateVar [Color4 c] #
Convenience state variable