From 197163df226c7ea86693a71c0ea15f4f4add81d1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 19 Jun 2003 15:35:51 +0000 Subject: [PATCH] restore text lost from previous check-in git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@83 7f0cb862-5218-0410-a997-914c9d46530a --- doc/freeglut_user_interface.html | 135 ++++++++++++++++++++++++++++++++++---- 1 file changed, 122 insertions(+), 13 deletions(-) diff --git a/doc/freeglut_user_interface.html b/doc/freeglut_user_interface.html index 6a63382..df666b6 100644 --- a/doc/freeglut_user_interface.html +++ b/doc/freeglut_user_interface.html @@ -1063,6 +1063,67 @@ is not implemented in freeglut.

13.2  glutGet

+ +

+The following state variables may be queried with glutGet. +The returned value is an integer. +

+ +

+These queries are with respect to the current window: +

+ + + +

+These queries do not depend on the current window. +

+ + + +

13.3  glutDeviceGet

13.4  glutGetModifiers

@@ -1803,19 +1864,67 @@ goes in the upper left-hand corner of the freeglut windows

21.0  Implementation Notes

-

22.0  - GLUT State

- -

23.0  - "freeglut.h" Header File

- -

24.0  - References

- -

25.0  - Index

-   -

 
+

22.0  +GLUT State

+ +

23.0  +"freeglut.h" Header File

+ + +

+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: +

+ +
+#include <GL/glut.h>
+#ifdef FREEGLUT
+#include <GL/freeglut_ext.h>
+#endif
+
+ +

+Compile-time FreeGLUT version testing can be done as follows: +

+ +
+#ifdef FREEGLUT_VERSION_1_4
+  code specific to FreeGLUT 1.4 or later here
+#endif
+
+ +

+In future releases, FREEGLUT_VERSION_1_5, FREEGLUT_VERSION_1_6, etc will +be defined. This scheme mimics OpenGL conventions. +

+ +

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

+

+This may be used as follows: +

+ +
+if (glutGet(GLUT_VERSION) < 10300) {
+    printf("Sorry, you need FreeGLUT version 1.3.0 or later to run this program.\n");
+    exit(1);
+}
+
+ + + +

24.0  +References

+ +

25.0  +Index

+  +

 
 
 
 
-- 1.7.10.4