OpenGL-3.0.1.0: A binding for the OpenGL graphics system

Copyright(c) Sven Panne 2006-2016
LicenseBSD3
MaintainerSven Panne <svenpanne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

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).

Synopsis

Uniform variables

class Uniform a where Source #

Minimal complete definition

uniform, uniformv

Instances

Uniform GLint Source # 
Uniform GLuint Source # 
Uniform GLfloat Source # 
Uniform GLdouble Source # 
Uniform TextureUnit Source # 
UniformComponent a => Uniform (Index1 a) Source # 
UniformComponent a => Uniform (Color4 a) Source # 
UniformComponent a => Uniform (Color3 a) Source # 
UniformComponent a => Uniform (FogCoord1 a) Source # 
UniformComponent a => Uniform (Normal3 a) Source # 
UniformComponent a => Uniform (TexCoord4 a) Source # 
UniformComponent a => Uniform (TexCoord3 a) Source # 
UniformComponent a => Uniform (TexCoord2 a) Source # 
UniformComponent a => Uniform (TexCoord1 a) Source # 
UniformComponent a => Uniform (Vector4 a) Source # 
UniformComponent a => Uniform (Vector3 a) Source # 
UniformComponent a => Uniform (Vector2 a) Source # 
UniformComponent a => Uniform (Vector1 a) Source # 
UniformComponent a => Uniform (Vertex4 a) Source # 
UniformComponent a => Uniform (Vertex3 a) Source # 
UniformComponent a => Uniform (Vertex2 a) Source # 
UniformComponent a => Uniform (Vertex1 a) Source # 
MatrixComponent a => Uniform (GLmatrix a) Source #

Note: uniformv expects all matrices to be in ColumnMajor form.

class Storable a => UniformComponent a Source #

Minimal complete definition

uniform1, uniform2, uniform3, uniform4, getUniform, uniform1v, uniform2v, uniform3v, uniform4v

Instances

UniformComponent GLint Source # 
UniformComponent GLuint Source # 
UniformComponent GLfloat Source # 
UniformComponent GLdouble Source #