HOpenGL Libraries (OpenGL package)
Contents
Index
Graphics.Rendering.OpenGL.GL.PixelRectangles
Portability
portable
Stability
provisional
Maintainer
sven.panne@aedion.de
Contents
Pixel Storage Modes
Pixel Transfer Modes
Pixel Maps
Color Tables
Convolution Filter
Drawing Pixels
Pixel Zoom
Description
This module corresponds to section 3.6 (Pixel Rectangles) of the OpenGL 1.4 specs.
Synopsis
data
PixelStoreDirection
=
Pack
|
Unpack
swapBytes
::
PixelStoreDirection
->
StateVar
Bool
lsbFirst
::
PixelStoreDirection
->
StateVar
Bool
rowLength
::
PixelStoreDirection
->
StateVar
GLint
skipRows
::
PixelStoreDirection
->
StateVar
GLint
skipPixels
::
PixelStoreDirection
->
StateVar
GLint
rowAlignment
::
PixelStoreDirection
->
StateVar
GLint
imageHeight
::
PixelStoreDirection
->
StateVar
GLint
skipImages
::
PixelStoreDirection
->
StateVar
GLint
data
PixelTransferStage
=
PreConvolution
|
PostConvolution
|
PostColorMatrix
mapColor
::
StateVar
Bool
mapStencil
::
StateVar
Bool
indexShift
::
StateVar
GLint
indexOffset
::
StateVar
GLint
depthScale
::
StateVar
GLfloat
depthBias
::
StateVar
GLfloat
rgbaScale
::
PixelTransferStage
->
StateVar
(
Color4
GLfloat
)
rgbaBias
::
PixelTransferStage
->
StateVar
(
Color4
GLfloat
)
class
Storable
c =>
PixelMapComponent
c
class
PixelMap
m
where
withNewPixelMap
::
PixelMapComponent
c =>
GLsizei
-> (
Ptr
c ->
IO
()) ->
IO
(m c)
withPixelMap
::
PixelMapComponent
c => m c -> (
GLsizei
->
Ptr
c ->
IO
a) ->
IO
a
newPixelMap
::
PixelMapComponent
c => [c] ->
IO
(m c)
getPixelMapComponents
::
PixelMapComponent
c => m c ->
IO
[c]
data
GLpixelmap
a
maxPixelMapTable
::
GettableStateVar
GLsizei
pixelMapIToI
::
PixelMap
m =>
StateVar
(m
GLuint
)
pixelMapSToS
::
PixelMap
m =>
StateVar
(m
GLuint
)
pixelMapIToR
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapIToG
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapIToB
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapIToA
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapRToR
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapGToG
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapBToB
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapAToA
::
PixelMap
m =>
StateVar
(m
GLfloat
)
colorTableEnabled
::
PixelTransferStage
->
StateVar
Capability
colorTableScale
::
PixelTransferStage
->
StateVar
(
Color4
GLfloat
)
colorTableBias
::
PixelTransferStage
->
StateVar
(
Color4
GLfloat
)
colorTableFormat
::
PixelTransferStage
->
GettableStateVar
PixelInternalFormat
colorTableWidth
::
PixelTransferStage
->
GettableStateVar
GLsizei
colorTableRGBASizes
::
PixelTransferStage
->
GettableStateVar
(
Color4
GLsizei
)
colorTableLuminanceSize
::
PixelTransferStage
->
GettableStateVar
GLsizei
colorTableIntesitySize
::
PixelTransferStage
->
GettableStateVar
GLsizei
maxConvolutionSize
::
GettableStateVar
Size
data
PixelFormat
=
ColorIndex
|
StencilIndex
|
DepthComponent
|
Red
|
Green
|
Blue
|
Alpha
|
RGB
|
RGBA
|
Luminance
|
LuminanceAlpha
|
ABGR
|
BGR
|
BGRA
|
CMYK
|
CMYKA
|
FourTwoTwo
|
FourTwoTwoRev
|
FourTwoTwoAverage
|
FourTwoTwoRevAverage
|
YCBCR422
|
DepthStencil
drawPixels
::
Size
->
PixelFormat
->
DataType
->
Ptr
a ->
IO
()
pixelZoom
::
StateVar
(
GLfloat
,
GLfloat
)
Pixel Storage Modes
data
PixelStoreDirection
Constructors
Pack
Unpack
Instances
Eq
PixelStoreDirection
Ord
PixelStoreDirection
Show
PixelStoreDirection
swapBytes
::
PixelStoreDirection
->
StateVar
Bool
lsbFirst
::
PixelStoreDirection
->
StateVar
Bool
rowLength
::
PixelStoreDirection
->
StateVar
GLint
skipRows
::
PixelStoreDirection
->
StateVar
GLint
skipPixels
::
PixelStoreDirection
->
StateVar
GLint
rowAlignment
::
PixelStoreDirection
->
StateVar
GLint
imageHeight
::
PixelStoreDirection
->
StateVar
GLint
skipImages
::
PixelStoreDirection
->
StateVar
GLint
Pixel Transfer Modes
data
PixelTransferStage
Constructors
PreConvolution
PostConvolution
PostColorMatrix
Instances
Eq
PixelTransferStage
Ord
PixelTransferStage
Show
PixelTransferStage
mapColor
::
StateVar
Bool
mapStencil
::
StateVar
Bool
indexShift
::
StateVar
GLint
indexOffset
::
StateVar
GLint
depthScale
::
StateVar
GLfloat
depthBias
::
StateVar
GLfloat
rgbaScale
::
PixelTransferStage
->
StateVar
(
Color4
GLfloat
)
rgbaBias
::
PixelTransferStage
->
StateVar
(
Color4
GLfloat
)
Pixel Maps
class
Storable
c =>
PixelMapComponent
c
Instances
PixelMapComponent
GLuint
PixelMapComponent
GLfloat
class
PixelMap
m
where
Methods
withNewPixelMap
::
PixelMapComponent
c =>
GLsizei
-> (
Ptr
c ->
IO
()) ->
IO
(m c)
withPixelMap
::
PixelMapComponent
c => m c -> (
GLsizei
->
Ptr
c ->
IO
a) ->
IO
a
newPixelMap
::
PixelMapComponent
c => [c] ->
IO
(m c)
getPixelMapComponents
::
PixelMapComponent
c => m c ->
IO
[c]
Instances
PixelMap
GLpixelmap
data
GLpixelmap
a
Instances
Eq
(
GLpixelmap
a)
Ord
(
GLpixelmap
a)
Show
(
GLpixelmap
a)
PixelMap
GLpixelmap
maxPixelMapTable
::
GettableStateVar
GLsizei
pixelMapIToI
::
PixelMap
m =>
StateVar
(m
GLuint
)
pixelMapSToS
::
PixelMap
m =>
StateVar
(m
GLuint
)
pixelMapIToR
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapIToG
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapIToB
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapIToA
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapRToR
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapGToG
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapBToB
::
PixelMap
m =>
StateVar
(m
GLfloat
)
pixelMapAToA
::
PixelMap
m =>
StateVar
(m
GLfloat
)
Color Tables
colorTableEnabled
::
PixelTransferStage
->
StateVar
Capability
colorTableScale
::
PixelTransferStage
->
StateVar
(
Color4
GLfloat
)
colorTableBias
::
PixelTransferStage
->
StateVar
(
Color4
GLfloat
)
colorTableFormat
::
PixelTransferStage
->
GettableStateVar
PixelInternalFormat
colorTableWidth
::
PixelTransferStage
->
GettableStateVar
GLsizei
colorTableRGBASizes
::
PixelTransferStage
->
GettableStateVar
(
Color4
GLsizei
)
colorTableLuminanceSize
::
PixelTransferStage
->
GettableStateVar
GLsizei
colorTableIntesitySize
::
PixelTransferStage
->
GettableStateVar
GLsizei
Convolution Filter
maxConvolutionSize
::
GettableStateVar
Size
Drawing Pixels
data
PixelFormat
Constructors
ColorIndex
StencilIndex
DepthComponent
Red
Green
Blue
Alpha
RGB
RGBA
Luminance
LuminanceAlpha
ABGR
BGR
BGRA
CMYK
CMYKA
FourTwoTwo
FourTwoTwoRev
FourTwoTwoAverage
FourTwoTwoRevAverage
YCBCR422
DepthStencil
Instances
Eq
PixelFormat
Ord
PixelFormat
Show
PixelFormat
drawPixels
::
Size
->
PixelFormat
->
DataType
->
Ptr
a ->
IO
()
Pixel Zoom
pixelZoom
::
StateVar
(
GLfloat
,
GLfloat
)
Produced by
Haddock
version 0.6