OpenGL-3.0.3.0: A binding for the OpenGL graphics system

Copyright | (c) Sven Panne 2002-2019
License | BSD3
Maintainer | Sven Panne <svenpanne@gmail.com>
Stability | stable
Portability | portable
Safe Haskell | None
Language | Haskell2010

Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable

Description

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

# Documentation

data ColorTableStage Source #

Constructors

ColorTableStage |
PostConvolutionColorTableStage |
PostColorMatrixColorTableStage |
TextureColorTableStage |

#### Instances

Instances details

Show ColorTableStage Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods showsPrec :: Int -> ColorTableStage -> ShowS Source # show :: ColorTableStage -> String Source # showList :: [ColorTableStage] -> ShowS Source #
Eq ColorTableStage Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods (==) :: ColorTableStage -> ColorTableStage -> Bool Source # (/=) :: ColorTableStage -> ColorTableStage -> Bool Source #
Ord ColorTableStage Source # |

Instance details

Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable

Methods

compare :: ColorTableStage -> ColorTableStage -> Ordering Source #

(<) :: ColorTableStage -> ColorTableStage -> Bool Source #

(<=) :: ColorTableStage -> ColorTableStage -> Bool Source #

(>) :: ColorTableStage -> ColorTableStage -> Bool Source #

(>=) :: ColorTableStage -> ColorTableStage -> Bool Source #

max :: ColorTableStage -> ColorTableStage -> ColorTableStage Source #

min :: ColorTableStage -> ColorTableStage -> ColorTableStage Source #

colorTableStage :: ColorTableStage -> StateVar Capability Source #

data Proxy Source #

Constructors

NoProxy |
Proxy |

#### Instances

Instances details

Show Proxy Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods showsPrec :: Int -> Proxy -> ShowS Source # show :: Proxy -> String Source # showList :: [Proxy] -> ShowS Source #
Eq Proxy Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods (==) :: Proxy -> Proxy -> Bool Source # (/=) :: Proxy -> Proxy -> Bool Source #
Ord Proxy Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods compare :: Proxy -> Proxy -> Ordering Source # (<) :: Proxy -> Proxy -> Bool Source # (<=) :: Proxy -> Proxy -> Bool Source # (>) :: Proxy -> Proxy -> Bool Source # (>=) :: Proxy -> Proxy -> Bool Source # max :: Proxy -> Proxy -> Proxy Source # min :: Proxy -> Proxy -> Proxy Source #

data ColorTable Source #

Constructors

ColorTable |
PostConvolutionColorTable |
PostColorMatrixColorTable |
Texture1DColorTable |
Texture2DColorTable |
Texture3DColorTable |
TextureCubeMapColorTable |
TextureColorTable |
SharedTexturePalette |

#### Instances

Instances details

Show ColorTable Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods showsPrec :: Int -> ColorTable -> ShowS Source # show :: ColorTable -> String Source # showList :: [ColorTable] -> ShowS Source #
Eq ColorTable Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods (==) :: ColorTable -> ColorTable -> Bool Source # (/=) :: ColorTable -> ColorTable -> Bool Source #
Ord ColorTable Source # |

Instance details

Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable

Methods

compare :: ColorTable -> ColorTable -> Ordering Source #

(<) :: ColorTable -> ColorTable -> Bool Source #

(<=) :: ColorTable -> ColorTable -> Bool Source #

(>) :: ColorTable -> ColorTable -> Bool Source #

(>=) :: ColorTable -> ColorTable -> Bool Source #

max :: ColorTable -> ColorTable -> ColorTable Source #

min :: ColorTable -> ColorTable -> ColorTable Source #

data PixelInternalFormat Source #

Constructors

