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
- textureLayers :: [Texture]
- 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 = forall oi pi og pg . (Subset oi pi, Subset og pg) => Layer (Program pg pi) (Object og oi)
Documentation
DrawState | |
|
data TextureImage Source
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'' |