OpenGL-3.0.3.0: A binding for the OpenGL graphics system

Copyright | (c) Sven Panne 2006-2019
License | BSD3
Maintainer | Sven Panne <svenpanne@gmail.com>
Stability | stable
Portability | portable
Safe Haskell | None
Language | Haskell2010

Graphics.Rendering.OpenGL.GL.Shaders.Attribs

Description

This module contains functions related to shader attributes, corresponding to section 2.20.3 of the OpenGL 3.1 spec (Shader Variables).

# Documentation

attribLocation :: Program -> String -> StateVar AttribLocation Source #

data VariableType Source #

Constructors

Float' |
FloatVec2 |
FloatVec3 |
FloatVec4 |
Int' |
IntVec2 |
IntVec3 |
IntVec4 |
UnsignedInt' |
UnsignedIntVec2 |
UnsignedIntVec3 |
UnsignedIntVec4 |
Bool |
BoolVec2 |
BoolVec3 |
BoolVec4 |
FloatMat2 |
FloatMat3 |
FloatMat4 |
FloatMat2x3 |
FloatMat2x4 |
FloatMat3x2 |
FloatMat3x4 |
FloatMat4x2 |
FloatMat4x3 |
Sampler1D |
Sampler2D |
Sampler3D |
SamplerCube |
Sampler1DShadow |
Sampler2DShadow |
Sampler1DArray |
Sampler2DArray |
Sampler1DArrayShadow |
Sampler2DArrayShadow |
SamplerCubeShadow |
Sampler2DRect |
Sampler2DRectShadow |
IntSampler1D |
IntSampler2D |
IntSampler3D |
IntSamplerCube |
IntSampler1DArray |
IntSampler2DArray |
UnsignedIntSampler1D |
UnsignedIntSampler2D |
UnsignedIntSampler3D |
UnsignedIntSamplerCube |
UnsignedIntSampler1DArray |
UnsignedIntSampler2DArray |

#### Instances

Instances details

Show VariableType Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Shaders.Variables Methods showsPrec :: Int -> VariableType -> ShowS Source # show :: VariableType -> String Source # showList :: [VariableType] -> ShowS Source #
Eq VariableType Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Shaders.Variables Methods (==) :: VariableType -> VariableType -> Bool Source # (/=) :: VariableType -> VariableType -> Bool Source #
Ord VariableType Source # |

Instance details

Defined in Graphics.Rendering.OpenGL.GL.Shaders.Variables

Methods

compare :: VariableType -> VariableType -> Ordering Source #

(<) :: VariableType -> VariableType -> Bool Source #

(<=) :: VariableType -> VariableType -> Bool Source #

(>) :: VariableType -> VariableType -> Bool Source #

(>=) :: VariableType -> VariableType -> Bool Source #

max :: VariableType -> VariableType -> VariableType Source #

min :: VariableType -> VariableType -> VariableType Source #

activeAttribs :: Program -> GettableStateVar [(GLint, VariableType, String)] Source #