Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data LoadedProgram = LoadedProgram !Program (HashMap String Int) Int
- data Program gs is
- program :: (Subset gs' gs, Subset gs'' gs, Subset os' os) => VertexShader gs' is os -> FragmentShader gs'' os' -> Program gs is
- loadProgram :: GLES => Program g i -> (LoadedProgram -> GL ()) -> GL ()
- castProgram :: Program gs is -> Program gs' is'
- type DefaultUniforms2D = Uniforms
- type DefaultAttributes2D = Attributes
- type DefaultUniforms3D = Uniforms
- type DefaultAttributes3D = Attributes
- defaultProgram3D :: Program DefaultUniforms3D DefaultAttributes3D
- defaultProgram2D :: Program DefaultUniforms2D DefaultAttributes2D
Documentation
data LoadedProgram Source
A vertex shader associated with a compatible fragment shader.
program :: (Subset gs' gs, Subset gs'' gs, Subset os' os) => VertexShader gs' is os -> FragmentShader gs'' os' -> Program gs is Source
Create a Program
from the shaders.
loadProgram :: GLES => Program g i -> (LoadedProgram -> GL ()) -> GL () Source
castProgram :: Program gs is -> Program gs' is' Source
type DefaultUniforms2D = Uniforms Source
The uniforms used in the default 2D program.
type DefaultAttributes2D = Attributes Source
The attributes used in the default 2D program.
type DefaultUniforms3D = Uniforms Source
The uniforms used in the default 3D program.
type DefaultAttributes3D = Attributes Source
The attributes used in the default 3D program.