| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.GPipe.Internal.Format
Documentation
Instances
| ContextColorFormat RFloat Source # | |
| ColorRenderable RFloat Source # | |
| ColorSampleable RFloat Source # | |
Defined in Graphics.GPipe.Internal.Format Methods typeStr :: RFloat -> String Source # typeStr4 :: RFloat -> String 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 -> String Source # | |
| TextureFormat RFloat Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods 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 Methods typeStr :: RWord -> String Source # typeStr4 :: RWord -> String Source # toColor :: RWord -> V4 x -> Color RWord x Source # fromColor :: RWord -> Color RWord x -> [x] Source # setBorderColor :: RWord -> GLenum -> Color RWord (ColorElement RWord) -> IO () Source # samplerPrefix :: RWord -> String Source # | |
| TextureFormat RWord Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: RGFloat -> String Source # typeStr4 :: RGFloat -> String 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 -> String Source # | |
| TextureFormat RGFloat Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: RGInt -> String Source # typeStr4 :: RGInt -> String Source # toColor :: RGInt -> V4 x -> Color RGInt x Source # fromColor :: RGInt -> Color RGInt x -> [x] Source # setBorderColor :: RGInt -> GLenum -> Color RGInt (ColorElement RGInt) -> IO () Source # samplerPrefix :: RGInt -> String Source # | |
| TextureFormat RGInt Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: RGWord -> String Source # typeStr4 :: RGWord -> String 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 -> String Source # | |
| TextureFormat RGWord Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: RGBFloat -> String Source # typeStr4 :: RGBFloat -> String 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 -> String Source # | |
| TextureFormat RGBFloat Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: RGBInt -> String Source # typeStr4 :: RGBInt -> String 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 -> String Source # | |
| TextureFormat RGBInt Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: RGBWord -> String Source # typeStr4 :: RGBWord -> String 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 -> String Source # | |
| TextureFormat RGBWord Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: RGBAFloat -> String Source # typeStr4 :: RGBAFloat -> String 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 -> String Source # | |
| TextureFormat RGBAFloat Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: RGBAInt -> String Source # typeStr4 :: RGBAInt -> String 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 -> String Source # | |
| TextureFormat RGBAInt Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: RGBAWord -> String Source # typeStr4 :: RGBAWord -> String 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 -> String Source # | |
| TextureFormat RGBAWord Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: Depth -> String Source # typeStr4 :: Depth -> String Source # toColor :: Depth -> V4 x -> Color Depth x Source # fromColor :: Depth -> Color Depth x -> [x] Source # setBorderColor :: Depth -> GLenum -> Color Depth (ColorElement Depth) -> IO () Source # samplerPrefix :: Depth -> String Source # | |
| TextureFormat Depth Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 Methods typeStr :: DepthStencil -> String Source # typeStr4 :: DepthStencil -> String 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 -> String Source # | |
| TextureFormat DepthStencil Source # | |
Defined in Graphics.GPipe.Internal.Format Methods 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 | |
Constructors
getGlInternalFormat :: Format f -> GLenum Source #
class TextureFormat f where Source #
Minimal complete definition
Nothing
Methods
getGlFormat :: f -> GLenum Source #
Instances
class TextureFormat f => ColorSampleable f where Source #
Minimal complete definition
Nothing
Methods
typeStr :: f -> String Source #
typeStr4 :: f -> String Source #
toColor :: f -> V4 x -> Color f x Source #
fromColor :: f -> Color f x -> [x] Source #
setBorderColor :: f -> GLenum -> Color f (ColorElement f) -> IO () Source #
samplerPrefix :: f -> String Source #
Instances
class ColorSampleable c => ColorRenderable c where Source #
Minimal complete definition
Nothing
Methods
isSrgb :: Format c -> Bool Source #
clearColor :: c -> Color c (ColorElement c) -> IO () 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
class ColorRenderable c => ContextColorFormat c where Source #
Minimal complete definition
Nothing
Methods
redBits :: Format c -> Int Source #
greenBits :: Format c -> Int Source #
depthStencilBits :: Format DepthStencil -> (Int, Int) Source #
data WindowFormat c ds where Source #
Constructors
| 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 |
windowBits :: WindowFormat c ds -> WindowBits Source #