Copyright | (c) Sven Panne 2006-2016 |
---|---|
License | BSD3 |
Maintainer | Sven Panne <svenpanne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Graphics.Rendering.OpenGL.GL.Shaders.Uniform
Contents
Description
This module contains functions related to shader uniforms, this corresponds to section 2.20.3 of the OpenGL 3.1 spec (Shader Variables).
- newtype UniformLocation = UniformLocation GLint
- uniformLocation :: Program -> String -> GettableStateVar UniformLocation
- activeUniforms :: Program -> GettableStateVar [(GLint, VariableType, String)]
- class Uniform a where
- class Storable a => UniformComponent a
Uniform variables
activeUniforms :: Program -> GettableStateVar [(GLint, VariableType, String)] Source #
class Uniform a where Source #
Methods
uniform :: UniformLocation -> StateVar a Source #
uniformv :: UniformLocation -> GLsizei -> Ptr a -> IO () Source #
Instances
class Storable a => UniformComponent a Source #
Minimal complete definition
uniform1, uniform2, uniform3, uniform4, getUniform, uniform1v, uniform2v, uniform3v, uniform4v