Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides data types for all formats of textures and frame buffers. None of the type classes in this module are intended to be instanced by anyone else. In fact,
GPipe only uses these type classes through the GADT Format
, which is closed, so any new instances wouldnt be considered anyway.
Synopsis
- data Format a where
- R8 :: Format RFloat
- R8S :: Format RFloat
- R16 :: Format RFloat
- R16S :: Format RFloat
- R16F :: Format RFloat
- R32F :: Format RFloat
- R8I :: Format RInt
- R16I :: Format RInt
- R32I :: Format RInt
- R8UI :: Format RWord
- R16UI :: Format RWord
- R32UI :: Format RWord
- RG8 :: Format RGFloat
- RG8S :: Format RGFloat
- RG16 :: Format RGFloat
- RG16S :: Format RGFloat
- RG16F :: Format RGFloat
- RG32F :: Format RGFloat
- RG8I :: Format RGInt
- RG16I :: Format RGInt
- RG32I :: Format RGInt
- RG8UI :: Format RGWord
- RG16UI :: Format RGWord
- RG32UI :: Format RGWord
- R3G3B2 :: Format RGBFloat
- RGB4 :: Format RGBFloat
- RGB5 :: Format RGBFloat
- RGB8 :: Format RGBFloat
- RGB8S :: Format RGBFloat
- RGB10 :: Format RGBFloat
- RGB12 :: Format RGBFloat
- RGB16 :: Format RGBFloat
- RGB16S :: Format RGBFloat
- RGB16F :: Format RGBFloat
- RGB32F :: Format RGBFloat
- R11FG11FB10F :: Format RGBFloat
- RGB9E5 :: Format RGBFloat
- SRGB8 :: Format RGBFloat
- RGB8I :: Format RGBInt
- RGB16I :: Format RGBInt
- RGB32I :: Format RGBInt
- RGBWord :: Format RGBWord
- RGB8UI :: Format RGBWord
- RGB16UI :: Format RGBWord
- RGB32UI :: Format RGBWord
- RGBA2 :: Format RGBAFloat
- RGBA4 :: Format RGBAFloat
- RGB5A1 :: Format RGBAFloat
- RGBA8 :: Format RGBAFloat
- RGBA8S :: Format RGBAFloat
- RGB10A2 :: Format RGBAFloat
- RGBA12 :: Format RGBAFloat
- RGBA16 :: Format RGBAFloat
- RGBA16S :: Format RGBAFloat
- RGBA16F :: Format RGBAFloat
- RGBA32F :: Format RGBAFloat
- SRGB8A8 :: Format RGBAFloat
- RGBA8I :: Format RGBAInt
- RGBA16I :: Format RGBAInt
- RGBA32I :: Format RGBAInt
- RGBA8UI :: Format RGBAWord
- RGBA16UI :: Format RGBAWord
- RGBA32UI :: Format RGBAWord
- Depth16 :: Format Depth
- Depth24 :: Format Depth
- Depth32 :: Format Depth
- Depth32F :: Format Depth
- Stencil1 :: Format Stencil
- Stencil4 :: Format Stencil
- Stencil8 :: Format Stencil
- Stencil16 :: Format Stencil
- Depth24Stencil8 :: Format DepthStencil
- Depth32FStencil8 :: Format DepthStencil
- class TextureFormat f
- data RFloat
- data RInt
- data RWord
- data RGFloat
- data RGInt
- data RGWord
- data RGBFloat
- data RGBInt
- data RGBWord
- data RGBAFloat
- data RGBAInt
- data RGBAWord
- data Depth
- data Stencil
- data DepthStencil
- class TextureFormat f => ColorSampleable f where
- type Color f a
- type ColorElement f :: *
- class ColorSampleable c => ColorRenderable c
- class ColorSampleable f => DepthRenderable f
- class StencilRenderable f
- data WindowFormat c ds where
- WindowFormatColor :: ContextColorFormat c => Format c -> WindowFormat c ()
- WindowFormatColorDepth :: ContextColorFormat c => Format c -> Format Depth -> WindowFormat c Depth
- WindowFormatColorStencil :: ContextColorFormat c => Format c -> Format Stencil -> WindowFormat c Stencil
- WindowFormatColorDepthStencilSeparate :: ContextColorFormat c => Format c -> Format Depth -> Format Stencil -> WindowFormat c DepthStencil
- WindowFormatColorDepthStencilCombined :: ContextColorFormat c => Format c -> Format DepthStencil -> WindowFormat c DepthStencil
- WindowFormatDepth :: Format Depth -> WindowFormat () Depth
- WindowFormatStencil :: Format Stencil -> WindowFormat () Stencil
- WindowFormatDepthStencilSeparate :: Format Depth -> Format Stencil -> WindowFormat () DepthStencil
- WindowFormatDepthStencilCombined :: Format DepthStencil -> WindowFormat () DepthStencil
- class ColorRenderable c => ContextColorFormat c
- windowBits :: WindowFormat c ds -> WindowBits
- type WindowBits = ((Int, Int, Int, Int, Bool), Int, Int)
Texture formats
class TextureFormat f Source #
Instances
Instances
ContextColorFormat RFloat Source # | |
ColorRenderable RFloat Source # | |
ColorSampleable RFloat Source # | |
Defined in Graphics.GPipe.Internal.Format typeStr :: RFloat -> Text Source # typeStr4 :: RFloat -> Text Source # toColor :: RFloat -> V4 x -> Color RFloat x Source # fromColor :: RFloat -> Color RFloat x -> [x] Source # setBorderColor :: RFloat -> GLenum -> Color RFloat (ColorElement RFloat) -> IO () Source # samplerPrefix :: RFloat -> Text Source # | |
TextureFormat RFloat Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RFloat -> GLenum Source # | |
type ColorElement RFloat Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RFloat a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ColorRenderable RInt Source # | |
ColorSampleable RInt Source # | |
Defined in Graphics.GPipe.Internal.Format | |
TextureFormat RInt Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RInt -> GLenum Source # | |
type ColorElement RInt Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RInt a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ColorRenderable RWord Source # | |
ColorSampleable RWord Source # | |
Defined in Graphics.GPipe.Internal.Format | |
TextureFormat RWord Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RWord -> GLenum Source # | |
type ColorElement RWord Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RWord a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ContextColorFormat RGFloat Source # | |
ColorRenderable RGFloat Source # | |
ColorSampleable RGFloat Source # | |
Defined in Graphics.GPipe.Internal.Format typeStr :: RGFloat -> Text Source # typeStr4 :: RGFloat -> Text Source # toColor :: RGFloat -> V4 x -> Color RGFloat x Source # fromColor :: RGFloat -> Color RGFloat x -> [x] Source # setBorderColor :: RGFloat -> GLenum -> Color RGFloat (ColorElement RGFloat) -> IO () Source # samplerPrefix :: RGFloat -> Text Source # | |
TextureFormat RGFloat Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RGFloat -> GLenum Source # | |
type ColorElement RGFloat Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RGFloat a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ColorRenderable RGInt Source # | |
ColorSampleable RGInt Source # | |
Defined in Graphics.GPipe.Internal.Format | |
TextureFormat RGInt Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RGInt -> GLenum Source # | |
type ColorElement RGInt Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RGInt a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ColorRenderable RGWord Source # | |
ColorSampleable RGWord Source # | |
Defined in Graphics.GPipe.Internal.Format typeStr :: RGWord -> Text Source # typeStr4 :: RGWord -> Text Source # toColor :: RGWord -> V4 x -> Color RGWord x Source # fromColor :: RGWord -> Color RGWord x -> [x] Source # setBorderColor :: RGWord -> GLenum -> Color RGWord (ColorElement RGWord) -> IO () Source # samplerPrefix :: RGWord -> Text Source # | |
TextureFormat RGWord Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RGWord -> GLenum Source # | |
type ColorElement RGWord Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RGWord a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ContextColorFormat RGBFloat Source # | |
ColorRenderable RGBFloat Source # | |
ColorSampleable RGBFloat Source # | |
Defined in Graphics.GPipe.Internal.Format typeStr :: RGBFloat -> Text Source # typeStr4 :: RGBFloat -> Text Source # toColor :: RGBFloat -> V4 x -> Color RGBFloat x Source # fromColor :: RGBFloat -> Color RGBFloat x -> [x] Source # setBorderColor :: RGBFloat -> GLenum -> Color RGBFloat (ColorElement RGBFloat) -> IO () Source # samplerPrefix :: RGBFloat -> Text Source # | |
TextureFormat RGBFloat Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RGBFloat -> GLenum Source # | |
type ColorElement RGBFloat Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RGBFloat a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ColorRenderable RGBInt Source # | |
ColorSampleable RGBInt Source # | |
Defined in Graphics.GPipe.Internal.Format typeStr :: RGBInt -> Text Source # typeStr4 :: RGBInt -> Text Source # toColor :: RGBInt -> V4 x -> Color RGBInt x Source # fromColor :: RGBInt -> Color RGBInt x -> [x] Source # setBorderColor :: RGBInt -> GLenum -> Color RGBInt (ColorElement RGBInt) -> IO () Source # samplerPrefix :: RGBInt -> Text Source # | |
TextureFormat RGBInt Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RGBInt -> GLenum Source # | |
type ColorElement RGBInt Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RGBInt a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ColorRenderable RGBWord Source # | |
ColorSampleable RGBWord Source # | |
Defined in Graphics.GPipe.Internal.Format typeStr :: RGBWord -> Text Source # typeStr4 :: RGBWord -> Text Source # toColor :: RGBWord -> V4 x -> Color RGBWord x Source # fromColor :: RGBWord -> Color RGBWord x -> [x] Source # setBorderColor :: RGBWord -> GLenum -> Color RGBWord (ColorElement RGBWord) -> IO () Source # samplerPrefix :: RGBWord -> Text Source # | |
TextureFormat RGBWord Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RGBWord -> GLenum Source # | |
type ColorElement RGBWord Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RGBWord a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ContextColorFormat RGBAFloat Source # | |
ColorRenderable RGBAFloat Source # | |
ColorSampleable RGBAFloat Source # | |
Defined in Graphics.GPipe.Internal.Format typeStr :: RGBAFloat -> Text Source # typeStr4 :: RGBAFloat -> Text Source # toColor :: RGBAFloat -> V4 x -> Color RGBAFloat x Source # fromColor :: RGBAFloat -> Color RGBAFloat x -> [x] Source # setBorderColor :: RGBAFloat -> GLenum -> Color RGBAFloat (ColorElement RGBAFloat) -> IO () Source # samplerPrefix :: RGBAFloat -> Text Source # | |
TextureFormat RGBAFloat Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RGBAFloat -> GLenum Source # | |
type ColorElement RGBAFloat Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RGBAFloat a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ColorRenderable RGBAInt Source # | |
ColorSampleable RGBAInt Source # | |
Defined in Graphics.GPipe.Internal.Format typeStr :: RGBAInt -> Text Source # typeStr4 :: RGBAInt -> Text Source # toColor :: RGBAInt -> V4 x -> Color RGBAInt x Source # fromColor :: RGBAInt -> Color RGBAInt x -> [x] Source # setBorderColor :: RGBAInt -> GLenum -> Color RGBAInt (ColorElement RGBAInt) -> IO () Source # samplerPrefix :: RGBAInt -> Text Source # | |
TextureFormat RGBAInt Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RGBAInt -> GLenum Source # | |
type ColorElement RGBAInt Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RGBAInt a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
ColorRenderable RGBAWord Source # | |
ColorSampleable RGBAWord Source # | |
Defined in Graphics.GPipe.Internal.Format typeStr :: RGBAWord -> Text Source # typeStr4 :: RGBAWord -> Text Source # toColor :: RGBAWord -> V4 x -> Color RGBAWord x Source # fromColor :: RGBAWord -> Color RGBAWord x -> [x] Source # setBorderColor :: RGBAWord -> GLenum -> Color RGBAWord (ColorElement RGBAWord) -> IO () Source # samplerPrefix :: RGBAWord -> Text Source # | |
TextureFormat RGBAWord Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: RGBAWord -> GLenum Source # | |
type ColorElement RGBAWord Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color RGBAWord a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
DepthRenderable Depth Source # | |
Defined in Graphics.GPipe.Internal.Format | |
ColorSampleable Depth Source # | |
Defined in Graphics.GPipe.Internal.Format | |
TextureFormat Depth Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: Depth -> GLenum Source # | |
type ColorElement Depth Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color Depth a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Instances
data DepthStencil Source #
Instances
StencilRenderable DepthStencil Source # | |
Defined in Graphics.GPipe.Internal.Format | |
DepthRenderable DepthStencil Source # | |
Defined in Graphics.GPipe.Internal.Format | |
ColorSampleable DepthStencil Source # | |
Defined in Graphics.GPipe.Internal.Format type Color DepthStencil a Source # type ColorElement DepthStencil Source # typeStr :: DepthStencil -> Text Source # typeStr4 :: DepthStencil -> Text Source # toColor :: DepthStencil -> V4 x -> Color DepthStencil x Source # fromColor :: DepthStencil -> Color DepthStencil x -> [x] Source # setBorderColor :: DepthStencil -> GLenum -> Color DepthStencil (ColorElement DepthStencil) -> IO () Source # samplerPrefix :: DepthStencil -> Text Source # | |
TextureFormat DepthStencil Source # | |
Defined in Graphics.GPipe.Internal.Format getGlFormat :: DepthStencil -> GLenum Source # | |
type ColorElement DepthStencil Source # | |
Defined in Graphics.GPipe.Internal.Format | |
type Color DepthStencil a Source # | |
Defined in Graphics.GPipe.Internal.Format |
Format constraints
class TextureFormat f => ColorSampleable f Source #
Instances
class ColorSampleable c => ColorRenderable c Source #
Instances
class ColorSampleable f => DepthRenderable f Source #
Instances
DepthRenderable DepthStencil Source # | |
Defined in Graphics.GPipe.Internal.Format | |
DepthRenderable Depth Source # | |
Defined in Graphics.GPipe.Internal.Format |
class StencilRenderable f Source #
Instances
Context formats
data WindowFormat c ds where Source #
WindowFormatColor :: ContextColorFormat c => Format c -> WindowFormat c () | |
WindowFormatColorDepth :: ContextColorFormat c => Format c -> Format Depth -> WindowFormat c Depth | |
WindowFormatColorStencil :: ContextColorFormat c => Format c -> Format Stencil -> WindowFormat c Stencil | |
WindowFormatColorDepthStencilSeparate :: ContextColorFormat c => Format c -> Format Depth -> Format Stencil -> WindowFormat c DepthStencil | |
WindowFormatColorDepthStencilCombined :: ContextColorFormat c => Format c -> Format DepthStencil -> WindowFormat c DepthStencil | |
WindowFormatDepth :: Format Depth -> WindowFormat () Depth | |
WindowFormatStencil :: Format Stencil -> WindowFormat () Stencil | |
WindowFormatDepthStencilSeparate :: Format Depth -> Format Stencil -> WindowFormat () DepthStencil | |
WindowFormatDepthStencilCombined :: Format DepthStencil -> WindowFormat () DepthStencil |
class ColorRenderable c => ContextColorFormat c Source #
windowBits :: WindowFormat c ds -> WindowBits Source #