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
- depthTest :: Bool
- newtype UniformLocation = UniformLocation UniformLocation
- data Texture
- data TextureImage
- data LoadedTexture = LoadedTexture GLSize GLSize Texture
- data Geometry is = Geometry (AttrList is) [Word16] Int
- data Group gs is where
- data Object gs is where
- data Global g where
- data Layer
- = (Subset pi oi, Subset pg og) => Layer (Program pg pi) (Group og oi)
- | SubLayer (RenderLayer [Layer])
- | MultiLayer [Layer]
- data RenderLayer a = RenderLayer Bool [LayerType] Int Int Int Int Int Int Bool Bool Layer ([Texture] -> Maybe [Color] -> Maybe [Word8] -> a)
- data LayerType
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.
The value of a GPU uniform.
A Group
associated with a program.
(Subset pi oi, Subset pg og) => Layer (Program pg pi) (Group og oi) | |
SubLayer (RenderLayer [Layer]) | |
MultiLayer [Layer] |
data RenderLayer a Source #