Copyright | (C) 2015 Dimitri Sabadie |
---|---|
License | BSD3 |
Maintainer | Dimitri Sabadie <dimitri.sabadie@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
- class ChannelSize c
- data C8 = C8
- data C16 = C16
- data C32 = C32
- class ChannelType t
- data CInts = CInts
- data CUInts = CUInts
- data CFloats = CFloats
- data CR a = CR
- data CRG a b = CRG
- data CRGB a b c = CRGB
- data CRGBA a b c d = CRGBA
- data CDepth a = CDepth
- data Format t c = Format
- class Pixel f
- type RGB8UI = Format CUInts (CRGB C8 C8 C8)
- type RGBA8UI = Format CUInts (CRGBA C8 C8 C8 C8)
- type RGBA8F = Format CFloats (CRGBA C8 C8 C8 C8)
- type RGB32F = Format CFloats (CRGB C32 C32 C32)
- type RGBA32F = Format CFloats (CRGBA C32 C32 C32 C32)
- type Depth32F = Format CFloats (CDepth C32)
- class Pixel p => ColorPixel p
Channel size
data C32
A 32-bit channel.
Channel type
class ChannelType t
channelType
data CUInts
Channels are unsigned integral values.
data CFloats
Channels are floating values.
Channel shape
data CR a
A red channel only.
data CRG a b
Rd and green channels.
data CRGB a b c
Red, green and blue channels.
data CRGBA a b c d
Red, green, blue and alpha channels.
data CDepth a
A depth channel.
Pixel format
data Format t c
A pixel format.
Pixel Depth32F | |
Pixel RGBA32F | |
Pixel RGB32F | |
Pixel RGBA8UI | |
Pixel RGB8UI | |
Eq (Format t c) | |
Ord (Format t c) | |
Show (Format t c) | |
Pixel (Format t (CRGBA r g b a)) => ColorPixel (Format t (CRGBA r g b a)) | |
Pixel (Format t (CRGB r g b)) => ColorPixel (Format t (CRGB r g b)) | |
Pixel (Format t (CRG r g)) => ColorPixel (Format t (CRG r g)) | |
Pixel (Format t (CR r)) => ColorPixel (Format t (CR r)) | |
ChannelType t => ChannelType (Format t c) | |
Pixel (Format t (CDepth d)) => FramebufferDepthAttachment (Format t (CDepth d)) | |
ColorPixel (Format t c) => FramebufferColorAttachment (Format t c) |
class Pixel f
pixelFormat, pixelIFormat, pixelType