Alpha' |
DepthComponent' |
Luminance' |
LuminanceAlpha' |
Intensity |
R8 |
R16 |
RG8 |
RG16 |
RGB' |
RGBA' |
SRGB |
SRGBAlpha |
SLuminance |
SLuminanceAlpha |
Alpha4 |
Alpha8 |
Alpha12 |
Alpha16 |
DepthComponent16 |
DepthComponent24 |
DepthComponent32 |
Luminance4 |
Luminance8 |
Luminance12 |
Luminance16 |
Luminance4Alpha4 |
Luminance6Alpha2 |
Luminance8Alpha8 |
Luminance12Alpha4 |
Luminance12Alpha12 |
Luminance16Alpha16 |
Intensity4 |
Intensity8 |
Intensity12 |
Intensity16 |
R3G3B2 |
RGB4 |
RGB5 |
RGB8 |
RGB10 |
RGB12 |
RGB16 |
RGBA2 |
RGBA4 |
RGB5A1 |
RGBA8 |
RGB10A2 |
RGBA12 |
RGBA16 |
SRGB8 |
SRGB8Alpha8 |
R16F |
RG16F |
RGB16F |
RGBA16F |
R32F |
RG32F |
RGB32F |
RGBA32F |
R8I |
R8UI |
R16I |
R16UI |
R32I |
R32UI |
RG8I |
RG8UI |
RG16I |
RG16UI |
RG32I |
RG32UI |
RGB8I |
RGB8UI |
RGB16I |
RGB16UI |
RGB32I |
RGB32UI |
RGBA8I |
RGBA8UI |
RGBA16I |
RGBA16UI |
RGBA32I |
RGBA32UI |
SLuminance8 |
SLuminance8Alpha8 |
CompressedAlpha |
CompressedLuminance |
CompressedLuminanceAlpha |
CompressedIntensity |
CompressedRed |
CompressedRG |
CompressedRGB |
CompressedRGBA |
CompressedSRGB |
CompressedSRGBAlpha |
CompressedSLuminance |
CompressedSLuminanceAlpha |
CompressedRedRGTC1 |
CompressedSignedRedRGTC1 |
CompressedRG_RGTC2 |
CompressedSignedRG_RGTC2 |
DepthComponent32f |
Depth32fStencil8 |
RGB9E5 |
R11fG11fB10f |
StencilIndex1 |
StencilIndex4 |
StencilIndex8 |
StencilIndex16 |
RGBS3TC |
RGB4S3TC |
RGBAS3TC |
RGBA4S3TC |
RGBADXT5S3TC |
RGBA4DXT5S3TC |
CompressedRGBAS3TCDXT1 |
CompressedRGBAS3TCDXT3 |
CompressedRGBAS3TCDXT5 |
CompressedRGBS3TCDXT1 |
Alpha32F |
Intensity32F |
Luminance32F |
LuminanceAlpha32F |
Alpha16F |
Intensity16F |
Luminance16F |
LuminanceAlpha16F |
Depth24Stencil8 |

#### Instances

Instances details

Show PixelInternalFormat Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Texturing.PixelInternalFormat Methods showsPrec :: Int -> PixelInternalFormat -> ShowS Source # show :: PixelInternalFormat -> String Source # showList :: [PixelInternalFormat] -> ShowS Source #
Eq PixelInternalFormat Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Texturing.PixelInternalFormat Methods (==) :: PixelInternalFormat -> PixelInternalFormat -> Bool Source # (/=) :: PixelInternalFormat -> PixelInternalFormat -> Bool Source #
Ord PixelInternalFormat Source # |

Instance details

Defined in Graphics.Rendering.OpenGL.GL.Texturing.PixelInternalFormat

Methods

compare :: PixelInternalFormat -> PixelInternalFormat -> Ordering Source #

(<) :: PixelInternalFormat -> PixelInternalFormat -> Bool Source #

(<=) :: PixelInternalFormat -> PixelInternalFormat -> Bool Source #

(>) :: PixelInternalFormat -> PixelInternalFormat -> Bool Source #

(>=) :: PixelInternalFormat -> PixelInternalFormat -> Bool Source #

max :: PixelInternalFormat -> PixelInternalFormat -> PixelInternalFormat Source #

min :: PixelInternalFormat -> PixelInternalFormat -> PixelInternalFormat Source #

colorTable :: Proxy -> ColorTable -> PixelInternalFormat -> GLsizei -> PixelData a -> IO () Source #

getColorTable :: ColorTable -> PixelData a -> IO () Source #

copyColorTable :: ColorTable -> PixelInternalFormat -> Position -> GLsizei -> IO () Source #

colorSubTable :: ColorTable -> GLsizei -> GLsizei -> PixelData a -> IO () Source #

copyColorSubTable :: ColorTable -> GLsizei -> Position -> GLsizei -> IO () Source #

colorTableScale :: ColorTableStage -> StateVar (Color4 GLfloat) Source #

colorTableBias :: ColorTableStage -> StateVar (Color4 GLfloat) Source #

colorTableFormat :: ColorTable -> GettableStateVar PixelInternalFormat Source #

colorTableWidth :: ColorTable -> GettableStateVar GLsizei Source #

colorTableRGBASizes :: ColorTable -> GettableStateVar (Color4 GLsizei) Source #

colorTableLuminanceSize :: ColorTable -> GettableStateVar GLsizei Source #

colorTableIntesitySize :: ColorTable -> GettableStateVar GLsizei Source #