Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Draw a = Draw {}
- data DrawState = DrawState {
- currentProgram :: Maybe (Program '[] '[])
- loadedProgram :: Maybe LoadedProgram
- programs :: ResMap (Program '[] '[]) LoadedProgram
- uniforms :: ResMap (LoadedProgram, String) UniformLocation
- gpuBuffers :: ResMap (Geometry '[]) GPUBufferGeometry
- gpuVAOs :: ResMap (Geometry '[]) GPUVAOGeometry
- textureImages :: ResMap TextureImage LoadedTexture
- activeTextures :: Vector (Maybe Texture)
- viewportSize :: (Int, Int)
- blendMode :: Maybe Mode
- stencilMode :: Maybe Mode
- cullFace :: Maybe CullFace
- depthTest :: Bool
- depthMask :: Bool
- colorMask :: (Bool, Bool, Bool, Bool)
- newtype UniformLocation = UniformLocation UniformLocation
- data Texture
- data TextureImage
- data Filter
- data LoadedTexture = LoadedTexture GLSize GLSize Texture
- data Geometry is = Geometry (AttrList is) [Word16] Int
- data Group gs is where
- Empty :: Group gs is
- Object :: Object gs is -> Group gs is
- Global :: Global g -> Group gs is -> Group (g ': gs) is
- Append :: Group gs is -> Group gs' is' -> Group gs'' is''
- Blend :: Maybe Mode -> Group gs is -> Group gs is
- Stencil :: Maybe Mode -> Group gs is -> Group gs is
- Cull :: Maybe CullFace -> Group gs is -> Group gs is
- DepthTest :: Bool -> Group gs is -> Group gs is
- DepthMask :: Bool -> Group gs is -> Group gs is
- ColorMask :: (Bool, Bool, Bool, Bool) -> Group gs is -> Group gs is
- data Object gs is where
- data Global g where
- data Layer
- data Buffer
- data RenderLayer a = RenderLayer Bool [LayerType] Int Int Int Int Int Int Bool Bool Layer ([Texture] -> Maybe [Color] -> Maybe [Word8] -> a)
- data LayerType
- data CullFace
Documentation
A state monad on top of GL
.
The state of the Draw
monad.
DrawState | |
|
A texture.
data TextureImage Source #
A set of attributes and indices.
data Group gs is where Source #
A group of Object
s.
Empty :: Group gs is | |
Object :: Object gs is -> Group gs is | |
Global :: Global g -> Group gs is -> Group (g ': gs) is | |
Append :: Group gs is -> Group gs' is' -> Group gs'' is'' | |
Blend :: Maybe Mode -> Group gs is -> Group gs is | |
Stencil :: Maybe Mode -> Group gs is -> Group gs is | |
Cull :: Maybe CullFace -> Group gs is -> Group gs is | |
DepthTest :: Bool -> Group gs is -> Group gs is | |
DepthMask :: Bool -> Group gs is -> Group gs is | |
ColorMask :: (Bool, Bool, Bool, Bool) -> Group gs is -> Group gs is |
The value of a GPU uniform.
A Group
associated with a program.
data RenderLayer a Source #