Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Draw a = Draw {}
- data DrawState = DrawState {
- program :: Maybe (Program [] [])
- loadedProgram :: Maybe LoadedProgram
- programs :: ResMap (Program [] []) LoadedProgram
- uniforms :: ResMap (LoadedProgram, String) UniformLocation
- gpuMeshes :: ResMap (Geometry []) GPUGeometry
- textureImages :: ResMap TextureImage LoadedTexture
- newtype UniformLocation = UniformLocation UniformLocation
- data Texture
- data TextureImage
- data LoadedTexture = LoadedTexture GLSize GLSize Texture
- data Geometry is = Geometry (AttrList is) [Word16] Int
- data Mesh is where
- data Light
- data Object gs is where
- ObjectEmpty :: Object gs is
- ObjectMesh :: Mesh is -> Object gs is
- ObjectGlobal :: (Typeable g, UniformCPU c g) => g -> Draw c -> Object gs is -> Object gs' is
- ObjectAppend :: Object gs is -> Object gs' is' -> Object gs'' is''
- data Layer
Documentation
DrawState | |
|
data TextureImage Source
A set of attributes and indices.
A static or dinamic geometry.
data Object gs is where Source
An object is a set of geometries associated with some uniforms.
ObjectEmpty :: Object gs is | |
ObjectMesh :: Mesh is -> Object gs is | |
ObjectGlobal :: (Typeable g, UniformCPU c g) => g -> Draw c -> Object gs is -> Object gs' is | |
ObjectAppend :: Object gs is -> Object gs' is' -> Object gs'' is'' |