From 85c2e38825f910d63051a92b609293bbace19fd0 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 1 Feb 2007 21:11:20 +0000 Subject: Update documentation and move glutDeviceGet() into code so we can return the correct value for GLUT_NUM_MOUSE_BUTTONS. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/glut.html | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) (limited to 'documentation') diff --git a/documentation/glut.html b/documentation/glut.html index 2acc4cf83..4358dac8a 100644 --- a/documentation/glut.html +++ b/documentation/glut.html @@ -4,30 +4,14 @@

D - GLUT Compatibility

- This appendix describes the GLUT compatibility header file supplied -with FLTK. +

This appendix describes the GLUT compatibility header file supplied with FLTK. FLTK's GLUT compatibility is based on the original GLUT 3.7 and the follow-on FreeGLUT 2.4.0 libraries.

Using the GLUT Compatibility Header File

- You should be able to compile existing GLUT source code by including -<FL/glut.H> instead of <GL/glut.h>. This can be done by -editing the source, by changing the -I switches to the -compiler, or by providing a symbolic link from GL/glut.h to -FL/glut.H. -

All files calling GLUT procedures must be compiled with C++. - You may have to alter them slightly to get them to compile without -warnings, and you may have to rename them to get make to use the C++ -compiler.

-

You must link with the FLTK library. If you call any GLUT drawing -functions that FLTK does not emulate (glutExtensionsSupported() -, glutWire*(), glutSolid*(), and glutStroke*() -), you will also have to link with the GLUT library (after the -FLTK library!)

-

Most of FL/glut.H is inline functions. You should take a -look at it (and maybe at test/glpuzzle.cxx in the FLTK source) if -you are having trouble porting your GLUT program.

-

This has been tested with most of the demo programs that come with -the GLUT 3.3 distribution.

+

You should be able to compile existing GLUT source code by including <FL/glut.H> instead of <GL/glut.h>. This can be done by editing the source, by changing the -I switches to the compiler, or by providing a symbolic link from GL/glut.h to FL/glut.H.

+

All files calling GLUT procedures must be compiled with C++. You may have to alter them slightly to get them to compile without warnings, and you may have to rename them to get make to use the C++ compiler.

+

You must link with the FLTK library. Most of FL/glut.H is inline functions. You should take a look at it (and maybe at test/glpuzzle.cxx in the FLTK source) if you are having trouble porting your GLUT program.

+

This has been tested with most of the demo programs that come with the GLUT and FreeGLUT distributions.

Known Problems

- The following functions and/or arguments to functions are missing, and +

The following functions and/or arguments to functions are missing, and you will have to replace them or comment them out for your code to compile: