Commit Graph
100 Commits
Author SHA1 Message Date
curt b2a7fff26e Explicitely reset the glBlendFunc() after drawing the moon for the Voodoo2
linux driver since it seems to have a bug in glPopAttrib().
2002-02-14 14:21:48 +00:00
curt 5f70123723 0.7.9pre2 changes. 2002-02-13 15:10:06 +00:00
curt 74f7d52d95 Fixed a problem that could lead to a 'near infinite' loop if bogus input
values are provided.
2002-02-12 15:21:14 +00:00
curt 7a65a990ba Decouple sg_time code from the current time(NULL), i.e. you can run the
time calculations for an alternate calendar time (i.e. if the application
is being driven from an external source of data.)

Fix a bug in sg_binobj.cxx which disrupted the 'broken down time' globally
for the entire application.
2002-02-11 22:27:27 +00:00
curt fe0076e291 Updated with 0.0.17 changes. 2002-02-10 04:10:00 +00:00
curt 1a8bc06cc6 FreeBSD fix: strnstr() is already defined. 2002-02-10 03:28:57 +00:00
curt 8c41081a5c This code had been written to assume current clock time. Added options
to allow specifying an alternate clock time.
2002-02-10 03:16:03 +00:00
curt 5b40eed554 Fixes a config problem that could lead to a bogus build for people with
voodoo cards.
2002-02-07 22:37:09 +00:00
curt b1c4d34eef Fix for FreeBSD. 2002-02-06 01:04:38 +00:00
curt 0152b607f8 Tweaks ... 2002-02-05 21:36:09 +00:00
curt ab6e72047b oops, minor tweaks. 2002-02-04 22:48:30 +00:00
curt 15399bfe95 Various mingwin patches contributed by Norman Vine. 2002-02-04 22:38:23 +00:00
curt 0ff748987b Pass strings by const reference instead of by value,
Made fix_path() a private member function, SGPath::fix(),
Added bool SGPath::exists(),
Added an assignment operator that acts like SGPath::append().
2002-02-04 20:23:41 +00:00
curt 58e0e7736b Removed some depricated irix support that is now handled elsewhere. 2002-02-01 20:18:47 +00:00
curt 9a4152eb2d Fixes to make telnet interface work more than 1x. 2002-01-28 21:48:00 +00:00
curt 6ab443545f Further autogen.sh fixes to handle more cases. 2002-01-19 13:45:06 +00:00
curt 98a9b4a10c Minor clean ups. 2002-01-19 13:37:22 +00:00
curt c3b21e143c Fixed typos ... 2002-01-17 16:58:18 +00:00
curt b496593883 Updated to automatically handle newer versions of automake.
Does some IRIX specific fixups.
2002-01-17 15:21:49 +00:00
curt 4ef4b019ca Added conditional support for Norman's jpegfactory code (requires libjpeg
to be already installed.)
2002-01-16 21:13:27 +00:00
curt a8021531ab Initial revision of jpegfactory code for generating jpeg format screen dumps. 2002-01-16 21:11:00 +00:00
curt a1b3740dc6 A few changes from Norman Vine to support mingwin. 2002-01-15 22:28:21 +00:00
curt 40920457cb Initial revision. 2001-12-29 03:35:31 +00:00
curt 5039c84fd0 Removed metakit and zlib from the configure/build process. The
developer will need to build and install these separately if they
don't have packages already installed by their system.  See
README.metakit and README.zlib for more details.

As a convenience, pristine tarballs of the metakit and zlib source
code trees are included with the simgear distribution (and cvs.)
2001-12-29 00:38:04 +00:00
curt 220a43bf46 Removed metakit and zlib from the configure/build process. The
developer will need to build and install these separately if they don't
have packages already installed by their system.  See README.metakit and
README.zlib for more details.

As a convenience, pristine tarballs of the metakit and zlib source code
trees are included with the simgear distribution (and cvs.)
2001-12-29 00:35:34 +00:00
curt 45d3e19c38 Small tweaks to class initialization. 2001-12-28 23:37:34 +00:00
curt 5bab565cfe Updates to build system to better support automake-1.5
- automake-1.4 sets default values for INCLUDES which we can't
  overwrite.
