1
0
Fork 0
Commit graph

129 commits

Author SHA1 Message Date
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
curt
b3c537ff79 No .h for STL includes. 1998-06-03 00:48:12 +00:00
curt
850ba99158 misc updates. 1998-05-30 01:57:25 +00:00
curt
437c0b6f29 Renamed <Table>.table to be <Table> so we can add a .gz under DOS. 1998-05-29 20:37:51 +00:00
curt
26757b73b2 Derived file "Makefile.in" removed from version control. 1998-05-23 14:18:28 +00:00
curt
d093a9422b Rewrote event.cxx in C++ as a class using STL for the internal event list
and run queue this removes the arbitrary list sizes and makes things much
more dynamic.  Because this is C++-classified we can now have multiple
event_tables if we'd ever want them.
1998-05-22 21:14:53 +00:00
curt
cbdc65f55a Converted fgLIGHT to a C++ class. 1998-05-20 20:54:16 +00:00
curt
37df3de51d Root path info moved to fgOPTIONS. 1998-05-13 18:25:34 +00:00
curt
9d733bf6f4 Made fog color slightly bluish. 1998-05-11 18:18:51 +00:00
curt
6382b36f23 polar.h -> polar3d.h 1998-05-03 00:46:45 +00:00
curt
0419841486 Fine tuning mktime() support because of varying behavior on different
platforms.
1998-05-02 01:53:17 +00:00
curt
de51293e5c C++-ifying a couple source files. 1998-04-30 12:35:59 +00:00
curt
67cc5c5482 Fixed a horible bug that cause the time to be *WAY* off when compiling
with the CygWin32 compiler.  This may not yet completely address other
Win32 compilers, but we'll have to take them on a case by case basis.
1998-04-28 21:45:34 +00:00
curt
5bbd08091c Type-ified fgTIME and fgVIEW. 1998-04-28 01:22:16 +00:00
curt
4a487175c9 "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd. 1998-04-26 05:10:00 +00:00
curt
0b782544a3 Edited cvs log messages in source files ... bad bad bad! 1998-04-25 22:06:24 +00:00
curt
dd4a17a011 Cleaned up initialization sequence to eliminate interdependencies
between sun position, lighting, and view position.  This creates a
valid single pass initialization path.
1998-04-25 20:24:00 +00:00
curt
2addcf2e76 Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
Fog color fixes.
Separated out lighting calcs into their own file.
1998-04-24 00:52:24 +00:00
curt
73ed3c180e C++ - ifiing the code a bit.
Starting to reorginize some of the lighting calcs to use a table lookup.
1998-04-22 13:24:04 +00:00
curt
52727b75c6 Fixed a problems where a pointer to a function was being passed around. In
one place this functions arguments were defined as ( void ) while in another
place they were defined as ( int ).  The correct answer was ( int ).

Prepairing for C++ integration.
1998-04-21 17:01:43 +00:00
curt
7d39aa3777 Moved fg_debug.c to it's own library. 1998-04-18 04:13:51 +00:00
curt
ab59ca78b9 Code reorganizations. Added a Lib/ directory for more general libraries. 1998-04-14 02:23:04 +00:00
curt
575d57249c We had unified some of the platform disparate time handling code, and
there was a bug in timesum() which calculated a new time stamp based on
the current time stamp + offset.  This hosed the periodic event processing
logic because you'd never arrive at the time the event was scheduled for.
Sky updates and lighting changes are handled via this event mechanism so
they never changed ... it is fixed now.
1998-04-09 18:40:13 +00:00
curt
8c3b74b775 Tweaks to Gnu automake/autoconf system. 1998-04-08 23:32:28 +00:00
curt
b69c64da41 Minor cleanups and reorganizations. 1998-04-06 15:56:15 +00:00
curt
c1004bd1a0 Converting to Gnu autoconf system.
Centralized time handling differences.
1998-04-03 22:12:53 +00:00
curt
9f38885d38 replaced a printf() with an fgPrintf(). 1998-03-14 00:28:34 +00:00
curt
a9ffad1f5b Debug message tweaks. 1998-03-09 22:48:09 +00:00
curt
e798c59696 Incorporated Durk's Astro/ tweaks. Includes unifying the sun position
calculation code between sun display, and other FG sections that use this
for things like lighting.
1998-02-23 19:07:49 +00:00
curt
b570e9ce9a Removed "depend" files from cvs control. Other minor make tweaks. 1998-02-09 22:56:28 +00:00
curt
d126b3d8f0 Minor tweaks. 1998-02-09 15:07:47 +00:00