Commit Graph

3923 Commits

Author SHA1 Message Date
curt
ca07b64af0 Moved where glBlendFunc() is reset to main.cxx 1999-10-22 15:15:43 +00:00
curt
2fde2ce581 Reset glBlendFunc() here to. 1999-10-22 12:58:39 +00:00
curt
cb0da2ca5e Set glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ) ; when done drawing
the Sun so that the cloud texture alpha blending will work correctly.
1999-10-22 12:34:06 +00:00
curt
c0422839b9 MSVC++ portability fix. 1999-10-11 21:09:21 +00:00
curt
862b884f02 Various SGI portability tweaks. 1999-10-07 21:08:50 +00:00
curt
708e745cfd MACos fixes. 1999-09-11 14:35:28 +00:00
curt
63c9dcdd96 Tweaks to fix problems with moon rendering introduced with ssg. 1999-08-15 13:35:07 +00:00
curt
770ec00901 Scaled down the sun and moon sizes. 1999-08-10 01:42:34 +00:00
curt
4c6fe0328a Set up the model view matrix exactly as ssg does it before drawing sky, stars
sun, and moon.  I really should do a derived sgLeaf class so that these things
can be drawn within ssgCullandDraw() but this is quicker for now ...
1999-08-07 23:31:30 +00:00
curt
bb882a1239 Borland C++ tweaks.
MacOS/Metrowerks tweaks.
Fix for fgText default constructor.
1999-06-20 01:52:31 +00:00
curt
29e3a4e231 Initial revision 1999-06-17 18:07:36 +00:00
curt
ca444b07bd 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.
2009-09-15 18:31:32 +02:00
curt
510b9ef07a Added initial support for native SGI compilers. 2009-09-15 18:31:32 +02:00
curt
d59a6218ab Modifications to incorporate Jon S. Berndts flight model code. 2009-09-15 18:31:32 +02:00
curt
5f26ba99bc 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
2009-09-15 18:31:32 +02:00
curt
8fcfb73a57 Renamed FlightGear/Simulator/Flight to FlightGear/Simulator/FDM since
Jon accepted my offer to do this and thought it was a good idea.
2009-09-15 18:31:32 +02:00
curt
c9fb802b9e Bug fix in vertex order of inner disk (fan) of the sky dome. 2009-09-15 18:31:32 +02:00
curt
cbb1a37f5a Removed code to make sun appear larger at the horizon. 2009-09-15 18:31:32 +02:00
curt
42f9964e76 Don't know how this got in, but it is gone now. 2009-09-15 18:31:32 +02:00
curt
81c8f4c065 MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr> 2009-09-15 18:31:32 +02:00
curt
0703cb0027 Removed unneeded #include 2009-09-15 18:31:32 +02:00
curt
2487e696b8 Converted "class fgVIEW" to "class FGView" and updated to make data
members private and make required accessor functions.
2009-09-15 18:31:32 +02:00
curt
50227c435c Sun now appears to grow in size as it gets very low in the horizon. 2009-09-15 18:31:32 +02:00
curt
256aaa362f Renamed class fgFLIGHT to class FGState as per request by JSB. 2009-09-15 18:31:32 +02:00
curt
2198498e29 math domain error fix from Charlie Hotchkiss. 2009-09-15 18:31:32 +02:00
curt
46f79f17c8 Converted fgFLIGHT to a class.
Tweaks for Sun portability.
2009-09-15 18:31:32 +02:00
curt
ed870aac76 using an uninitialized variable bug fixed. 2009-09-15 18:31:31 +02:00
curt
663964d94c Borland portability tweaks. 2009-09-15 18:31:31 +02:00
curt
8b1784e0d9 whitespace tweak. 2009-09-15 18:31:31 +02:00
curt
e6c07f088d 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.
2009-09-15 18:31:31 +02:00
curt
6ef9ecdda0 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.
2009-09-15 18:31:31 +02:00
curt
aecea627e1 Changes to track Bernie's updates to fgstream. 2009-09-15 18:31:31 +02:00
curt
e2d428d8ba Tweaked sunset/sunrise colors. 2009-09-15 18:31:31 +02:00
curt
c0e1031a4a C++-ifying. 2009-09-15 18:31:31 +02:00
curt
dea5eec440 Converted to Point3D class. 2009-09-15 18:31:31 +02:00
curt
23a8ff8a04 Converted to c++ style comments. 2009-09-15 18:31:31 +02:00
curt
a3c95154f5 Miscellaneous tweaks. 2009-09-15 18:31:31 +02:00
curt
f9e52ea53d Fixed output message. 2009-09-15 18:31:31 +02:00
curt
001a2c89e7 New textured moon and rewritten/restructured Astro code contributed by Durk
Talsma.
2009-09-15 18:31:31 +02:00
curt
38631c9eb3 log file tweak. 2009-09-15 18:31:31 +02:00
curt
07e9467507 Changes contributed by Bernie Bright <bbright@c031.aone.net.au>
- The new classes in libmisc.tgz define a stream interface into zlib.
   I've put these in a new directory, Lib/Misc.  Feel free to rename it
   to something more appropriate.  However you'll have to change the
   include directives in all the other files.  Additionally you'll have
   add the library to Lib/Makefile.am and Simulator/Main/Makefile.am.

   The StopWatch class in Lib/Misc requires a HAVE_GETRUSAGE autoconf
   test so I've included the required changes in config.tgz.

   There are a fair few changes to Simulator/Objects as I've moved
   things around.  Loading tiles is quicker but thats not where the delay
   is.  Tile loading takes a few tenths of a second per file on a P200
   but it seems to be the post-processing that leads to a noticeable
   blip in framerate.  I suppose its time to start profiling to see where
   the delays are.

   I've included a brief description of each archives contents.

