1
0
Fork 0
Commit graph

159 commits

Author SHA1 Message Date
curt
50aabc3bc9 Initial revision. 1999-03-22 12:08:57 +00:00
curt
33726fc21b Changes contributed by Durk Talsma:
Here's a few changes I made to fg-0.58 this weekend. Included are the
following features:
- Sun and moon have a halo
- The moon has a light vector, moon_angle, etc. etc. so that we can have
  some moonlight during the night.
- Lot's of small changes tweakes, including some stuff Norman Vine sent
  me earlier.
1999-03-22 02:08:05 +00:00
curt
53be443264 Tweaks for building with native SGI compilers. 1999-03-02 01:02:31 +00:00
curt
00ccbd1f25 Added initial support for native SGI compilers. 1999-02-26 22:08:34 +00:00
curt
b8d59efa71 Modifications to incorporate Jon S. Berndts flight model code. 1999-02-05 21:28:09 +00:00
curt
91cb0e2a99 MSVC++ portability changes by Bernie Bright:
Lib/Serial/serial.[ch]xx: Initial Windows support - incomplete.
Simulator/Astro/stars.cxx: typo? included <stdio> instead of <cstdio>
Simulator/Cockpit/hud.cxx: Added Standard headers
Simulator/Cockpit/panel.cxx: Redefinition of default parameter
Simulator/Flight/flight.cxx: Replaced cout with FG_LOG.  Deleted <stdio.h>
Simulator/Main/fg_init.cxx:
Simulator/Main/GLUTmain.cxx:
Simulator/Main/options.hxx: Shuffled <fg_serial.hxx> dependency
Simulator/Objects/material.hxx:
Simulator/Time/timestamp.hxx: VC++ friend kludge
Simulator/Scenery/tile.[ch]xx: Fixed using std::X declarations
Simulator/Main/views.hxx: Added a constant
1999-02-02 20:13:29 +00:00
curt
1209546e08 Renamed FlightGear/Simulator/Flight to FlightGear/Simulator/FDM since
Jon accepted my offer to do this and thought it was a good idea.
1999-02-01 21:33:23 +00:00
curt
0d30a845d0 Move sun/solaris specific stuff to compiler.h 1999-01-27 04:50:18 +00:00
curt
308f7d4d3e Sun portability hack. 1999-01-21 20:14:18 +00:00
curt
de4713bf2a MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr> 1999-01-19 20:57:00 +00:00
curt
12dac83b21 Convert fgTIMESTAMP to FGTimeStamp which holds usec instead of ms. 1999-01-09 13:37:32 +00:00
curt
9a8b4dab10 Portability changes and updates from Bernie Bright. 1999-01-07 20:25:32 +00:00
curt
871c005f13 #include tweaks. 1998-12-11 20:26:54 +00:00
curt
f450f4a9af Converted "class fgVIEW" to "class FGView" and updated to make data
members private and make required accessor functions.
1998-12-09 18:50:12 +00:00
curt
71f334cc0d Renamed class fgFLIGHT to class FGState as per request by JSB. 1998-12-05 15:53:59 +00:00
curt
d671446a35 Moved struct fg_timestamp to class fgTIMESTAMP and moved it's definition
to it's own file, timestamp.hxx.
1998-12-05 14:21:28 +00:00
curt
59b20e610c Converted "struct fg_timestamp" to "class fgTIMESTAMP" and added some
convenience inline operators.
1998-12-04 01:32:46 +00:00
curt
7fbb963a39 Converted fgFLIGHT to a class. 1998-12-03 01:14:58 +00:00
curt
a83788c587 Borland portability tweaks. 1998-11-23 21:48:09 +00:00
curt
3866a42bec FG_LOG() message tweaks. 1998-11-16 14:00:28 +00:00
curt
b10ec55403 Log message clean ups. 1998-11-09 23:41:51 +00:00
curt
2c2b68fc47 Enable release builds using the --without-logging option to the configure
script.  Also a couple log message cleanups, plus some C to C++ comment
conversion.
1998-11-07 19:07:06 +00:00
curt
c74350c4fe Converted to new logstream debugging facility. This allows release
builds with no messages at all (and no performance impact) by using
the -DFG_NDEBUG flag.
1998-11-06 21:17:31 +00:00
curt
2612ab0ab3 Check for __CYGWIN__ (b20) as well as __CYGWIN32__ (pre b20 compilers)
Other misc. tweaks.
1998-11-02 18:25:34 +00:00
curt
995729b5a1 Tweaked sunrise/sunset colors. 1998-10-20 18:41:53 +00:00
curt
7efee52485 Point3D tweaks. 1998-10-18 01:17:16 +00:00
curt
5b752bfb5f C++ ifying ... 1998-10-17 01:33:52 +00:00
curt
bf5fb5108b C++-ifying. 1998-10-16 23:26:44 +00:00
curt
7e240adff1 Converted to Point3D class. 1998-10-16 00:51:46 +00:00
curt
71b78dc87c Fixes to try to break through the win95/98 18.3 fps barrier. 1998-10-02 21:36:09 +00:00
curt
b5cf8b7323 Changes for new astro code. 1998-09-15 04:27:49 +00:00
curt
c4dbcd55b1 Include/fg_callback.hxx
Moved code inline to stop g++ 2.7 from complaining.

