Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > c00aac9511e40e4946e24ea6485133f4 > files > 138

ocaml-glmlite-devel-0.03.35-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="_style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Genimg_loader.html">
<link rel="next" href="FunGlut.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="GL" rel="Chapter" href="GL.html">
<link title="Glu" rel="Chapter" href="Glu.html">
<link title="Glut" rel="Chapter" href="Glut.html">
<link title="VertArray" rel="Chapter" href="VertArray.html">
<link title="GLE" rel="Chapter" href="GLE.html">
<link title="Ftgl" rel="Chapter" href="Ftgl.html">
<link title="Jpeg_loader" rel="Chapter" href="Jpeg_loader.html">
<link title="Png_loader" rel="Chapter" href="Png_loader.html">
<link title="Svg_loader" rel="Chapter" href="Svg_loader.html">
<link title="Genimg_loader" rel="Chapter" href="Genimg_loader.html">
<link title="FunGL" rel="Chapter" href="FunGL.html">
<link title="FunGlut" rel="Chapter" href="FunGlut.html"><title>FunGL</title>
</head>
<body>
<div class="navbar"><a href="Genimg_loader.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="FunGlut.html">Next</a>
</div>
<center><h1>Module <a href="type_FunGL.html">FunGL</a></h1></center>
<br>
<pre><span class="keyword">module</span> FunGL: <code class="code"><span class="keyword">sig</span></code> <a href="FunGL.html">..</a> <code class="code"><span class="keyword">end</span></code></pre>An <i>experimental</i> attempt at a functional interface to OpenGL.<br>
<hr width="100%">
<br>
This module trys to be a functional wrapper around OpenGL,
    so you don't have to think about the side effects and restoring
    the previous gl state when using these functions.
    You can set parameters for a local effect.<br>
<pre><span class="keyword">type</span> <a name="TYPEvertex2"></a><code class="type"></code>vertex2 = <code class="type">float * float</code> </pre>
<div class="info">
(x,y)<br>
</div>

<pre><span class="keyword">type</span> <a name="TYPEvertex3"></a><code class="type"></code>vertex3 = <code class="type">float * float * float</code> </pre>
<div class="info">
(x,y,z)<br>
</div>

<pre><span class="keyword">type</span> <a name="TYPEvertex4"></a><code class="type"></code>vertex4 = <code class="type">float * float * float * float</code> </pre>
<div class="info">
(x,y,z,w)<br>
</div>

<pre><span class="keyword">type</span> <a name="TYPEvector"></a><code class="type"></code>vector = <code class="type">float * float * float</code> </pre>

<pre><span class="keyword">type</span> <a name="TYPErgb"></a><code class="type"></code>rgb = <code class="type">float * float * float</code> </pre>

<pre><span class="keyword">type</span> <a name="TYPErgba"></a><code class="type"></code>rgba = <code class="type">float * float * float * float</code> </pre>

<pre><span class="keyword">type</span> <a name="TYPEuv"></a><code class="type"></code>uv = <code class="type">float * float</code> </pre>

<pre><span class="keyword">type</span> <a name="TYPEmatrix4x4"></a><code class="type"></code>matrix4x4 = <code class="type">float array</code> </pre>

<br><code><span class="keyword">type</span> <a name="TYPEqualified_vertices"></a><code class="type"></code>qualified_vertices = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Vertices2</span> <span class="keyword">of</span> <code class="type"><a href="FunGL.html#TYPEvertex2">vertex2</a> list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Vertices3</span> <span class="keyword">of</span> <code class="type"><a href="FunGL.html#TYPEvertex3">vertex3</a> list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Vertices4</span> <span class="keyword">of</span> <code class="type"><a href="FunGL.html#TYPEvertex4">vertex4</a> list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Normal_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Normal_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Normal_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">RGB_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">RGB_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">RGB_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">RGBA_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">RGBA_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">RGBA_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Normal_RGB_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Normal_RGB_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Normal_RGB_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Normal_RGBA_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Normal_RGBA_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Normal_RGBA_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Normal_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Normal_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Normal_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_RGB_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_RGB_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_RGB_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_RGBA_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_RGBA_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_RGBA_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Normal_RGB_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Normal_RGB_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Normal_RGB_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgb">rgb</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Normal_RGBA_Vertices2</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex2">vertex2</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Normal_RGBA_Vertices3</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex3">vertex3</a>) list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">UV_Normal_RGBA_Vertices4</span> <span class="keyword">of</span> <code class="type">(<a href="FunGL.html#TYPEuv">uv</a> * <a href="FunGL.html#TYPEvector">vector</a> * <a href="FunGL.html#TYPErgba">rgba</a> * <a href="FunGL.html#TYPEvertex4">vertex4</a>) list</code></code></td>