Lib/Misc/
  zfstream.cxx
  zfstream.hxx
    C++ stream interface into zlib.
    Taken from zlib-1.1.3/contrib/iostream/.
    Minor mods for STL compatibility.
    There's no copyright associated with these so I assume they're
    covered by zlib's.

  fgstream.cxx
  fgstream.hxx
    FlightGear input stream using gz_ifstream.  Tries to open the
    given filename.  If that fails then filename is examined and a
    ".gz" suffix is removed or appended and that file is opened.

  stopwatch.hxx
    A simple timer for benchmarking.  Not used in production code.
    Taken from the Blitz++ project.  Covered by GPL.

  strutils.cxx
  strutils.hxx
    Some simple string manipulation routines.

Simulator/Airports/
  Load airports database using fgstream.
  Changed fgAIRPORTS to use set<> instead of map<>.
  Added bool fgAIRPORTS::search() as a neater way doing the lookup.
  Returns true if found.

Simulator/Astro/
  Modified fgStarsInit() to load stars database using fgstream.

Simulator/Objects/
  Modified fgObjLoad() to use fgstream.
  Modified fgMATERIAL_MGR::load_lib() to use fgstream.
  Many changes to fgMATERIAL.
  Some changes to fgFRAGMENT but I forget what!
2009-09-15 18:31:31 +02:00
curt
a9d109b3ce Rewrite of event manager thanks to Bernie Bright. 2009-09-15 18:31:31 +02:00
curt
5cbbd7a14e 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.
2009-09-15 18:31:30 +02:00
curt
424ef2f6e9 Shuffled $FG_ROOT file layout. 2009-09-15 18:31:30 +02:00
curt
26a6fa864d Nailed a uninitialized variable usage bug that was killing us on some
platforms with some compiler options.
2009-09-15 18:31:30 +02:00
curt
01327ebd4c Minor tweaks to avoid using unitialized memory. 2009-09-15 18:31:30 +02:00
curt
23be422477 Sky now tracks adjusted fog color so it blends well with terrain. 2009-09-15 18:31:30 +02:00
curt
1f47fbafff Rewrote star loading and rendering to:
1. significantly improve load speed
  2. transition from no stars to stars through eight stages.
2009-09-15 18:31:30 +02:00
curt
19f58936a8 Modified to bring in stars in 8 increments based on magnitude, not number
of stars.
2009-09-15 18:31:30 +02:00
curt
0e7c76a38f Eliminated glScale call so that glutSolidSphere normals are preserved
correctly.  Also made the sun & moon a bit smaller.
2009-09-15 18:31:30 +02:00