// (Log is kept at end of this file)
-#include <string> // Standard C++ string library
-#include <vector>
-#include "Include/fg_stl_config.h"
+#include <Include/compiler.h>
-#ifdef NEEDNAMESPACESTD
-using namespace std;
-#endif
+#include STL_STRING
+#include <vector>
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+# include <strings.h>
+#endif
+
#include <Debug/logstream.hxx>
// #include <Include/fg_types.h>
#include <Math/fg_geodesy.hxx>
#include "genapt.hxx"
+FG_USING_NAMESPACE(std);
+
typedef vector < Point3D > container;
typedef container::iterator iterator;
if ( token == "a" ) {
// airport info record (start of airport)
- if ( apt_id != "" ) {
+ if ( apt_id.length() > 0 ) {
// we have just finished reading and airport record.
// process the info
gen_base(average, perimeter, tile);
in >> skipcomment;
}
- if ( apt_id != "" ) {
+ if ( apt_id.length() > 0 ) {
// we have just finished reading and airport record.
// process the info
size = perimeter.size();
// $Log$
+// Revision 1.13 1999/02/26 22:08:34 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.12 1999/02/01 21:08:33 curt
// Optimizations from Norman Vine.
//
//
-// airports.cxx -- a really simplistic class to manage airport ID,
+// simple.cxx -- a really simplistic class to manage airport ID,
// lat, lon of the center of one of it's runways, and
// elevation in feet.
//
// (Log is kept at end of this file)
-#include <string>
+#include <Include/compiler.h>
#include <Debug/logstream.hxx>
-#include <Main/options.hxx>
#include <Misc/fgstream.hxx>
+#include <Main/options.hxx>
-#include "simple.hxx"
-
-#include "Include/fg_stl_config.h"
+#include STL_STRING
#include STL_FUNCTIONAL
#include STL_ALGORITHM
+#include "simple.hxx"
+
fgAIRPORTS::fgAIRPORTS() {
}
// $Log$
+// Revision 1.10 1999/02/26 22:08:35 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.9 1998/11/06 21:17:34 curt
// Converted to new logstream debugging facility. This allows release
// builds with no messages at all (and no performance impact) by using
//
-// airports.hxx -- a really simplistic class to manage airport ID,
+// simple.hxx -- a really simplistic class to manage airport ID,
// lat, lon of the center of one of it's runways, and
// elevation in feet.
//
#endif
-#include <string> // Standard C++ string library
+#include <Include/compiler.h>
+
+#include STL_STRING
#include <set>
-#include "Include/fg_stl_config.h"
-#ifdef NEEDNAMESPACESTD
-using namespace std;
-#endif
+FG_USING_NAMESPACE(std);
class fgAIRPORT {
// $Log$
+// Revision 1.6 1999/02/26 22:08:36 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.5 1998/11/02 18:25:34 curt
// Check for __CYGWIN__ (b20) as well as __CYGWIN32__ (pre b20 compilers)
// Other misc. tweaks.
* (Log is kept at end of this file)
**************************************************************************/
-#include <FDM/flight.hxx>
-
#include <string.h>
-#include "moon.hxx"
+
#include <Debug/logstream.hxx>
#include <Objects/texload.h>
-
+#include <FDM/flight.hxx>
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
+#include "moon.hxx"
+
static GLuint moon_texid;
static GLubyte *moon_texbuf;
#include <deque> // STL double ended queue
-#ifdef NEEDNAMESPACESTD
-using namespace std;
-#endif
+FG_USING_NAMESPACE(std);
#ifndef WIN32
typedef struct {
#endif // _HUD_H
// $Log$
+// Revision 1.18 1999/02/26 22:08:45 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.17 1999/02/01 21:33:28 curt
// Renamed FlightGear/Simulator/Flight to FlightGear/Simulator/FDM since
// Jon accepted my offer to do this and thought it was a good idea.
var[0] = get_speed() * 1.4; // We have to multiply the airspeed by a
// factor, to simulate flying a Bonanza
var[1] = get_altitude();
- var[2] = get_climb_rate();
+ var[2] = get_climb_rate() / 1000.0;
var[3] = get_throttleval();
// v = ¤t_view;
xglMatrixMode(GL_PROJECTION);
xglLoadIdentity();
xglTranslatef(pointer[i].XPos, pointer[i].YPos, 0.0);
xglRotatef(-pointer[i].tape[0], 0.0, 0.0, 1.0);
- fgEraseArea(pointer[i].vertices, 20, (GLfloat)(pointer[i].teXpos), (GLfloat)(pointer[i].texYpos), (GLfloat)(pointer[i].XPos), (GLfloat)(pointer[i].YPos), 0);
+ fgEraseArea(pointer[i].vertices, 20, (GLfloat)(pointer[i].teXpos), (GLfloat)(pointer[i].texYpos), (GLfloat)(pointer[i].XPos), (GLfloat)(pointer[i].YPos), 0, 1);
xglLoadIdentity();
}
}
// $Log$
+// Revision 1.16 1999/02/26 22:08:46 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.15 1999/02/12 01:46:29 curt
// Updates and fixes from Friedemann.
//
void UpdatePointer(Pointer *pointer);
void fgEraseArea(GLfloat *array, int NumVerti, GLfloat texXPos,
GLfloat texYPos, GLfloat XPos, GLfloat YPos,
- int Texid, float ScaleFactor = 1);
+ int Texid, float ScaleFactor);
void fgUpdateTurnCoordinator(TurnCoordinator *turn);
void fgInitTurnCoordinator(TurnCoordinator *turn);
void DrawScale(float XPos, float YPos, float InnerRadius, float OuterRadius,
// $Log$
+// Revision 1.7 1999/02/26 22:08:47 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.6 1999/02/12 01:46:30 curt
// Updates and fixes from Friedemann.
//
#include <stdio.h>
#include <stdlib.h>
+#include <Debug/logstream.hxx>
#include <Aircraft/aircraft.hxx>
#include <Astro/solarsystem.hxx>
#include <Astro/sky.hxx>
#include <Autopilot/autopilot.hxx>
#include <Cockpit/hud.hxx>
-#include <Debug/logstream.hxx>
#include <GUI/gui.h>
#include <Include/fg_constants.h>
#include <Objects/material.hxx>
// $Log$
+// Revision 1.42 1999/02/26 22:09:46 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.41 1999/02/12 23:22:43 curt
// Allow auto-throttle adjustment while active.
//
#include <Include/fg_constants.h> // for VERSION
#include <Include/general.hxx>
+#include <Debug/logstream.hxx>
#include <Aircraft/aircraft.hxx>
#include <Astro/sky.hxx>
#include <Astro/stars.hxx>
#include <Autopilot/autopilot.hxx>
#include <Cockpit/cockpit.hxx>
-#include <Debug/logstream.hxx>
#include <GUI/gui.h>
#include <Joystick/joystick.hxx>
#include <Math/fg_geodesy.hxx>
// $Log$
+// Revision 1.86 1999/02/26 22:09:47 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.85 1999/02/05 21:29:08 curt
// Modifications to incorporate Jon S. Berndts flight model code.
//
# define _G_NO_EXTERN_TEMPLATES
#endif
-#include <string>
+#include <Include/compiler.h>
+
+#include STL_STRING
#include <Include/fg_constants.h>
+#include <Debug/logstream.hxx>
#include <Aircraft/aircraft.hxx>
#include <Airports/simple.hxx>
#include <Astro/sky.hxx>
#include <Astro/solarsystem.hxx>
#include <Autopilot/autopilot.hxx>
#include <Cockpit/cockpit.hxx>
-#include <Debug/logstream.hxx>
#include <Joystick/joystick.hxx>
#include <Math/fg_geodesy.hxx>
#include <Math/fg_random.h>
#include "views.hxx"
#include "fg_serial.hxx"
+FG_USING_STD(string);
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+FG_USING_NAMESPACE(std);
+#endif
extern const char *default_root;
// $Log$
+// Revision 1.67 1999/02/26 22:09:48 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.66 1999/02/05 21:29:10 curt
// Modifications to incorporate Jon S. Berndts flight model code.
//
#include STL_STRING
#include STL_IOSTREAM
#include <vector>
-#include "Include/fg_stl_config.h"
-FG_USING_NAMESPACE(std);
-
-#include <Aircraft/aircraft.hxx>
#include <Debug/logstream.hxx>
+#include <Aircraft/aircraft.hxx>
#include <Include/fg_constants.h>
#include <Serial/serial.hxx>
#include <Time/fg_time.hxx>
#include "fg_serial.hxx"
+FG_USING_NAMESPACE(std);
// support an arbitrary number of serial channels. Each channel can
// be assigned to an arbitrary port. Bi-directional communication is
// $Log$
+// Revision 1.12 1999/02/26 22:09:50 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.11 1999/02/05 21:29:11 curt
// Modifications to incorporate Jon S. Berndts flight model code.
//
#include <string>
#include <Debug/logstream.hxx>
+#include <Misc/fgstream.hxx>
#include <FDM/flight.hxx>
#include <Include/fg_constants.h>
#include <Main/options.hxx>
-#include <Misc/fgstream.hxx>
#include "fg_serial.hxx"
// $Log$
+// Revision 1.40 1999/02/26 22:09:51 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.39 1999/02/05 21:29:12 curt
// Modifications to incorporate Jon S. Berndts flight model code.
//
#include <XGL/xgl.h>
#include STL_STRING
-FG_USING_STD(string);
-
#include <vector>
-#include "Include/compiler.h"
+
FG_USING_STD(vector);
FG_USING_STD(string);
-// #include "fg_serial.hxx"
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+FG_USING_NAMESPACE(std);
+#endif
typedef vector < string > str_container;
typedef str_container::iterator str_iterator;
// $Log$
+// Revision 1.28 1999/02/26 22:09:52 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.27 1999/02/05 21:29:13 curt
// Modifications to incorporate Jon S. Berndts flight model code.
//
#include <Include/fg_constants.h>
-// #include <Include/fg_types.h>
#include <Math/mat3.h>
#include <Math/point3d.hxx>
#include <Scenery/tile.hxx>
}
// $Log$
+// Revision 1.7 1999/02/26 22:09:56 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.6 1998/10/18 01:17:20 curt
// Point3D tweaks.
//
#include <GL/glut.h>
#include <XGL/xgl.h>
+#include <Include/compiler.h>
+
#include <vector>
#include <Bucket/bucketutils.h>
-// #include <Include/fg_types.h>
-#include "Include/fg_constants.h"
+#include <Include/fg_constants.h>
#include <Math/mat3.h>
#include <Math/point3d.hxx>
-#include <Include/compiler.h>
-//FG_USING_NAMESPACE(std);
FG_USING_STD(vector);
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+FG_USING_NAMESPACE(std);
+#endif
+
// Maximum nodes per tile
#define MAX_NODES 2000
// $Log$
+// Revision 1.8 1999/02/26 22:09:57 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.7 1998/11/02 18:29:00 curt
// Portability changes for the Borland compiler.
//
#include <GL/glut.h>
#include <XGL/xgl.h>
+#include <Include/compiler.h>
+
#include <string.h>
-#include <string>
+#include STL_STRING
-#include "Include/fg_stl_config.h"
#include <Debug/logstream.hxx>
-#include <Main/options.hxx>
#include <Misc/fgstream.hxx>
+#include <Main/options.hxx>
#include <Main/views.hxx>
#include <Scenery/tile.hxx>
#include "fragment.hxx"
#include "texload.h"
+FG_USING_STD(string);
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+FG_USING_NAMESPACE(std);
+#endif
+
+
// global material management class
fgMATERIAL_MGR material_mgr;
// $Log$
+// Revision 1.13 1999/02/26 22:09:58 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.12 1998/12/09 18:50:30 curt
// Converted "class fgVIEW" to "class FGView" and updated to make data
// members private and make required accessor functions.
#include <GL/glut.h>
#include <XGL/xgl.h>
-#if defined ( __sun__ )
-extern "C" void *memmove(void *, const void *, size_t);
-extern "C" void *memset(void *, int, size_t);
-#endif
+// #if defined ( __sun__ )
+// extern "C" void *memmove(void *, const void *, size_t);
+// extern "C" void *memset(void *, int, size_t);
+// #endif
+
+#include <Include/compiler.h>
-#include <string> // Standard C++ library
+#include STL_STRING
#include <map> // STL
#include <ctype.h> // isdigit()
-#ifdef NEEDNAMESPACESTD
-using namespace std;
-#endif
-
#include <Debug/logstream.hxx>
+#include <Misc/fgstream.hxx>
#include <Include/fg_constants.h>
-#include <Include/fg_zlib.h>
#include <Main/options.hxx>
#include <Math/mat3.h>
#include <Math/fg_random.h>
#include <Math/point3d.hxx>
#include <Math/polar3d.hxx>
#include <Misc/stopwatch.hxx>
-#include <Misc/fgstream.hxx>
#include <Scenery/tile.hxx>
#include "material.hxx"
#include "obj.hxx"
+FG_USING_STD(string);
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+FG_USING_NAMESPACE(std);
+#endif
static double normals[MAX_NODES][3];
// $Log$
+// Revision 1.11 1999/02/26 22:09:59 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.10 1998/11/06 21:18:18 curt
// Converted to new logstream debugging facility. This allows release
// builds with no messages at all (and no performance impact) by using
#include <GL/glut.h>
#include <XGL/xgl.h>
-#include <vector>
-#include <string>
+#include <Include/compiler.h>
-#include "Include/compiler.h"
-FG_USING_STD(string);
-FG_USING_STD(vector);
+#include <vector>
+#include STL_STRING
#include <Bucket/bucketutils.h>
#include <Math/mat3.h>
#include <Math/point3d.hxx>
#include <Objects/fragment.hxx>
+FG_USING_STD(string);
+FG_USING_STD(vector);
+
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+#include <strings.h>
+FG_USING_NAMESPACE(std);
+#endif
// Scenery tile class
class fgTILE {
// $Log$
+// Revision 1.24 1999/02/26 22:10:02 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.23 1999/02/02 20:13:41 curt
// MSVC++ portability changes by Bernie Bright:
//
#include <GL/glut.h>
#include <XGL/xgl.h>
+#include <Debug/logstream.hxx>
#include <Airports/genapt.hxx>
#include <Bucket/bucketutils.hxx>
-#include <Debug/logstream.hxx>
#include <Main/options.hxx>
#include <Main/views.hxx>
#include <Objects/obj.hxx>
// $Log$
+// Revision 1.22 1999/02/26 22:10:04 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.21 1998/12/09 18:50:32 curt
// Converted "class fgVIEW" to "class FGView" and updated to make data
// members private and make required accessor functions.
#include <Aircraft/aircraft.hxx>
-#include <Bucket/bucketutils.hxx>
#include <Debug/logstream.hxx>
+#include <Bucket/bucketutils.hxx>
#include <Include/fg_constants.h>
#include <Main/options.hxx>
#include <Main/views.hxx>
// $Log$
+// Revision 1.54 1999/02/26 22:10:05 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.53 1999/02/05 21:29:16 curt
// Modifications to incorporate Jon S. Berndts flight model code.
//
#endif
-#include "Include/compiler.h"
-#include "Include/fg_callback.hxx"
+#include <Include/compiler.h>
+#include <Include/fg_callback.hxx>
#include <deque> // STL double ended queue
#include <list> // STL list
-#include <string>
+#include STL_STRING
+
+#include "fg_time.hxx"
+#include "timestamp.hxx"
FG_USING_STD(deque);
FG_USING_STD(list);
FG_USING_STD(string);
-#include "fg_time.hxx"
-#include "timestamp.hxx"
-
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+FG_USING_NAMESPACE(std);
+#endif
class fgEVENT
{
// $Log$
+// Revision 1.17 1999/02/26 22:10:08 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.16 1999/01/09 13:37:43 curt
// Convert fgTIMESTAMP to FGTimeStamp which holds usec instead of ms.
//
# include <config.h>
#endif
-#include "Include/compiler.h"
+#include <Include/compiler.h>
#ifdef FG_HAVE_STD_INCLUDES
# include <cmath>
# include <sys/time.h> // for get/setitimer, gettimeofday, struct timeval
#endif
+#include <Debug/logstream.hxx>
#include <Astro/sky.hxx>
#include <Astro/solarsystem.hxx>
-#include <Debug/logstream.hxx>
#include <FDM/flight.hxx>
#include <Include/fg_constants.h>
#include <Main/options.hxx>
// $Log$
+// Revision 1.32 1999/02/26 22:10:10 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.31 1999/02/05 21:29:18 curt
// Modifications to incorporate Jon S. Berndts flight model code.
//
# include <config.h>
#endif
-#include "Include/compiler.h"
+#include <Include/compiler.h>
+
#ifdef FG_HAVE_STD_INCLUDES
# include <cmath>
# include <cstdio>
# include <time.h>
#endif
-
-//#include <Astro/orbits.hxx>
-#include <Astro/solarsystem.hxx>
#include <Debug/logstream.hxx>
+#include <Astro/solarsystem.hxx>
#include <Include/fg_constants.h>
#include <Main/views.hxx>
#include <Math/fg_geodesy.hxx>
// $Log$
+// Revision 1.20 1999/02/26 22:10:11 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.19 1999/01/07 20:25:37 curt
// Portability changes and updates from Bernie Bright.
//