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)
- 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
- (:=) :: (Typeable g, UniformCPU c g) => (a -> g) -> Draw c -> Global g
- data Layer
- = forall oi pi og pg . (Subset pi oi, Subset pg og) => Layer (Program pg pi) (Group og oi)
- | SubLayer (RenderLayer [Layer])
- | MultiLayer [Layer]
- data RenderLayer a = RenderLayer [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.
A group of Object
s.
The value of a GPU uniform.
(:=) :: (Typeable g, UniformCPU c g) => (a -> g) -> Draw c -> Global g infix 3 |
A Group
associated with a program.
forall oi pi og pg . (Subset pi oi, Subset pg og) => Layer (Program pg pi) (Group og oi) | |
SubLayer (RenderLayer [Layer]) | |
MultiLayer [Layer] |
data RenderLayer a Source