/usr/share/doc/libghc-opengl-doc/html/Graphics-Rendering-OpenGL-GL-VertexSpec.html is in libghc-opengl-doc 2.2.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.Rendering.OpenGL.GL.VertexSpec</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-Rendering-OpenGL-GL-VertexSpec.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">OpenGL-2.2.3.1: A binding for the OpenGL graphics system</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>stable</td></tr><tr><th>Maintainer</th><td>sven.panne@aedion.de</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Graphics.Rendering.OpenGL.GL.VertexSpec</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Vertex Coordinates
</a></li><li><a href="#g:2">Auxiliary Vertex Attributes
</a><ul><li><a href="#g:3">Texture Coordinates
</a></li><li><a href="#g:4">Normal
</a></li><li><a href="#g:5">Fog Coordinate
</a></li><li><a href="#g:6">Color and Secondary Color
</a></li></ul></li><li><a href="#g:7">Generic Vertex Attributes
</a></li><li><a href="#g:8">Texture Units
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module corresponds to section 2.7 (Vertex Specification) of the
OpenGL 2.1 specs.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">class</span> <a href="#t:Vertex">Vertex</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:vertex">vertex</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexv">vertexv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:VertexComponent">VertexComponent</a> a </li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Vertex1">Vertex1</a> a = <a href="#v:Vertex1">Vertex1</a> a</li><li class="src short"><span class="keyword">data</span> <a href="#t:Vertex2">Vertex2</a> a = <a href="#v:Vertex2">Vertex2</a> !a !a</li><li class="src short"><span class="keyword">data</span> <a href="#t:Vertex3">Vertex3</a> a = <a href="#v:Vertex3">Vertex3</a> !a !a !a</li><li class="src short"><span class="keyword">data</span> <a href="#t:Vertex4">Vertex4</a> a = <a href="#v:Vertex4">Vertex4</a> !a !a !a !a</li><li class="src short"><a href="#v:currentTextureCoords">currentTextureCoords</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)</li><li class="src short"><span class="keyword">class</span> <a href="#t:TexCoord">TexCoord</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:texCoord">texCoord</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:texCoordv">texCoordv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:multiTexCoord">multiTexCoord</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TextureUnit">TextureUnit</a> -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:multiTexCoordv">multiTexCoordv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TextureUnit">TextureUnit</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:TexCoordComponent">TexCoordComponent</a> a </li><li class="src short"><span class="keyword">newtype</span> <a href="#t:TexCoord1">TexCoord1</a> a = <a href="#v:TexCoord1">TexCoord1</a> a</li><li class="src short"><span class="keyword">data</span> <a href="#t:TexCoord2">TexCoord2</a> a = <a href="#v:TexCoord2">TexCoord2</a> !a !a</li><li class="src short"><span class="keyword">data</span> <a href="#t:TexCoord3">TexCoord3</a> a = <a href="#v:TexCoord3">TexCoord3</a> !a !a !a</li><li class="src short"><span class="keyword">data</span> <a href="#t:TexCoord4">TexCoord4</a> a = <a href="#v:TexCoord4">TexCoord4</a> !a !a !a !a</li><li class="src short"><a href="#v:currentNormal">currentNormal</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)</li><li class="src short"><span class="keyword">class</span> <a href="#t:Normal">Normal</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:normal">normal</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:normalv">normalv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:NormalComponent">NormalComponent</a> a </li><li class="src short"><span class="keyword">data</span> <a href="#t:Normal3">Normal3</a> a = <a href="#v:Normal3">Normal3</a> !a !a !a</li><li class="src short"><a href="#v:currentFogCoord">currentFogCoord</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)</li><li class="src short"><span class="keyword">class</span> <a href="#t:FogCoord">FogCoord</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:fogCoord">fogCoord</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:fogCoordv">fogCoordv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:FogCoordComponent">FogCoordComponent</a> a </li><li class="src short"><span class="keyword">newtype</span> <a href="#t:FogCoord1">FogCoord1</a> a = <a href="#v:FogCoord1">FogCoord1</a> a</li><li class="src short"><a href="#v:rgbaMode">rgbaMode</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:GettableStateVar">GettableStateVar</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:currentColor">currentColor</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)</li><li class="src short"><span class="keyword">class</span> <a href="#t:Color">Color</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:color">color</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:colorv">colorv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></li><li class="src short"><a href="#v:currentSecondaryColor">currentSecondaryColor</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)</li><li class="src short"><span class="keyword">class</span> <a href="#t:SecondaryColor">SecondaryColor</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:secondaryColor">secondaryColor</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:secondaryColorv">secondaryColorv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:ColorComponent">ColorComponent</a> a </li><li class="src short"><span class="keyword">data</span> <a href="#t:Color3">Color3</a> a = <a href="#v:Color3">Color3</a> !a !a !a</li><li class="src short"><span class="keyword">data</span> <a href="#t:Color4">Color4</a> a = <a href="#v:Color4">Color4</a> !a !a !a !a</li><li class="src short"><a href="#v:currentIndex">currentIndex</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLint">GLint</a>)</li><li class="src short"><span class="keyword">class</span> <a href="#t:Index">Index</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:index">index</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:indexv">indexv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:IndexComponent">IndexComponent</a> a </li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Index1">Index1</a> a = <a href="#v:Index1">Index1</a> a</li><li class="src short"><span class="keyword">data</span> <a href="#t:IntegerHandling">IntegerHandling</a> <ul class="subs"><li>= <a href="#v:ToFloat">ToFloat</a> </li><li>| <a href="#v:ToNormalizedFloat">ToNormalizedFloat</a> </li><li>| <a href="#v:KeepIntegral">KeepIntegral</a> </li></ul></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:AttribLocation">AttribLocation</a> = <a href="#v:AttribLocation">AttribLocation</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLuint">GLuint</a></li><li class="src short"><a href="#v:currentVertexAttrib">currentVertexAttrib</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)</li><li class="src short"><a href="#v:currentVertexAttribI">currentVertexAttribI</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLint">GLint</a>)</li><li class="src short"><a href="#v:currentVertexAttribIu">currentVertexAttribIu</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLuint">GLuint</a>)</li><li class="src short"><span class="keyword">class</span> <a href="#t:VertexAttrib">VertexAttrib</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:vertexAttrib">vertexAttrib</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IntegerHandling">IntegerHandling</a> -> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttribv">vertexAttribv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IntegerHandling">IntegerHandling</a> -> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></li><li class="src short"><span class="keyword">class</span> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Num">Num</a> a) => <a href="#t:VertexAttribComponent">VertexAttribComponent</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:vertexAttrib1">vertexAttrib1</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib2">vertexAttrib2</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib3">vertexAttrib3</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib4">vertexAttrib4</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib1N">vertexAttrib1N</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib2N">vertexAttrib2N</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib3N">vertexAttrib3N</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib4N">vertexAttrib4N</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib1I">vertexAttrib1I</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib2I">vertexAttrib2I</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib3I">vertexAttrib3I</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib4I">vertexAttrib4I</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib1v">vertexAttrib1v</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib2v">vertexAttrib2v</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib3v">vertexAttrib3v</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib4v">vertexAttrib4v</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib1Nv">vertexAttrib1Nv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib2Nv">vertexAttrib2Nv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib3Nv">vertexAttrib3Nv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib4Nv">vertexAttrib4Nv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib1Iv">vertexAttrib1Iv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib2Iv">vertexAttrib2Iv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib3Iv">vertexAttrib3Iv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:vertexAttrib4Iv">vertexAttrib4Iv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:TextureUnit">TextureUnit</a> = <a href="#v:TextureUnit">TextureUnit</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLuint">GLuint</a></li><li class="src short"><a href="#v:maxTextureUnit">maxTextureUnit</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:GettableStateVar">GettableStateVar</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TextureUnit">TextureUnit</a></li></ul></div><div id="interface"><h1 id="g:1">Vertex Coordinates
</h1><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:Vertex" class="def">Vertex</a> a <span class="keyword">where</span><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#Vertex" class="link">Source</a></p><div class="doc"><p>Specify the (<em>x</em>, <em>y</em>, <em>z</em>, <em>w</em>) coordinates of a four-dimensional vertex.
This must only be done during
<code><a href="Graphics-Rendering-OpenGL-GL-BeginEnd.html#v:renderPrimitive">renderPrimitive</a></code>, otherwise the
behaviour is unspecified. The current values of the auxiliary vertex
attributes are associated with the vertex.
</p><p>Note that there is no such thing as a "current vertex" which could be
retrieved.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:vertex" class="def">vertex</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertex" class="link">Source</a></p><p class="src"><a name="v:vertexv" class="def">vertexv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexv" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:Vertex" class="caption collapser" onclick="toggleSection('i:Vertex')">Instances</p><div id="section.i:Vertex" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexComponent">VertexComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex">Vertex</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexComponent">VertexComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex">Vertex</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexComponent">VertexComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex">Vertex</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:VertexComponent" class="def">VertexComponent</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#VertexComponent" class="link">Source</a></p><div class="doc"><p>The class of all types which can be used as a vertex coordinate.
</p></div><div class="subs instances"><p id="control.i:VertexComponent" class="caption collapser" onclick="toggleSection('i:VertexComponent')">Instances</p><div id="section.i:VertexComponent" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexComponent">VertexComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexComponent">VertexComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexComponent">VertexComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexComponent">VertexComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Vertex1" class="def">Vertex1</a> a <a href="src/Graphics-Rendering-OpenGL-GL-Tensor.html#Vertex1" class="link">Source</a></p><div class="doc"><p>A vertex with <em>y</em>=0, <em>z</em>=0 and <em>w</em>=1.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Vertex1" class="def">Vertex1</a> a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Vertex1" class="caption collapser" onclick="toggleSection('i:Vertex1')">Instances</p><div id="section.i:Vertex1" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Vertex2" class="def">Vertex2</a> a <a href="src/Graphics-Rendering-OpenGL-GL-Tensor.html#Vertex2" class="link">Source</a></p><div class="doc"><p>A vertex with <em>z</em>=0 and <em>w</em>=1.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Vertex2" class="def">Vertex2</a> !a !a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Vertex2" class="caption collapser" onclick="toggleSection('i:Vertex2')">Instances</p><div id="section.i:Vertex2" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GLU-NURBS.html#t:TrimmingPoint">TrimmingPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexComponent">VertexComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex">Vertex</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-RasterPos.html#t:WindowPosComponent">WindowPosComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-RasterPos.html#t:WindowPos">WindowPos</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-RasterPos.html#t:RasterPosComponent">RasterPosComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-RasterPos.html#t:RasterPos">RasterPos</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Vertex3" class="def">Vertex3</a> a <a href="src/Graphics-Rendering-OpenGL-GL-Tensor.html#Vertex3" class="link">Source</a></p><div class="doc"><p>A vertex with <em>w</em>=1.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Vertex3" class="def">Vertex3</a> !a !a !a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Vertex3" class="caption collapser" onclick="toggleSection('i:Vertex3')">Instances</p><div id="section.i:Vertex3" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Evaluators.html#t:ControlPoint">ControlPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GLU-NURBS.html#t:TrimmingPoint">TrimmingPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexComponent">VertexComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex">Vertex</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-RasterPos.html#t:WindowPosComponent">WindowPosComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-RasterPos.html#t:WindowPos">WindowPos</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-RasterPos.html#t:RasterPosComponent">RasterPosComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-RasterPos.html#t:RasterPos">RasterPos</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Vertex4" class="def">Vertex4</a> a <a href="src/Graphics-Rendering-OpenGL-GL-Tensor.html#Vertex4" class="link">Source</a></p><div class="doc"><p>A fully-fledged four-dimensional vertex.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Vertex4" class="def">Vertex4</a> !a !a !a !a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Vertex4" class="caption collapser" onclick="toggleSection('i:Vertex4')">Instances</p><div id="section.i:Vertex4" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Evaluators.html#t:ControlPoint">ControlPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexComponent">VertexComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex">Vertex</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-RasterPos.html#t:RasterPosComponent">RasterPosComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-RasterPos.html#t:RasterPos">RasterPos</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:2">Auxiliary Vertex Attributes
</h1><div class="doc"><p>Apart from its coordinates in four-dimensional space, every vertex has
associated <em>auxiliary attributes</em>: Its texture coordinates, a normal, a
fog coordinate, and a color plus a secondary color. For every attribute, the
OpenGL state contains its current value, which can be changed at any time.
</p><p>Every attribute has a "natural" format via which it can be manipulated
directly as part of the OpenGL state, e.g. the current texture coordinates
are internally handled as <code><code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a></code> <code><a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a></code></code>. Different formats are
converted to this format, e.g. the <em>s</em>, <em>r</em>, and <em>t</em> coordinates of a
<code><code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a></code> <code><a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLint">GLint</a></code></code> are converted to floating point values and a <em>q</em>
coordinate of 1.0 is implicitly assumed.
</p><p>Consequently, the vast majority of classes, functions, and data types in this
module are for convenience only and offer no additional functionality.
</p></div><h2 id="g:3">Texture Coordinates
</h2><div class="top"><p class="src"><a name="v:currentTextureCoords" class="def">currentTextureCoords</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)<a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#currentTextureCoords" class="link">Source</a></p><div class="doc"><p>The current texture coordinates (<em>s</em>, <em>t</em>, <em>r</em>, <em>q</em>) for the current
texture unit (see <code><a href="Graphics-Rendering-OpenGL-GL-CoordTrans.html#v:activeTexture">activeTexture</a></code>).
The initial value is (0,0,0,1) for all texture units.
</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:TexCoord" class="def">TexCoord</a> a <span class="keyword">where</span><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#TexCoord" class="link">Source</a></p><div class="doc"><p>Change the current texture coordinates of the current or given texture
unit.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:texCoord" class="def">texCoord</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#texCoord" class="link">Source</a></p><p class="src"><a name="v:texCoordv" class="def">texCoordv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#texCoordv" class="link">Source</a></p><p class="src"><a name="v:multiTexCoord" class="def">multiTexCoord</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TextureUnit">TextureUnit</a> -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#multiTexCoord" class="link">Source</a></p><p class="src"><a name="v:multiTexCoordv" class="def">multiTexCoordv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TextureUnit">TextureUnit</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#multiTexCoordv" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:TexCoord" class="caption collapser" onclick="toggleSection('i:TexCoord')">Instances</p><div id="section.i:TexCoord" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord">TexCoord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord">TexCoord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord">TexCoord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord">TexCoord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:TexCoordComponent" class="def">TexCoordComponent</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#TexCoordComponent" class="link">Source</a></p><div class="doc"><p>The class of all types which can be used as a texture coordinate.
</p></div><div class="subs instances"><p id="control.i:TexCoordComponent" class="caption collapser" onclick="toggleSection('i:TexCoordComponent')">Instances</p><div id="section.i:TexCoordComponent" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:TexCoord1" class="def">TexCoord1</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexAttributes.html#TexCoord1" class="link">Source</a></p><div class="doc"><p>Texture coordinates with <em>t</em>=0, <em>r</em>=0, and <em>q</em>=1.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:TexCoord1" class="def">TexCoord1</a> a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:TexCoord1" class="caption collapser" onclick="toggleSection('i:TexCoord1')">Instances</p><div id="section.i:TexCoord1" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Evaluators.html#t:ControlPoint">ControlPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord">TexCoord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TexCoord2" class="def">TexCoord2</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexAttributes.html#TexCoord2" class="link">Source</a></p><div class="doc"><p>Texture coordinates with <em>r</em>=0 and <em>q</em>=1.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:TexCoord2" class="def">TexCoord2</a> !a !a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:TexCoord2" class="caption collapser" onclick="toggleSection('i:TexCoord2')">Instances</p><div id="section.i:TexCoord2" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Evaluators.html#t:ControlPoint">ControlPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord">TexCoord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TexCoord3" class="def">TexCoord3</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexAttributes.html#TexCoord3" class="link">Source</a></p><div class="doc"><p>Texture coordinates with <em>q</em>=1.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:TexCoord3" class="def">TexCoord3</a> !a !a !a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:TexCoord3" class="caption collapser" onclick="toggleSection('i:TexCoord3')">Instances</p><div id="section.i:TexCoord3" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Evaluators.html#t:ControlPoint">ControlPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord">TexCoord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TexCoord4" class="def">TexCoord4</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexAttributes.html#TexCoord4" class="link">Source</a></p><div class="doc"><p>Fully-fledged four-dimensional texture coordinates.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:TexCoord4" class="def">TexCoord4</a> !a !a !a !a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:TexCoord4" class="caption collapser" onclick="toggleSection('i:TexCoord4')">Instances</p><div id="section.i:TexCoord4" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Evaluators.html#t:ControlPoint">ControlPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoordComponent">TexCoordComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord">TexCoord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><h2 id="g:4">Normal
</h2><div class="top"><p class="src"><a name="v:currentNormal" class="def">currentNormal</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)<a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#currentNormal" class="link">Source</a></p><div class="doc"><p>The current normal (<em>x</em>, <em>y</em>, <em>z</em>). The initial value is the unit vector
(0, 0, 1).
</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:Normal" class="def">Normal</a> a <span class="keyword">where</span><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#Normal" class="link">Source</a></p><div class="doc"><p>Change the current normal. Integral arguments are converted to
floating-point with a linear mapping that maps the most positive
representable integer value to 1.0, and the most negative representable
integer value to -1.0.
</p><p>Normals specified with <code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#v:normal">normal</a></code> or <code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#v:normalv">normalv</a></code> need not have unit length.
If <code><a href="Graphics-Rendering-OpenGL-GL-CoordTrans.html#v:normalize">normalize</a></code> is enabled, then
normals of any length specified with <code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#v:normal">normal</a></code> or <code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#v:normalv">normalv</a></code> are normalized
after transformation. If
<code><a href="Graphics-Rendering-OpenGL-GL-CoordTrans.html#v:rescaleNormal">rescaleNormal</a></code> is enabled, normals
are scaled by a scaling factor derived from the modelview matrix.
<code><a href="Graphics-Rendering-OpenGL-GL-CoordTrans.html#v:rescaleNormal">rescaleNormal</a></code> requires that the
originally specified normals were of unit length, and that the modelview
matrix contains only uniform scales for proper results. Normalization is
initially disabled.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:normal" class="def">normal</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#normal" class="link">Source</a></p><p class="src"><a name="v:normalv" class="def">normalv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#normalv" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:Normal" class="caption collapser" onclick="toggleSection('i:Normal')">Instances</p><div id="section.i:Normal" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:NormalComponent">NormalComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal">Normal</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:NormalComponent" class="def">NormalComponent</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#NormalComponent" class="link">Source</a></p><div class="doc"><p>The class of all types which can be used as a component of a normal.
</p></div><div class="subs instances"><p id="control.i:NormalComponent" class="caption collapser" onclick="toggleSection('i:NormalComponent')">Instances</p><div id="section.i:NormalComponent" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:NormalComponent">NormalComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:NormalComponent">NormalComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:NormalComponent">NormalComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int8">Int8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:NormalComponent">NormalComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:NormalComponent">NormalComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Normal3" class="def">Normal3</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexAttributes.html#Normal3" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Normal3" class="def">Normal3</a> !a !a !a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Normal3" class="caption collapser" onclick="toggleSection('i:Normal3')">Instances</p><div id="section.i:Normal3" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Evaluators.html#t:ControlPoint">ControlPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:NormalComponent">NormalComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal">Normal</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><h2 id="g:5">Fog Coordinate
</h2><div class="top"><p class="src"><a name="v:currentFogCoord" class="def">currentFogCoord</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)<a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#currentFogCoord" class="link">Source</a></p><div class="doc"><p>The current fog coordinate. The initial value is 0.
</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:FogCoord" class="def">FogCoord</a> a <span class="keyword">where</span><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#FogCoord" class="link">Source</a></p><div class="doc"><p>Change the current fog coordinate.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:fogCoord" class="def">fogCoord</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#fogCoord" class="link">Source</a></p><p class="src"><a name="v:fogCoordv" class="def">fogCoordv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#fogCoordv" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:FogCoord" class="caption collapser" onclick="toggleSection('i:FogCoord')">Instances</p><div id="section.i:FogCoord" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoordComponent">FogCoordComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord">FogCoord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:FogCoordComponent" class="def">FogCoordComponent</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#FogCoordComponent" class="link">Source</a></p><div class="doc"><p>The class of all types which can be used as the fog coordinate.
</p></div><div class="subs instances"><p id="control.i:FogCoordComponent" class="caption collapser" onclick="toggleSection('i:FogCoordComponent')">Instances</p><div id="section.i:FogCoordComponent" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoordComponent">FogCoordComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoordComponent">FogCoordComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:FogCoord1" class="def">FogCoord1</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexAttributes.html#FogCoord1" class="link">Source</a></p><div class="doc"><p>A fog coordinate.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:FogCoord1" class="def">FogCoord1</a> a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:FogCoord1" class="caption collapser" onclick="toggleSection('i:FogCoord1')">Instances</p><div id="section.i:FogCoord1" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoordComponent">FogCoordComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord">FogCoord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><h2 id="g:6">Color and Secondary Color
</h2><div class="top"><p class="src"><a name="v:rgbaMode" class="def">rgbaMode</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:GettableStateVar">GettableStateVar</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#rgbaMode" class="link">Source</a></p><div class="doc"><p>If <code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#v:rgbaMode">rgbaMode</a></code> contains <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#v:True">True</a></code>, the color buffers store RGBA value. If
color indexes are stored, it contains <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#v:False">False</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:currentColor" class="def">currentColor</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)<a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#currentColor" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:Color" class="def">Color</a> a <span class="keyword">where</span><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#Color" class="link">Source</a></p><div class="doc"><p>Change the current color.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:color" class="def">color</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#color" class="link">Source</a></p><p class="src"><a name="v:colorv" class="def">colorv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#colorv" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:Color" class="caption collapser" onclick="toggleSection('i:Color')">Instances</p><div id="section.i:Color" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color">Color</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color">Color</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:currentSecondaryColor" class="def">currentSecondaryColor</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)<a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#currentSecondaryColor" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:SecondaryColor" class="def">SecondaryColor</a> a <span class="keyword">where</span><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#SecondaryColor" class="link">Source</a></p><div class="doc"><p>Change the current secondary color.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:secondaryColor" class="def">secondaryColor</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#secondaryColor" class="link">Source</a></p><p class="src"><a name="v:secondaryColorv" class="def">secondaryColorv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#secondaryColorv" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:SecondaryColor" class="caption collapser" onclick="toggleSection('i:SecondaryColor')">Instances</p><div id="section.i:SecondaryColor" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:SecondaryColor">SecondaryColor</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:ColorComponent" class="def">ColorComponent</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#ColorComponent" class="link">Source</a></p><div class="doc"><p>The class of all types which can be used as a color component.
</p></div><div class="subs instances"><p id="control.i:ColorComponent" class="caption collapser" onclick="toggleSection('i:ColorComponent')">Instances</p><div id="section.i:ColorComponent" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int8">Int8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word32">Word32</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Color3" class="def">Color3</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexAttributes.html#Color3" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Color3" class="def">Color3</a> !a !a !a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Color3" class="caption collapser" onclick="toggleSection('i:Color3')">Instances</p><div id="section.i:Color3" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:SecondaryColor">SecondaryColor</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color">Color</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Color4" class="def">Color4</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexAttributes.html#Color4" class="link">Source</a></p><div class="doc"><p>A fully-fledged RGBA color.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Color4" class="def">Color4</a> !a !a !a !a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Color4" class="caption collapser" onclick="toggleSection('i:Color4')">Instances</p><div id="section.i:Color4" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Evaluators.html#t:ControlPoint">ControlPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:ColorComponent">ColorComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color">Color</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:currentIndex" class="def">currentIndex</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLint">GLint</a>)<a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#currentIndex" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:Index" class="def">Index</a> a <span class="keyword">where</span><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#Index" class="link">Source</a></p><div class="doc"><p>Change the current color index.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:index" class="def">index</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#index" class="link">Source</a></p><p class="src"><a name="v:indexv" class="def">indexv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#indexv" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:Index" class="caption collapser" onclick="toggleSection('i:Index')">Instances</p><div id="section.i:Index" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IndexComponent">IndexComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index">Index</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:IndexComponent" class="def">IndexComponent</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#IndexComponent" class="link">Source</a></p><div class="doc"><p>The class of all types which can be used as a color index.
</p></div><div class="subs instances"><p id="control.i:IndexComponent" class="caption collapser" onclick="toggleSection('i:IndexComponent')">Instances</p><div id="section.i:IndexComponent" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IndexComponent">IndexComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IndexComponent">IndexComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IndexComponent">IndexComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IndexComponent">IndexComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IndexComponent">IndexComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Index1" class="def">Index1</a> a <a href="src/Graphics-Rendering-OpenGL-GL-VertexAttributes.html#Index1" class="link">Source</a></p><div class="doc"><p>A color index.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Index1" class="def">Index1</a> a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Index1" class="caption collapser" onclick="toggleSection('i:Index1')">Instances</p><div id="section.i:Index1" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Foldable.html#t:Foldable">Foldable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Traversable.html#t:Traversable">Traversable</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Evaluators.html#t:ControlPoint">ControlPoint</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Bounded">Bounded</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IndexComponent">IndexComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index">Index</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:UniformComponent">UniformComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-Shaders.html#t:Uniform">Uniform</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:7">Generic Vertex Attributes
</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:IntegerHandling" class="def">IntegerHandling</a> <a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#IntegerHandling" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ToFloat" class="def">ToFloat</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ToNormalizedFloat" class="def">ToNormalizedFloat</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:KeepIntegral" class="def">KeepIntegral</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:IntegerHandling" class="caption collapser" onclick="toggleSection('i:IntegerHandling')">Instances</p><div id="section.i:IntegerHandling" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IntegerHandling">IntegerHandling</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IntegerHandling">IntegerHandling</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IntegerHandling">IntegerHandling</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:AttribLocation" class="def">AttribLocation</a> <a href="src/Graphics-Rendering-OpenGL-GL-QueryUtils.html#AttribLocation" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:AttribLocation" class="def">AttribLocation</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLuint">GLuint</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:AttribLocation" class="caption collapser" onclick="toggleSection('i:AttribLocation')">Instances</p><div id="section.i:AttribLocation" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:currentVertexAttrib" class="def">currentVertexAttrib</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLfloat">GLfloat</a>)<a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#currentVertexAttrib" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:currentVertexAttribI" class="def">currentVertexAttribI</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLint">GLint</a>)<a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#currentVertexAttribI" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:currentVertexAttribIu" class="def">currentVertexAttribIu</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:StateVar">StateVar</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLuint">GLuint</a>)<a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#currentVertexAttribIu" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:VertexAttrib" class="def">VertexAttrib</a> a <span class="keyword">where</span><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#VertexAttrib" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:vertexAttrib" class="def">vertexAttrib</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IntegerHandling">IntegerHandling</a> -> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib" class="link">Source</a></p><p class="src"><a name="v:vertexAttribv" class="def">vertexAttribv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:IntegerHandling">IntegerHandling</a> -> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttribv" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:VertexAttrib" class="caption collapser" onclick="toggleSection('i:VertexAttrib')">Instances</p><div id="section.i:VertexAttrib" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-CoordTrans.html#t:Vector4">Vector4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-CoordTrans.html#t:Vector3">Vector3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-CoordTrans.html#t:Vector2">Vector2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-CoordTrans.html#t:Vector1">Vector1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex4">Vertex4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex3">Vertex3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex1">Vertex1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Index1">Index1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color4">Color4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Color3">Color3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:FogCoord1">FogCoord1</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Normal3">Normal3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord4">TexCoord4</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord3">TexCoord3</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord2">TexCoord2</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> a => <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttrib">VertexAttrib</a> (<a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TexCoord1">TexCoord1</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Num">Num</a> a) => <a name="t:VertexAttribComponent" class="def">VertexAttribComponent</a> a <span class="keyword">where</span><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#VertexAttribComponent" class="link">Source</a></p><div class="doc"><p>The class of all types which can be used as a generic vertex attribute.
NOTE: Do not use the methods of this class directly, they were only exported
by accident and will be hidden in future versions of this package.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:vertexAttrib1" class="def">vertexAttrib1</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib1" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib2" class="def">vertexAttrib2</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib2" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib3" class="def">vertexAttrib3</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib3" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib4" class="def">vertexAttrib4</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib4" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib1N" class="def">vertexAttrib1N</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib1N" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib2N" class="def">vertexAttrib2N</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib2N" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib3N" class="def">vertexAttrib3N</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib3N" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib4N" class="def">vertexAttrib4N</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib4N" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib1I" class="def">vertexAttrib1I</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib1I" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib2I" class="def">vertexAttrib2I</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib2I" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib3I" class="def">vertexAttrib3I</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib3I" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib4I" class="def">vertexAttrib4I</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> a -> a -> a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib4I" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib1v" class="def">vertexAttrib1v</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib1v" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib2v" class="def">vertexAttrib2v</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib2v" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib3v" class="def">vertexAttrib3v</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib3v" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib4v" class="def">vertexAttrib4v</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib4v" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib1Nv" class="def">vertexAttrib1Nv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib1Nv" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib2Nv" class="def">vertexAttrib2Nv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib2Nv" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib3Nv" class="def">vertexAttrib3Nv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib3Nv" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib4Nv" class="def">vertexAttrib4Nv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib4Nv" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib1Iv" class="def">vertexAttrib1Iv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib1Iv" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib2Iv" class="def">vertexAttrib2Iv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib2Iv" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib3Iv" class="def">vertexAttrib3Iv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib3Iv" class="link">Source</a></p><p class="src"><a name="v:vertexAttrib4Iv" class="def">vertexAttrib4Iv</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:AttribLocation">AttribLocation</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#vertexAttrib4Iv" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:VertexAttribComponent" class="caption collapser" onclick="toggleSection('i:VertexAttribComponent')">Instances</p><div id="section.i:VertexAttribComponent" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int8">Int8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:VertexAttribComponent">VertexAttribComponent</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word32">Word32</a></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:8">Texture Units
</h1><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:TextureUnit" class="def">TextureUnit</a> <a href="src/Graphics-Rendering-OpenGL-GL-Texturing-TextureUnit.html#TextureUnit" class="link">Source</a></p><div class="doc"><p>Identifies a texture unit via its number, which must be in the range of
(0 .. <code>maxTextureUnit</code>).
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:TextureUnit" class="def">TextureUnit</a> <a href="Graphics-Rendering-OpenGL-GL-BasicTypes.html#t:GLuint">GLuint</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:TextureUnit" class="caption collapser" onclick="toggleSection('i:TextureUnit')">Instances</p><div id="section.i:TextureUnit" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TextureUnit">TextureUnit</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TextureUnit">TextureUnit</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TextureUnit">TextureUnit</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:maxTextureUnit" class="def">maxTextureUnit</a> :: <a href="Graphics-Rendering-OpenGL-GL-StateVar.html#t:GettableStateVar">GettableStateVar</a> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:TextureUnit">TextureUnit</a><a href="src/Graphics-Rendering-OpenGL-GL-VertexSpec.html#maxTextureUnit" class="link">Source</a></p><div class="doc"><p>An implementation must support at least 2 texture units, but it may
support up to 32 ones. This state variable can be used to query the actual
implementation limit.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>
|