<p>
-The following state variables may be queried with glutGet.
+The following state variables may be queried with "<tt>glutGet</tt>".
The returned value is an integer.
</p>
<li>GLUT_INIT_STATE - ?
<li>GLUT_VERSION - Return value will be X*10000+Y*100+Z where X is the
major version, Y is the minor version and Z is the patch level.
- This query is only supported in FreeGLUT (version 1.3 or later).
+ This query is only supported in freeglut (version 1.3 or later).
</ul>
<h2> 13.7 glutGetProcAddress</h2>
<p><tt>glutGetProcAddress</tt> returns
-a pointer to a named GL or FreeGLUT function. </p>
+a pointer to a named GL or <i>freeglut</i> function. </p>
<p><b>Usage</b></p>
<p><tt>void *glutGetProcAddress ( const
char *procName ) ;</tt></p>
that supports the extension. By using a function pointer returned from glutGetProcAddress(),
the application will avoid this hard dependency and be more portable and interoperate
better with various implementations of OpenGL. </p>
- <p> Both OpenGL functions and FreeGLUT
+ <p> Both OpenGL functions and freeglut
functions can be queried with this function. </p>
- <p><b>NOTE</b>: this function is not supported
-in GLUT. </p>
+ <p><b>Changes From GLUT</b> </p>
+
+ <p>GLUT does not include this function.
+ </p>
+
<h1> 14.0 <a name="FontRendering"></a>
Font Rendering Functions</h1>
<i>Freeglut</i> supports two types of font rendering: bitmap fonts,
<p>
-FreeGLUT users should normally just include GL/glut.h in their programs.
-Programs which need FreeGLUT-specific functions should also include
-GL/freeglut_ext.h as follows:
+Application programmers who are porting their GLUT programs to <i>freeglut</i> may continue
+to include <tt><GL/glut.h></tt> in their programs.
+Programs which use the <i>freeglut</i>-specific extensions to GLUT should include
+<tt><GL/freeglut.h></tt>. One possible arrangement is as follows:
</p>
<pre>
-#include <GL/glut.h>
#ifdef FREEGLUT
#include <GL/freeglut_ext.h>
+#else
+#include <GL/glut.h>
#endif
</pre>
<p>
-Compile-time FreeGLUT version testing can be done as follows:
+Compile-time freeglut version testing can be done as follows:
</p>
<pre>
#ifdef FREEGLUT_VERSION_1_4
- code specific to FreeGLUT 1.4 or later here
+ code specific to freeglut 1.4 or later here
#endif
</pre>
</p>
<p>
-The FreeGLUT version can be queried at runtime by calling
+The freeglut version can be queried at runtime by calling
glutGet(GLUT_VERSION).
The result will be X*10000+Y*100+Z where X is the major version, Y is the
minor version and Z is the patch level.
<pre>
if (glutGet(GLUT_VERSION) < 10300) {
- printf("Sorry, you need FreeGLUT version 1.3.0 or later to run this program.\n");
+ printf("Sorry, you need freeglut version 1.3.0 or later to run this program.\n");
exit(1);
}
</pre>