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.Convolution

Description

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

# Documentation

data ConvolutionTarget Source #

Constructors

Convolution1D |
Convolution2D |
Separable2D |

#### Instances

Instances details

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

Instance details

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

Methods

compare :: ConvolutionTarget -> ConvolutionTarget -> Ordering Source #

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

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

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

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

max :: ConvolutionTarget -> ConvolutionTarget -> ConvolutionTarget Source #

min :: ConvolutionTarget -> ConvolutionTarget -> ConvolutionTarget Source #

convolution :: ConvolutionTarget -> StateVar Capability Source #

convolutionFilter1D :: PixelInternalFormat -> GLsizei -> PixelData a -> IO () Source #

getConvolutionFilter1D :: PixelData a -> IO () Source #

convolutionFilter2D :: PixelInternalFormat -> Size -> PixelData a -> IO () Source #

getConvolutionFilter2D :: PixelData a -> IO () Source #

separableFilter2D :: PixelInternalFormat -> Size -> PixelData a -> PixelData a -> IO () Source #

getSeparableFilter2D :: PixelData a -> PixelData a -> IO () Source #

copyConvolutionFilter1D :: PixelInternalFormat -> Position -> GLsizei -> IO () Source #

copyConvolutionFilter2D :: PixelInternalFormat -> Position -> Size -> IO () Source #

convolutionWidth :: ConvolutionTarget -> GettableStateVar GLsizei Source #

convolutionHeight :: ConvolutionTarget -> GettableStateVar GLsizei Source #

maxConvolutionWidth :: ConvolutionTarget -> GettableStateVar GLsizei Source #

maxConvolutionHeight :: ConvolutionTarget -> GettableStateVar GLsizei Source #

data ConvolutionBorderMode Source #

Constructors

Reduce |
ConstantBorder (Color4 GLfloat) |
ReplicateBorder |

#### Instances

Instances details

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

Instance details

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

Methods

compare :: ConvolutionBorderMode -> ConvolutionBorderMode -> Ordering Source #

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

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

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

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

max :: ConvolutionBorderMode -> ConvolutionBorderMode -> ConvolutionBorderMode Source #

min :: ConvolutionBorderMode -> ConvolutionBorderMode -> ConvolutionBorderMode Source #

convolutionBorderMode :: ConvolutionTarget -> StateVar ConvolutionBorderMode Source #

convolutionFilterScale :: ConvolutionTarget -> StateVar (Color4 GLfloat) Source #

convolutionFilterBias :: ConvolutionTarget -> StateVar (Color4 GLfloat) Source #