</tr></table>


<pre><span class="keyword">val</span> <a name="VALrender_primitive"></a>render_primitive : <code class="type"><a href="GL.html#TYPEprimitive">GL.primitive</a> -> <a href="FunGL.html#TYPEqualified_vertices">qualified_vertices</a> -> unit</code></pre><div class="info">
render the given list of qualified vertices as the required primitive<br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_translated"></a>draw_translated : <code class="type"><a href="FunGL.html#TYPEvector">vector</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglTranslate"><code class="code"><span class="constructor">GL</span>.glTranslate</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_rotated"></a>draw_rotated : <code class="type">float -> <a href="FunGL.html#TYPEvector">vector</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglRotate"><code class="code"><span class="constructor">GL</span>.glRotate</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_scaled"></a>draw_scaled : <code class="type"><a href="FunGL.html#TYPEvector">vector</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglScale"><code class="code"><span class="constructor">GL</span>.glScale</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_as_identity"></a>draw_as_identity : <code class="type">(unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglLoadIdentity"><code class="code"><span class="constructor">GL</span>.glLoadIdentity</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_matrix"></a>draw_with_matrix : <code class="type"><a href="FunGL.html#TYPEmatrix4x4">matrix4x4</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglMultMatrix"><code class="code"><span class="constructor">GL</span>.glMultMatrix</code></a>/Flat<br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_rgb"></a>draw_with_rgb : <code class="type"><a href="FunGL.html#TYPErgb">rgb</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglColor3"><code class="code"><span class="constructor">GL</span>.glColor3</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_rgba"></a>draw_with_rgba : <code class="type"><a href="FunGL.html#TYPErgba">rgba</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglColor4"><code class="code"><span class="constructor">GL</span>.glColor4</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_material"></a>draw_with_material : <code class="type">face:<a href="GL.html#TYPEface_mode">GL.face_mode</a> -> mode:<a href="GL.Material.html#TYPEmaterial_mode">GL.Material.material_mode</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglMaterial"><code class="code"><span class="constructor">GL</span>.glMaterial</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_lightModel"></a>draw_with_lightModel : <code class="type">light_model:<a href="GL.html#TYPElight_model">GL.light_model</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglLightModel"><code class="code"><span class="constructor">GL</span>.glLightModel</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_shadeModel"></a>draw_with_shadeModel : <code class="type">shade_mode:<a href="GL.html#TYPEshade_mode">GL.shade_mode</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglShadeModel"><code class="code"><span class="constructor">GL</span>.glShadeModel</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_frontFace"></a>draw_with_frontFace : <code class="type">orientation:<a href="GL.html#TYPEorientation">GL.orientation</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglFrontFace"><code class="code"><span class="constructor">GL</span>.glFrontFace</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_enabled"></a>draw_enabled : <code class="type">cap:<a href="GL.html#TYPEgl_capability">GL.gl_capability</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglEnable"><code class="code"><span class="constructor">GL</span>.glEnable</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_disabled"></a>draw_disabled : <code class="type">cap:<a href="GL.html#TYPEgl_capability">GL.gl_capability</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglDisable"><code class="code"><span class="constructor">GL</span>.glDisable</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_viewport"></a>draw_with_viewport : <code class="type">viewport:int * int * int * int -> (unit -> unit) -> unit</code></pre><div class="info">
use this function instead of <a href="GL.html#VALglViewport"><code class="code"><span class="constructor">GL</span>.glViewport</code></a> when you use a local viewport<br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_polygonMode"></a>draw_with_polygonMode : <code class="type">face:<a href="GL.html#TYPEface_mode">GL.face_mode</a> -> mode:<a href="GL.html#TYPEpolygon_mode">GL.polygon_mode</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglPolygonMode"><code class="code"><span class="constructor">GL</span>.glPolygonMode</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdo_with_matrixMode"></a>do_with_matrixMode : <code class="type">mode:<a href="GL.html#TYPEmatrix_mode">GL.matrix_mode</a> -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglMatrixMode"><code class="code"><span class="constructor">GL</span>.glMatrixMode</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_lineWidth"></a>draw_with_lineWidth : <code class="type">width:float -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglLineWidth"><code class="code"><span class="constructor">GL</span>.glLineWidth</code></a><br>
</div>
<pre><span class="keyword">val</span> <a name="VALdraw_with_pointSize"></a>draw_with_pointSize : <code class="type">size:float -> (unit -> unit) -> unit</code></pre><div class="info">
use this function as replacement of <a href="GL.html#VALglPointSize"><code class="code"><span class="constructor">GL</span>.glPointSize</code></a><br>
</div>
</body></html>