Stability | Portability : |
---|---|
Maintainer | Sven Panne <sven.panne@aedion.de> |
Safe Haskell | None |
This module contains functions related to shader uniforms, this corresponds to section 2.20.3 of the OpenGL 3.1 spec (Shader Variables).
- data UniformLocation
- uniformLocation :: Program -> String -> GettableStateVar UniformLocation
- activeUniforms :: Program -> GettableStateVar [(GLint, VariableType, String)]
- class Uniform a where
- uniform :: UniformLocation -> StateVar a
- uniformv :: UniformLocation -> GLsizei -> Ptr a -> IO ()
- class Storable a => UniformComponent a
Uniform variables
activeUniforms :: Program -> GettableStateVar [(GLint, VariableType, String)]Source
uniform :: UniformLocation -> StateVar aSource
uniformv :: UniformLocation -> GLsizei -> Ptr a -> IO ()Source
Uniform TextureUnit | |
UniformComponent a => Uniform (Index1 a) | |
UniformComponent a => Uniform (Color4 a) | |
UniformComponent a => Uniform (Color3 a) | |
UniformComponent a => Uniform (FogCoord1 a) | |
UniformComponent a => Uniform (Normal3 a) | |
UniformComponent a => Uniform (TexCoord4 a) | |
UniformComponent a => Uniform (TexCoord3 a) | |
UniformComponent a => Uniform (TexCoord2 a) | |
UniformComponent a => Uniform (TexCoord1 a) | |
UniformComponent a => Uniform (Vertex4 a) | |
UniformComponent a => Uniform (Vertex3 a) | |
UniformComponent a => Uniform (Vertex2 a) |