Simulator/Time/event.[ch]xx
  Changed return type of fgEVENT::printStat().  void caused g++ 2.7 to
  complain bitterly.

Minor bugfix and changes.

Simulator/Main/GLUTmain.cxx
  Added missing type to idle_state definition - eliminates a warning.

Simulator/Main/fg_init.cxx
  Changes to airport lookup.

Simulator/Main/options.cxx
  Uses fg_gzifstream when loading config file.
1998-09-15 02:09:24 +00:00
curt
44a9f9e26a Added constructor for fgEVENT. 1998-09-08 21:41:06 +00:00
curt
3d47451fab Renamed struct -> class. 1998-09-02 14:37:45 +00:00
curt
50ea8bd446 Bernie Bright writes:
I've created some new classes to enable pointers-to-functions and
  pointers-to-class-methods to be treated like objects.  These objects
  can be registered with fgEVENT_MGR.

  File "Include/fg_callback.hxx" contains the callback class defns.

  Modified fgEVENT and fgEVENT_MGR to use the callback classes.  Also
  some minor tweaks to STL usage.

  Added file "Include/fg_stl_config.h" to deal with STL portability
  issues.  I've added an initial config for egcs (and probably gcc-2.8.x).
  I don't have access to Visual C++ so I've left that for someone else.
  This file is influenced by the stl_config.h file delivered with egcs.

  Added "Include/auto_ptr.hxx" which contains an implementation of the
  STL auto_ptr class which is not provided in all STL implementations
  and is needed to use the callback classes.

  Deleted fgLightUpdate() which was just a wrapper to call
  fgLIGHT::Update().

  Modified fg_init.cxx to register two method callbacks in place of the
  old wrapper functions.
1998-08-29 13:11:31 +00:00
curt
283a23159a Contributions from Bernie Bright <bbright@c031.aone.net.au>
- use strings for fg_root and airport_id and added methods to return
  them as strings,
- inlined all access methods,
- made the parsing functions private methods,
- deleted some unused functions.
- propogated some of these changes out a bit further.
1998-08-27 17:01:55 +00:00
curt
9d608dd593 Shuffled $FG_ROOT file layout. 1998-08-25 20:53:24 +00:00
curt
2b706a6528 Rewrote sidereal_course with simpler parameters. 1998-08-24 20:12:16 +00:00
curt
9b94c66383 Tweak ... 1998-08-20 15:12:26 +00:00
curt
3082eaf550 Optimizations by Norman Vine. 1998-08-12 21:13:22 +00:00
curt
5e9a45af0c Adjusted dusk/dawn lighting ... 1998-08-06 12:47:22 +00:00
curt
fcdc2cf4c9 Added a local routine to update lighting params every frame when time is
accelerated.
1998-08-05 00:19:33 +00:00
curt
d887239929 Sgi build tweaks.
Pause support.
1998-07-30 23:48:54 +00:00
curt
05e3836b52 Added a pause option. 1998-07-27 18:42:22 +00:00
curt
3786e0665c Output message tweaks. 1998-07-24 21:42:25 +00:00
curt
ffa2a0feb3 fg_time.cxx: Removed call to ctime() in a printf() which should be harmless
but seems to be triggering a bug.
light.cxx: Added code to adjust fog color based on sunrise/sunset effects
  and view orientation.  This is an attempt to match the fog color to the
  sky color in the center of the screen.  You see discrepancies at the
  edges, but what else can be done?
sunpos.cxx: Caculate local direction to sun here.  (what compass direction
  do we need to face to point directly at sun)
1998-07-22 21:45:37 +00:00
curt
4abe562805 Wrote access functions for current fgOPTIONS. 1998-07-13 21:00:09 +00:00
curt
1bfa270128 polar3d.h renamed to polar3d.hxx 1998-07-08 14:48:38 +00:00
curt
2f40b08c03 Build only static libraries.
Declare memmove/memset for Sloaris.
Rewrote fg_time.c routine to get LST start seconds to better handle
  Solaris, and be easier to port, and understand the GMT vs. local
  timezone issues.
1998-06-12 00:59:52 +00:00
curt
274ba49906 Incorporated some automake conditionals to try to support mktime() correctly
on a wider variety of platforms.
Added the declaration of memmove needed by the stl which apparently
solaris only defines for cc compilations and not for c++ (__STDC__)
1998-06-05 18:18:12 +00:00