- automake-1.5 renames this to DEFAULT_INCLUDES and leaves INCLUDES
  open for the developer to use.

Thus for automake-1.4 we are forced to 'append' to INCLUDES and in
automake-1.5 we can just set the value to whatever we like.
Unfortunately, the behaviors of the two versions are mutually
incompatible.

The solution I am committing now works for both versions but
automake-1.5 generates a lot of spurious warning messages that are
annoying, but not fatal.
2001-12-28 21:27:19 +00:00
curt 319a4282c8 Test commit. 2001-12-17 16:52:20 +00:00
curt d100ca485f Doh! fixed a typo ... 2001-12-10 00:24:51 +00:00
curt 35ab6900ee [Hopefully] fix a line ending problem that surfaces in MSVC. 2001-12-09 03:54:46 +00:00
curt c8570302f5 Removed this autogenerated file from CVS. 2001-12-06 22:53:29 +00:00
curt 74f10486bc In certain degenerate situations on the FlightGear side when the flight
model math blows up, the lat/lon could be nan.  Thus updateLocal() could
potentially called with nan arguments if FlightGear is reiniting from a
blown up state.  This is a bug in FlightGear, but I've added a simple
check to catch this so updateLocal() is robust if called under these
circumstances.
2001-12-05 22:31:03 +00:00
curt 2b12425a62 Christian M. says it's bad to chain one constructor call from another.
I can't find anything that addresses this in Stroustrup, but I also don't
see them doing this in any of their examples.  So I have rewritten this
instance to use default arguments to accomplish the same thing.  I imagine
there are other instances of this same sort of thing in other classes to
be fixed at a later date.
2001-11-27 03:17:43 +00:00
curt c600aad7a7 Bernie Bright: support for Intel C++ under Linux. 2001-11-21 21:31:40 +00:00
curt 67b2f0a977 - changed getAttribute to avoid MSVC compiler warning 2001-11-20 20:57:07 +00:00
curt 70c6b48a07 - implemented set/get_log_classes and set/get_log_priority 2001-11-20 20:56:53 +00:00
curt 76084f8538 Oops, typo ... 2001-11-12 18:20:32 +00:00
curt 64c408d2b7 Updated RPM make rule as per Ross Golder. 2001-11-12 17:37:24 +00:00
curt 73b050ae34 Mixed a makefile typo. 2001-11-12 15:27:32 +00:00
curt 59991393ca plib/net based udp client/server sockets. 2001-11-12 04:47:58 +00:00
curt 69b2717b62 One more tiny Irix tweak. 2001-10-24 20:01:15 +00:00
curt f2a323e048 Misc Irix tweaks. 2001-10-24 19:59:05 +00:00
curt 7d07e6ea51 Misc MSVC tweaks. 2001-10-24 19:05:16 +00:00
curt 7c846972bf Macintosh OSX changes. 2001-10-23 20:22:12 +00:00
curt 4f76c258af MSVC tweaks. 2001-08-13 17:14:21 +00:00
curt eca2afb982 Various changes for MingWin32 support. 2001-08-02 22:56:33 +00:00
curt 9ff6934c83 Various MSVC fixes. 2001-07-30 20:34:20 +00:00
curt e04839765d Updates for irix to disable various warnings and define
__STL_FUNCTION_TMPL_PARTIAL_ORDER
2001-07-30 20:05:27 +00:00
curt d0c655109f Oops, missing a trainling backslash after exception.hxx 2001-07-28 04:00:10 +00:00
curt b28b55abb1 - removed declaration of sg_xml_exception (use sg_io_exception) 2001-07-24 21:41:33 +00:00
curt c3a0db1aba - make sure file is closed when an exception passes through 2001-07-24 21:41:19 +00:00
curt 5e929d7d01 - remove dependencies on sg_throwable::clone 2001-07-24 21:41:06 +00:00
curt 17f113f8cd - remove clone methods for exceptions (SGI/Irix compiler bugs)
- added declaration for sg_throwable::getFormattedMessage
- added declaration for sg_io_exception::getFormattedMessage
- added #ifdef wrapper
2001-07-24 21:40:57 +00:00
curt 445cd4ccda - remove clone method declarations (SGI/Irix compiler bugs)
- added default implementation for sg_throwable::getFormattedMessage
  (returns sg_throwable::getMessage by default)
