Added an #ifdef to osgGLUT/Window.cpp to handle the case of compiling against

older versions of GLUT.
This commit is contained in:
Robert Osfield 2003-01-24 15:12:54 +00:00
parent 63303787fc
commit 31e4185aa6
41 changed files with 93 additions and 91 deletions

View File

@ -22,7 +22,7 @@ sgv spaceship.osg
echo sgv cube_mapped_torus.osg
sgv cube_mapped_torus.osg
echo sgv osgvertexprogram
echo osgvertexprogram
osgvertexprogram
echo sgv Town.osg

View File

@ -72,7 +72,9 @@ bool Window::open()
glutVisibilityFunc( visibilityCB );
glutDisplayFunc( displayCB );
glutKeyboardFunc( keyboardCB );
#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
glutKeyboardUpFunc( keyboardUpCB );
#endif
glutMouseFunc( mouseCB );
glutMotionFunc( mouseMotionCB );

View File

@ -17,13 +17,13 @@
#include <osg/NodeVisitor>
#include <file.h>
#include <mesh.h>
#include <material.h>
#include <vector.h>
#include <matrix.h>
#include <node.h>
#include <quat.h>
#include "file.h"
#include "mesh.h"
#include "material.h"
#include "vector.h"
#include "matrix.h"
#include "node.h"
#include "quat.h"
#include <stdlib.h>
#include <string.h>

View File

@ -20,9 +20,9 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <atmosphere.h>
#include <chunk.h>
#include <readwrite.h>
#include "atmosphere.h"
#include "chunk.h"
#include "readwrite.h"
/*!

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,9 +20,9 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <background.h>
#include <chunk.h>
#include <readwrite.h>
#include "background.h"
#include "chunk.h"
#include "readwrite.h"
#include <string.h>
#include <math.h>

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,13 +20,13 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <camera.h>
#include <chunk.h>
#include <readwrite.h>
#include "camera.h"
#include "chunk.h"
#include "readwrite.h"
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <config.h>
#include "config.h"
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,9 +20,9 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <chunk.h>
#include <readwrite.h>
#include <chunktable.h>
#include "chunk.h"
#include "readwrite.h"
#include "chunktable.h"
#include <string.h>
#include <stdarg.h>

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_CHUNK_H
#include <chunk.h>
#include "chunk.h"
#endif
#ifdef __cplusplus

View File

@ -20,7 +20,7 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <ease.h>
#include "ease.h"
/*!

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,19 +20,19 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <file.h>
#include <chunk.h>
#include <readwrite.h>
#include <material.h>
#include <mesh.h>
#include <camera.h>
#include <light.h>
#include <node.h>
#include <vector.h>
#include "file.h"
#include "chunk.h"
#include "readwrite.h"
#include "material.h"
#include "mesh.h"
#include "camera.h"
#include "light.h"
#include "node.h"
#include "vector.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <config.h>
#include "config.h"
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif

View File

@ -20,7 +20,7 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <lib3ds_float.h>
#include "lib3ds_float.h"
/*!

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,13 +20,13 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <light.h>
#include <chunk.h>
#include <readwrite.h>
#include "light.h"
#include "chunk.h"
#include "readwrite.h"
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <config.h>
#include "config.h"
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,13 +20,13 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <material.h>
#include <chunk.h>
#include <readwrite.h>
#include "material.h"
#include "chunk.h"
#include "readwrite.h"
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <config.h>
#include "config.h"
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,9 +20,9 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <matrix.h>
#include <quat.h>
#include <vector.h>
#include "matrix.h"
#include "quat.h"
#include "vector.h"
#include <string.h>
#include <math.h>

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,15 +20,15 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <mesh.h>
#include <readwrite.h>
#include <chunk.h>
#include <vector.h>
#include <matrix.h>
#include "mesh.h"
#include "readwrite.h"
#include "chunk.h"
#include "vector.h"
#include "matrix.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <config.h>
#include "config.h"
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,15 +20,15 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <node.h>
#include <file.h>
#include <readwrite.h>
#include <chunk.h>
#include <matrix.h>
#include "node.h"
#include "file.h"
#include "readwrite.h"
#include "chunk.h"
#include "matrix.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <config.h>
#include "config.h"
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TRACKS_H
#include <tracks.h>
#include "tracks.h"
#endif
#ifdef __cplusplus

View File

@ -20,7 +20,7 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <quat.h>
#include "quat.h"
#include <math.h>

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,7 +20,7 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <readwrite.h>
#include "readwrite.h"
/*!

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -23,7 +23,7 @@
#include "shadow.h"
#include "chunk.h"
#include "readwrite.h"
#include "math.h"
#include <math.h>
/*!

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,8 +20,8 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <tcb.h>
#include <readwrite.h>
#include "tcb.h"
#include "readwrite.h"
#include <math.h>

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,16 +20,16 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <tracks.h>
#include <readwrite.h>
#include <chunk.h>
#include <lib3ds_float.h>
#include <vector.h>
#include <quat.h>
#include "tracks.h"
#include "readwrite.h"
#include "chunk.h"
#include "lib3ds_float.h"
#include "vector.h"
#include "quat.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <config.h>
#include "config.h"
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TCB_H
#include <tcb.h>
#include "tcb.h"
#endif
#ifdef __cplusplus

View File

@ -20,7 +20,7 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <vector.h>
#include "vector.h"
#include <math.h>

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus

View File

@ -20,9 +20,9 @@
* $Id$
*/
#define LIB3DS_EXPORT
#include <viewport.h>
#include <chunk.h>
#include <readwrite.h>
#include "viewport.h"
#include "chunk.h"
#include "readwrite.h"
#include <stdlib.h>
#include <string.h>

View File

@ -24,7 +24,7 @@
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <types.h>
#include "types.h"
#endif
#ifdef __cplusplus