| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
FWGL.Graphics.Types
- 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.
Constructors
| DrawState | |
Fields
| |
newtype UniformLocation Source
Constructors
| UniformLocation UniformLocation |
A texture.
Constructors
| TextureImage TextureImage | |
| TextureLoaded LoadedTexture |
data TextureImage Source
Constructors
| TexturePixels [Color] GLSize GLSize Int | |
| TextureURL String Int |
Instances
A set of attributes and indices.
A group of Objects.
The value of a GPU uniform.
Constructors
| (:=) :: (Typeable g, UniformCPU c g) => (a -> g) -> Draw c -> Global g infix 3 |
A Group associated with a program.
Constructors
| 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