- removed unneeded newline in sg_location::asString
2001-07-24 21:40:46 +00:00
curt 55845bbbb9 Added exceptions.[ch]xx 2001-07-19 02:34:43 +00:00
curt 1976481ba2 - added sg_xml_exception class
- changed return type of readXML from bool to void (uses an exception
  to report problems now)
- removed XMLVisitor::error callback
- declared new readXML function that uses a path rather than a stream
- modified existing readXML function to take an optional path parameter
2001-07-19 02:34:18 +00:00
curt 5f17edbc72 - implemented sg_xml_exception class
- implemented new readXML function with path instead of stream
- modified existing readXML function to use optional path parameter
- modified readXML to throw exceptions rather than returning a bool
  value on error
2001-07-19 02:33:58 +00:00
curt 6f7fe4b481 - modified both readProperties functions to return void, and modified
file-name variant to invoke new readXML function
- readProperties and writeProperties will now throw exceptions if there
  are file I/O problems
- replace error messages with exceptions
- tunnel sg_io_exception through from nested property read, since
  the C-based Expat code cannot handle exceptions
2001-07-19 02:33:38 +00:00
curt 66ebe6e690 - changed return type of both readProperties functions to void
- changed return type of both writeProperties functions to void
2001-07-19 02:33:18 +00:00
curt a9cd67e0ce - new file: implementation of SimGear general exception classes 2001-07-19 02:33:00 +00:00
curt 994a470fbf Prepairing for 0.0.17 2001-07-13 14:58:14 +00:00
curt 0ce0684dae Added a missing include for memcpy() 2001-07-13 03:36:50 +00:00
curt 377eb4782a Updated for 0.0.16 2001-07-13 03:36:29 +00:00
curt f1a79e6b9f - changed default value of "archive" attribute from "y" to "n"
- modified to write out non-archivable parents if they have an
  archivable descendant (i.e. archive="n" no longer kills a whole
  subbranch); this makes sense now that archive defaults to "n".
- don't save the flags -- let the program handle them itself
- produce slightly less verbose output; omit n="0" in elements
2001-07-12 21:09:12 +00:00
curt 007a1e4659 - changed the default value of the archive flag to false; it must now
be set explicitly for a value to be saved
2001-07-12 21:08:58 +00:00
curt fcb873b6dd - added virtual destructor to XMLVisitor to make sure derived classes
get a virtual destructor automatically.
2001-07-11 16:02:26 +00:00
curt a66d1ad855 Check for valid hostname lookup in sg_socket.cxx. 2001-07-10 14:13:51 +00:00
curt 76a5950f19 Add a separate function to just return modified julian date. 2001-07-03 14:39:05 +00:00
curt b7a91bdb03 Various tweaks for Irix. 2001-07-02 20:51:32 +00:00
curt e4bbc5c50b Fix a potential array under/over run bug. 2001-06-30 02:01:22 +00:00
curt b481ccd749 Tweaks to track changes in property manager. 2001-06-28 21:54:02 +00:00
curt e7b9e55599 - removed all reference to SGValue
- renamed UNKNOWN to UNSPECIED and setUnknownValue to
  setUnspecifiedValue
- modified routines to use 'read', 'write', and 'archive' attribute
  for access-mode attributes (only if non-default; they all default to
  'y')
- modified write routine to honour ARCHIVE attribute (won't write
  subtree if ARCHIVE is not set)
2001-06-28 21:53:46 +00:00
curt 05eaa7135f - made getValue methods protected, so that they won't be invoked outside
the class
- renamed UNKNOWN to UNSPECIED and setUnknownValue to
  setUnspecifiedValue
- added access-mode attributes
- added methods for setting and querying access-mode attributes
2001-06-28 21:53:34 +00:00
curt d063b319e8 - attempting to tie an aliased node now fails; the node must be
unaliased first
- renamed UNKNOWN to UNSPECIED and setUnknownValue to
  setUnspecifiedValue
