From c8501f9b294b6df1389261edc9f0619ea99d394b Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 18 Jun 1999 03:42:54 +0000 Subject: [PATCH] Now use plib in native install mode. Preparations for unstable development version 0.7.0 Some reorganizational changes. Beginning to test the use of ssg (part of plib) --- src/GUI/gui.h | 2 +- src/Joystick/joystick.cxx | 4 +- src/Main/Makefile.am | 5 +- src/Main/fg_init.cxx | 46 ++++++++++-- src/Main/fg_init.hxx | 8 +- src/Main/keyboard.cxx | 9 ++- src/Main/keyboard.hxx | 10 +-- src/Main/main.cxx | 154 ++++++++++++++++++++++++-------------- src/Main/views.cxx | 10 ++- src/Scenery/tileentry.hxx | 2 +- 10 files changed, 166 insertions(+), 84 deletions(-) diff --git a/src/GUI/gui.h b/src/GUI/gui.h index 44366a139..8a592de0f 100644 --- a/src/GUI/gui.h +++ b/src/GUI/gui.h @@ -25,7 +25,7 @@ #ifndef _GUI_H_ #define _GUI_H_ -#include +#include // plib include extern void guiInit(); extern void guiMotionFunc ( int x, int y ); diff --git a/src/Joystick/joystick.cxx b/src/Joystick/joystick.cxx index 856e0a7fe..dcad3f78a 100644 --- a/src/Joystick/joystick.cxx +++ b/src/Joystick/joystick.cxx @@ -2,7 +2,7 @@ // // Written by Curtis Olson, started October 1998. // -// Copyright (C) 1998 Curtis L. Olson - curt@me.umn.edu +// Copyright (C) 1998 - 1999 Curtis L. Olson - curt@flightgear.org // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as @@ -33,7 +33,7 @@ #include #if defined( ENABLE_PLIB_JOYSTICK ) -# include +# include // plib include #elif defined( ENABLE_GLUT_JOYSTICK ) # include # include diff --git a/src/Main/Makefile.am b/src/Main/Makefile.am index 58d5d55e8..d0af569d8 100644 --- a/src/Main/Makefile.am +++ b/src/Main/Makefile.am @@ -36,9 +36,10 @@ bin_PROGRAMS = fgfs bin_SCRIPTS = runfgfs runfgfs.bat fgfs_SOURCES = \ - GLUTkey.cxx GLUTkey.hxx GLUTmain.cxx \ fg_init.cxx fg_init.hxx \ fg_serial.cxx fg_serial.hxx \ + keyboard.cxx keyboard.hxx \ + main.cxx \ options.cxx options.hxx \ splash.cxx splash.hxx \ views.cxx views.hxx @@ -66,7 +67,7 @@ fgfs_LDADD = \ $(top_builddir)/Lib/Math/libMath.a \ $(top_builddir)/Lib/Bucket/libBucket.a \ $(top_builddir)/Lib/Debug/libDebug.a \ - -lpu -lfnt \ + -lpu -lfnt -lssg -lsg \ $(top_builddir)/Lib/Misc/libMisc.a \ $(top_builddir)/Lib/zlib/libz.a \ $(opengl_LIBS) diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 149eebb78..cecf5d654 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -62,6 +62,7 @@ #include #include #include +#include #include #include #include