| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Rendering.Ombra.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)
- blendMode :: Maybe Mode
- stencilMode :: Maybe Mode
- cullFace :: Maybe CullFace
- depthTest :: Bool
- depthMask :: Bool
- colorMask :: (Bool, Bool, Bool, Bool)
- newtype UniformLocation = UniformLocation UniformLocation
- data Texture
- data TextureImage
- data Filter
- data LoadedTexture = LoadedTexture GLSize GLSize Texture
- data Geometry is = Geometry (AttrList is) [Word16] Int
- data Group gs is where
- Empty :: Group gs is
- Object :: Object gs is -> Group gs is
- Global :: Global g -> Group gs is -> Group (g ': gs) is
- Append :: Group gs is -> Group gs' is' -> Group gs'' is''
- Blend :: Maybe Mode -> Group gs is -> Group gs is
- Stencil :: Maybe Mode -> Group gs is -> Group gs is
- Cull :: Maybe CullFace -> Group gs is -> Group gs is
- DepthTest :: Bool -> Group gs is -> Group gs is
- DepthMask :: Bool -> Group gs is -> Group gs is
- ColorMask :: (Bool, Bool, Bool, Bool) -> Group gs is -> Group gs is
- data Object gs is where
- data Global g where
- data Layer
- data Buffer
- data RenderLayer a = RenderLayer Bool [LayerType] Int Int Int Int Int Int Bool Bool Layer ([Texture] -> Maybe [Color] -> Maybe [Word8] -> a)
- data LayerType
- data CullFace
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] Filter Filter GLSize GLSize Int | |
| TextureRaw UInt8Array Filter Filter GLSize GLSize Int | |
| TextureFloat [Float] Filter Filter GLSize GLSize Int |
Instances
data LoadedTexture Source #
Constructors
| LoadedTexture GLSize GLSize Texture |
Instances
| GLES => Eq LoadedTexture Source # | |
A set of attributes and indices.
data Group gs is where Source #
A group of Objects.
Constructors
| Empty :: Group gs is | |
| Object :: Object gs is -> Group gs is | |
| Global :: Global g -> Group gs is -> Group (g ': gs) is | |
| Append :: Group gs is -> Group gs' is' -> Group gs'' is'' | |
| Blend :: Maybe Mode -> Group gs is -> Group gs is | |
| Stencil :: Maybe Mode -> Group gs is -> Group gs is | |
| Cull :: Maybe CullFace -> Group gs is -> Group gs is | |
| DepthTest :: Bool -> Group gs is -> Group gs is | |
| DepthMask :: Bool -> Group gs is -> Group gs is | |
| ColorMask :: (Bool, Bool, Bool, Bool) -> Group gs is -> Group gs is |
The value of a GPU uniform.
A Group associated with a program.
Constructors
| ColorBuffer | |
| DepthBuffer | |
| StencilBuffer |
data RenderLayer a Source #
Constructors
| ColorLayer | |
| DepthLayer | |
| DepthStencilLayer | |
| BufferLayer Int |