- modified get*Value and set*Value methods to respect READ and WRITE
  attributes
2001-06-28 21:53:24 +00:00
curt be4fd56660 - added SGCommandState class so that commands can compile and save
copies of their arguments
- modified prototype for command functions -- they now take a pointer
  to a pointer of an SGCommandState object (which they will normally
  subclass) so that they can cache state between invocations
- commented out convenience execute methods until they're actually
  needed
2001-06-28 21:53:10 +00:00
curt a406a3c00b - added implementation of SGCommandState
- removed commented-out convenience execute methods
2001-06-28 21:53:01 +00:00
curt c7295da5eb Fixed a type conversion bug that could trip up some of the pickier compilers
out there.
2001-06-27 02:48:01 +00:00
curt 505f561e1c Added tr.cxx / tr.h, Brian Paul's LGPL'd tiled rendering support libs for
rendering ultra high res "tiled" screen shots.
2001-06-26 15:19:39 +00:00
curt 7bd8477fa1 Tweaks. 2001-06-20 18:35:42 +00:00
curt 36ef15940e Changes for 0.7.8 2001-06-20 18:12:18 +00:00
curt f2ba7aefa6 Need to include <simgear_config.h> to pick up the WIN32 definition. 2001-06-19 14:24:16 +00:00
curt 73b58b0e87 Updated for the 0.0.15 release. 2001-06-19 00:50:33 +00:00
curt 6ce4f096b2 #endif // __COMMANDS_HXX 2001-06-13 18:59:07 +00:00
curt 3e7ece7f5f #include <simgear/compiler.h> and adjust to fit the standard coding conventions
of this project.
2001-06-13 18:10:16 +00:00
curt 48a219473e Norman Vine optimizations. 2001-06-12 21:44:03 +00:00
curt 887ffd102f David patches. 2001-06-12 02:52:07 +00:00
curt b1a719dd4c - added SGPropertyNode::Type
- changed return type of SGPropertyNode::getType methods from
  SGValue::Type to SGPropertyNode::Type
- made SGPropertyNode::getValue and SGPropertyNode::hasValue private
  so that applications cannot get at SGValue instances (SGValue is
  slated for removal)
2001-06-12 02:49:32 +00:00
curt b4efe8f374 - added missing return statement for getAliasTarget
- changed SGValue::Type to SGPropertyNode::Type for all of
  SGPropertyNode
2001-06-12 02:48:24 +00:00
curt 03f844d4be - added missing return statements for execute methods 2001-06-12 02:44:40 +00:00
curt a212589865 Fixed a problem that could cause a divide by zero error during initialization.
Contributed by Durk Talsma.
2001-06-10 15:12:09 +00:00
curt 29dfc5bd3c Resolve a #define clash with the template argument LOCK. 2001-06-06 23:12:03 +00:00
curt a6ac06c47a Display a warning message for Irix users. 2001-06-06 21:27:38 +00:00
curt 4d914db1db - fixed XML syntax error with missing '"' for some attribute values
that was preventing fgfs save/restore from working
- ensured that aliases always appear standalone
2001-06-06 14:57:58 +00:00
curt 68572f106d Added support for #include STL_ITERATOR 2001-06-05 17:47:02 +00:00
curt c5ca4db94e Fixed a bug in star repainting optimization. 2001-06-02 04:21:04 +00:00
curt 3980f08cc5 Initial revsion of new command manager (contributed by David Megginson)
Fix to configure.in.
2001-06-01 15:28:49 +00:00
curt f93fa4b613 Detect Irix/CC compiler and substitute AR="CC -ar". 2001-06-01 15:13:04 +00:00
curt 06f2dba92c Norman Vine contributed an optimization to eliminate unnecessary color
recalculations.
2001-05-29 13:45:06 +00:00
curt 30a14741c9 gcc-3.0.x fixes. 2001-05-23 19:25:27 +00:00
curt 2f39b688f4 Added #include <config.h> 2001-05-18 19:06:26 +00:00