]> git.mxchange.org Git - simgear.git/log
simgear.git
18 years agoVassilii: help those
ehofman [Tue, 6 Dec 2005 18:45:14 +0000 (18:45 +0000)]
Vassilii: help those
using the Doxygen docs.

18 years agoMathias: silence some valgrind warnings so that you can concentrate better on the...
ehofman [Tue, 6 Dec 2005 18:29:28 +0000 (18:29 +0000)]
Mathias: silence some valgrind warnings so that you can concentrate better on the real problems.

19 years agoHow did this end up there??
ehofman [Sun, 27 Nov 2005 09:48:51 +0000 (09:48 +0000)]
How did this end up there??

19 years agoInitialize glut before using it.
ehofman [Sun, 27 Nov 2005 09:46:58 +0000 (09:46 +0000)]
Initialize glut before using it.

19 years agoMore WIN32 fixes.
ehofman [Wed, 23 Nov 2005 09:28:02 +0000 (09:28 +0000)]
More WIN32 fixes.

19 years agoOops, WIN32 typo fix.
ehofman [Tue, 22 Nov 2005 18:42:16 +0000 (18:42 +0000)]
Oops, WIN32 typo fix.

19 years ago* Use SimGear's logging facility isntead of printf's.
ehofman [Tue, 22 Nov 2005 18:03:26 +0000 (18:03 +0000)]
* Use SimGear's logging facility isntead of printf's.
* Hopefuly fix a nasty (mostly ATI related) bug.

19 years agoChanges for v0.3.9 (final).
curt [Thu, 17 Nov 2005 20:54:06 +0000 (20:54 +0000)]
Changes for v0.3.9 (final).

19 years agoAdd a small accessor function to expose local timezone offset.
curt [Thu, 17 Nov 2005 15:30:07 +0000 (15:30 +0000)]
Add a small accessor function to expose local timezone offset.

19 years agoFix a small spelling mistake.
curt [Tue, 15 Nov 2005 21:43:34 +0000 (21:43 +0000)]
Fix a small spelling mistake.

19 years agoRevert to the original (0.9.8) version, it causes more problems than it solves (did...
ehofman [Mon, 14 Nov 2005 18:25:17 +0000 (18:25 +0000)]
Revert to the original (0.9.8) version, it causes more problems than it solves (did actually solve any?)

19 years agoPut in public domain, Curtis wants it (because net_fdm.hxx depends on it) and I creat...
ehofman [Sun, 13 Nov 2005 09:42:38 +0000 (09:42 +0000)]
Put in public domain, Curtis wants it (because net_fdm.hxx depends on it) and I created the other functions.

19 years agoLet the application free the buffer data.
ehofman [Sat, 12 Nov 2005 12:22:23 +0000 (12:22 +0000)]
Let the application free the buffer data.

19 years agoPrevent a possible memory leak.
ehofman [Sat, 12 Nov 2005 12:17:04 +0000 (12:17 +0000)]
Prevent a possible memory leak.

19 years agoadd a missing character.
ehofman [Sat, 12 Nov 2005 10:55:22 +0000 (10:55 +0000)]
add a missing character.

19 years agoMake a clear separation between loading a sound file into main memroy and sending...
ehofman [Sat, 12 Nov 2005 10:26:21 +0000 (10:26 +0000)]
Make a clear separation between loading a sound file into main memroy and sending it to the driver. This prevents data to be loaded into the main memory (or onto the soundcard's memory) when it's not needed.

19 years agoExpose some internals.
ehofman [Fri, 11 Nov 2005 13:19:58 +0000 (13:19 +0000)]
Expose some internals.

19 years agov0.3.9-pre3 updates.
curt [Fri, 11 Nov 2005 00:44:59 +0000 (00:44 +0000)]
v0.3.9-pre3 updates.

19 years agoMSVC fix.
ehofman [Thu, 10 Nov 2005 09:57:58 +0000 (09:57 +0000)]
MSVC fix.

19 years agogcc 4.0 fix.
ehofman [Thu, 10 Nov 2005 09:55:57 +0000 (09:55 +0000)]
gcc 4.0 fix.

19 years agoArchitectural fix allowing the "tip" popups (FOV, view name, etc...)
andy [Wed, 9 Nov 2005 20:34:14 +0000 (20:34 +0000)]
Architectural fix allowing the "tip" popups (FOV, view name, etc...)
to pop themselves down while the simulator is paused.

The problem was with the "real time" queue in the event manager,
causing the third argument of Nasal's settimer() (a flag for "sim
time") to be ignored.  Inverts the default sense of the argument, as
there are lots of uses of settimer() in the current code, almost none
of which want to use real time.

Note this fix introduces a header file incompatibility in SimGear --
be sure to update.

19 years agov0.9.9-pre2 changes.
curt [Wed, 9 Nov 2005 18:47:40 +0000 (18:47 +0000)]
v0.9.9-pre2 changes.

19 years agov0.9.9-pre2 changes (just the version number!)
curt [Wed, 9 Nov 2005 18:41:49 +0000 (18:41 +0000)]
v0.9.9-pre2 changes (just the version number!)

19 years agoSpelling fixes and other small corrections.
curt [Sat, 5 Nov 2005 20:32:45 +0000 (20:32 +0000)]
Spelling fixes and other small corrections.

19 years agoSome pre-release updates.
curt [Sat, 5 Nov 2005 19:30:52 +0000 (19:30 +0000)]
Some pre-release updates.

19 years agoAdd a code comment for future thought.
curt [Sat, 5 Nov 2005 18:47:29 +0000 (18:47 +0000)]
Add a code comment for future thought.

19 years agoMove Curt's ssgEntityArray experiment over to SimGear.
ehofman [Tue, 1 Nov 2005 09:45:10 +0000 (09:45 +0000)]
Move Curt's ssgEntityArray experiment over to SimGear.

19 years agoRemove some unused code.
ehofman [Sun, 30 Oct 2005 15:02:58 +0000 (15:02 +0000)]
Remove some unused code.

19 years agoMathias Fröhlich:
ehofman [Thu, 27 Oct 2005 08:21:58 +0000 (08:21 +0000)]
Mathias Fröhlich:

I guess the most important memory leaks are plugged now.
Just by inspection: An other memory leak in Simgear.

19 years agoMSVC fix.
ehofman [Thu, 27 Oct 2005 08:21:00 +0000 (08:21 +0000)]
MSVC fix.

19 years agoBack out the shared mutex code since it only works when the mutex is in shared
ehofman [Wed, 26 Oct 2005 11:19:58 +0000 (11:19 +0000)]
Back out the shared mutex code since it only works when the mutex is in shared
memory[1], something we don't support anyhow.
This also fixes a FreeBSD compile problem.

[1] http://hypermail.linklord.com/new-httpd.old/2002/Jan/0557.html

19 years agoOops, ALUT 1.0 requires a little more work than expected.
ehofman [Tue, 25 Oct 2005 18:05:23 +0000 (18:05 +0000)]
Oops, ALUT 1.0 requires a little more work than expected.

19 years agoAlex Romosan:
ehofman [Tue, 25 Oct 2005 13:48:58 +0000 (13:48 +0000)]
Alex Romosan:

* Use "const string&" rather than "string" in function calls when appropriate.
* Use "const Point3D&" instead of "Pint3D" in function calls when appropriate.
* Improved course calculation in calc_gc_course_dist()
* Safer thread handling code.

Vassilii Khachaturov:

Dont use "const Point3D&" for return types unless you're absolutely sure.

Erik Hofman:

* Use SGD_(2)PI(_[24]) as defined in simgear/constants.h rather than
  calculating it by hand every time.

19 years agoPrepare for ALUT version 1.0
ehofman [Tue, 25 Oct 2005 13:06:25 +0000 (13:06 +0000)]
Prepare for ALUT version 1.0

19 years agoCosmetic updates.
ehofman [Sun, 23 Oct 2005 14:04:42 +0000 (14:04 +0000)]
Cosmetic updates.

19 years agoSlightly update the seasonal texture support code.
ehofman [Sun, 23 Oct 2005 13:47:46 +0000 (13:47 +0000)]
Slightly update the seasonal texture support code.

19 years agoAdd support for seasons.
ehofman [Sun, 23 Oct 2005 13:31:13 +0000 (13:31 +0000)]
Add support for seasons.

19 years agoMelchior FRANZ:
ehofman [Sun, 23 Oct 2005 11:55:48 +0000 (11:55 +0000)]
Melchior FRANZ:

The attached patch makes remove_child() available as removeChild(pos, keep).
That's consistent with getChild. Only renamed remove_child to removeChild and
added a check for validity of the pos argument.

removeChildren() will be used in input.cxx, and a lot in the upcoming
dynamic new_gui dialogs, which are aiming at replacing the hard-coded
dialogs. I'll discuss them on the list once the infrastructure is
in place. (The <hide> gui property was one part of it.)

19 years agoHarald JOHSEN: the sky color now fades to black with altitude
ehofman [Sun, 23 Oct 2005 11:46:41 +0000 (11:46 +0000)]
Harald JOHSEN: the sky color now fades to black with altitude

19 years agoRemove some dead code.
ehofman [Sat, 22 Oct 2005 11:07:00 +0000 (11:07 +0000)]
Remove some dead code.

19 years agoHarald JOHNSEN:
ehofman [Sun, 16 Oct 2005 17:23:59 +0000 (17:23 +0000)]
Harald JOHNSEN:

I have corrected a few bugs with the owner draw gauge, weather radar code and heat-haze effect.

- shadanim.cxx :
  the heat/haze effect was showing artifacts when using a screen resolution >
  1024 pixels.

19 years agoIma Sudonim remembered me there is still one problem for gcc Vs. 3.4 or later under...
ehofman [Sat, 15 Oct 2005 14:59:02 +0000 (14:59 +0000)]
Ima Sudonim remembered me there is still one problem for gcc Vs. 3.4 or later under Cygwin. This fixes it.

19 years agoFix memory leak discovered by Mathias Froehlich
andy [Fri, 14 Oct 2005 16:42:32 +0000 (16:42 +0000)]
Fix memory leak discovered by Mathias Froehlich

19 years agoMathias Fröhlich:
ehofman [Fri, 14 Oct 2005 16:27:06 +0000 (16:27 +0000)]
Mathias Fröhlich:

This one, removes some virtual qualifiers at a private member class of
SGPropertyNode. These virtual qualifiers are really useless and stop the
compiler from inlineing these functions. I gain a single frame with my
favourite aircraft per second!

19 years agoMathias Fröhlich:
ehofman [Fri, 14 Oct 2005 16:21:57 +0000 (16:21 +0000)]
Mathias Fröhlich:

I have done a valgrind run in flightgear. Just start it up and close it at the
fist change I had about half an hour later.

property-leak.diff:
   A leak in the property system which I could even notice in top.

texture-leak.diff:
    minor one, but fixed is fixed ...

19 years agoUse an unsigned vs. signed short to double our element capacity for higher
curt [Wed, 12 Oct 2005 16:43:26 +0000 (16:43 +0000)]
Use an unsigned vs. signed short to double our element capacity for higher
resolution scenery.

19 years agoMartin Spott:
ehofman [Wed, 12 Oct 2005 08:59:39 +0000 (08:59 +0000)]
Martin Spott:

make GCC on Solaris8 happy.

19 years agoFix a small typo.
curt [Tue, 11 Oct 2005 18:56:45 +0000 (18:56 +0000)]
Fix a small typo.

19 years agoDavid Luff:
ehofman [Sun, 9 Oct 2005 09:37:35 +0000 (09:37 +0000)]
David Luff:

The following patch needs to be applied to fix the errors that Georg
Vollnhals was getting whilst attempting to compile SimGear with gcc-3.4.x

19 years agoHarald JOHNSEN:
ehofman [Sat, 8 Oct 2005 11:52:48 +0000 (11:52 +0000)]
Harald JOHNSEN:

- shadanim.cxx, animation.hxx :
  new chrome (sphere mapping) shading ;
  disabled the loading of the fresnel VP until it is fixed ;

19 years agoAnother Solaris fix.
ehofman [Thu, 6 Oct 2005 14:39:12 +0000 (14:39 +0000)]
Another Solaris fix.

19 years agoMartin Spott: Use standardized Sun directive.
ehofman [Thu, 6 Oct 2005 11:06:27 +0000 (11:06 +0000)]
Martin Spott: Use standardized Sun directive.

19 years agoMSYS fix.
ehofman [Thu, 6 Oct 2005 09:45:36 +0000 (09:45 +0000)]
MSYS fix.

19 years agoMSVC fixes. Frederic: MSVC has no ssize_t type
ehofman [Thu, 6 Oct 2005 08:25:14 +0000 (08:25 +0000)]
MSVC fixes. Frederic: MSVC has no ssize_t type

19 years agoRemove a leftover.
ehofman [Tue, 4 Oct 2005 11:49:24 +0000 (11:49 +0000)]
Remove a leftover.

19 years agoCygwin fixes(?), it's a good idea to do it this way anyhow.
ehofman [Sat, 1 Oct 2005 11:41:59 +0000 (11:41 +0000)]
Cygwin fixes(?), it's a good idea to do it this way anyhow.

19 years agoCygwin fixes.
ehofman [Thu, 29 Sep 2005 12:05:22 +0000 (12:05 +0000)]
Cygwin fixes.

19 years agoFix an oops.
ehofman [Wed, 28 Sep 2005 08:03:44 +0000 (08:03 +0000)]
Fix an oops.

19 years agoBack out a patch from Sept. 25th. Setting the *factor* to 0.0 by default isn't genera...
ehofman [Wed, 28 Sep 2005 08:00:33 +0000 (08:00 +0000)]
Back out a patch from Sept. 25th. Setting the *factor* to 0.0 by default isn't generally a good idea.

19 years agoMake some adjustment to low level serial port configuration flags for unix.
curt [Mon, 26 Sep 2005 21:01:17 +0000 (21:01 +0000)]
Make some adjustment to low level serial port configuration flags for unix.

19 years agoVivian Meazza:
ehofman [Sun, 25 Sep 2005 07:44:50 +0000 (07:44 +0000)]
Vivian Meazza:

Correct the bug in the translate animation where the offset was part of the
multiplication. It now behaves like all other animations:
out = (prop * factor) + offset

I feel strongly that the existing is wrong and must be corrected - it is non-op
if the offset is zero as I have found to my cost! It is just a typo I expect.

The diff also provides non-op default values for the scale animation.

I've also included Harald's latest eye-candy animation which allows us to
have a very smart heat-haze for exhausts. They have been tested by me and
others on Linux and Cygwin. You might like to upload these - I have a
revised Hunter ready to go as soon as they are uploaded.

19 years agoAdd eof() support to SGIOChannel/SGFile.
curt [Sat, 24 Sep 2005 12:28:14 +0000 (12:28 +0000)]
Add eof() support to SGIOChannel/SGFile.

19 years agoAdd an eof() method to SGFile.
curt [Fri, 23 Sep 2005 20:13:43 +0000 (20:13 +0000)]
Add an eof() method to SGFile.

19 years agoAMD64 and sgi fixes.
ehofman [Fri, 23 Sep 2005 12:30:25 +0000 (12:30 +0000)]
AMD64 and sgi fixes.

19 years agoPlatform compatibility fix.
ehofman [Thu, 22 Sep 2005 13:43:09 +0000 (13:43 +0000)]
Platform compatibility fix.

19 years agoAdd some linefeeds.
ehofman [Thu, 22 Sep 2005 09:15:10 +0000 (09:15 +0000)]
Add some linefeeds.

19 years agoCreate our own stdint.h(xx) implementation and use it where needed.
ehofman [Thu, 22 Sep 2005 09:11:27 +0000 (09:11 +0000)]
Create our own stdint.h(xx) implementation and use it where needed.

19 years agoPrepare for Openal 1.1 and a separate alut library
ehofman [Wed, 21 Sep 2005 09:22:51 +0000 (09:22 +0000)]
Prepare for Openal 1.1 and a separate alut library

19 years agoOops, Frederic caught an inline declaration that had snuck into the code.
andy [Tue, 20 Sep 2005 21:38:08 +0000 (21:38 +0000)]
Oops, Frederic caught an inline declaration that had snuck into the code.

19 years agoSneak a Nasal update in before the next release. This version
andy [Tue, 20 Sep 2005 21:09:34 +0000 (21:09 +0000)]
Sneak a Nasal update in before the next release.  This version
*appears* to work correctly on all systems to which I have access
(i386 linux/win32, x86_64 linux, powerpc OS X, Sparc Solaris 10), but
not all systems are capable of running fgfs.  Beyond that, multiple
threading bugs were fixed, and the naCall() API changed slightly to
support named function arguments.

NOTE: this introduces a change in the external API, and therefore this
change *must* be compiled against current FlightGear code.

19 years agoDon't refference simgear_config.h because this header gets installed :-(
ehofman [Sun, 18 Sep 2005 21:05:04 +0000 (21:05 +0000)]
Don't refference simgear_config.h because this header gets installed :-(

19 years agoint64_t is in stdint.h by default.
ehofman [Sun, 18 Sep 2005 09:21:54 +0000 (09:21 +0000)]
int64_t is in stdint.h by default.

19 years agoMSVC fix.
ehofman [Sun, 18 Sep 2005 09:19:07 +0000 (09:19 +0000)]
MSVC fix.

19 years agoUse inttypes.h specified types. This is the standard and fixes some 64-bit problems.
ehofman [Thu, 15 Sep 2005 17:06:31 +0000 (17:06 +0000)]
Use inttypes.h specified types. This is the standard and fixes some 64-bit problems.

19 years agoBetter XML error catching, proposed by Richard Harrison.
ehofman [Thu, 15 Sep 2005 16:54:27 +0000 (16:54 +0000)]
Better XML error catching, proposed by Richard Harrison.

19 years agoVivian Meazza:
ehofman [Mon, 5 Sep 2005 13:30:38 +0000 (13:30 +0000)]
Vivian Meazza:

After much trial and tribulation, Harald came up with a fix for the bug
which has been plaguing Cygwin for a couple of weeks now.

It's only a couple of lines. I've tested it exhaustively, and it seems to
cure the problem of Cygwin failing to start.

19 years agoMathias Fröhlich:
ehofman [Mon, 5 Sep 2005 13:23:55 +0000 (13:23 +0000)]
Mathias Fröhlich:

There was a patch from Manuel Masing a few months ago which cleaned up
SGLocation's way depending on input values. That means that with that patch
SGLocation does no longer have calls with unneeded input arguments.
I took his patch and integrated that into flightgear and made maximum use of
that changes.

19 years agoMathias Fröhlich:
ehofman [Mon, 5 Sep 2005 09:02:56 +0000 (09:02 +0000)]
Mathias Fröhlich:

just a few split out patches from my zoo of local work ...

The patch to simgear-glxproc.diff changes dlopen to not open a specific library.
If it is used with a NULL argument, we just get a handle to the current running
binary including all loaded libraries. This has the advantage that we do not
rely on the name of libGL on the specific platform.
Also a user can link with his own different named libGL or with a static libGL.a

Then the render texture again ...

glxQueryVersion turns out to return the  minimum of the client libraries glx
version and the servers glx version. *All* Xorg servers return 1.2 here.
So we never get the glxPBuffer functions  which are the only ones working with
ati's drivers ...
Reverted back to checking the required functions and just use them if they are
there. Still prefering the glx standard variants since they work on ati's
drivers ...

19 years agoAdd some more defines as specified in FlightGear/src/Network/net_fdm_mini.hxx
ehofman [Mon, 5 Sep 2005 08:22:30 +0000 (08:22 +0000)]
Add some more defines as specified in FlightGear/src/Network/net_fdm_mini.hxx

19 years agoMac OS X fixes from Markus Morawitz
ehofman [Mon, 5 Sep 2005 08:17:37 +0000 (08:17 +0000)]
Mac OS X fixes from Markus Morawitz
stdint.h replacement defines for Windows and Sun from Frederic et all.

19 years agoHarald JOHNSEN:
ehofman [Mon, 22 Aug 2005 17:44:35 +0000 (17:44 +0000)]
Harald JOHNSEN:

- model.cxx :
  load the 2.5D panels before the animations so that the panels can be used in
  animations his solve the problem of 2.5D panels visible outside of the
  aircraft (one can add a null animation to put the panel at the top of the
  aircraft graph so it is drawn first) and this adds the possibility to have
  billboarded/popup panels.

- newcloud.cxx :
  removed 'this' pointer cast for amd64 compiler.

19 years agoCygwin fix.
ehofman [Wed, 10 Aug 2005 08:04:39 +0000 (08:04 +0000)]
Cygwin fix.

19 years agoHarald JOHNSEN:
ehofman [Sun, 31 Jul 2005 08:56:27 +0000 (08:56 +0000)]
Harald JOHNSEN:

added a cull test on fields

19 years agoFix a problem with systems that don't define GLXPbufferSGIX or GLXFBConfigSGIX
ehofman [Sun, 31 Jul 2005 08:46:37 +0000 (08:46 +0000)]
Fix a problem with systems that don't define GLXPbufferSGIX or GLXFBConfigSGIX

19 years agoHarald JOHNSEN:
ehofman [Sun, 31 Jul 2005 07:59:08 +0000 (07:59 +0000)]
Harald JOHNSEN:

This is the low level shader class for Simgear.
It's the code from Roman Grigoriev with a few adaptations.

19 years agoMacOS-X fixes.
ehofman [Wed, 27 Jul 2005 08:02:11 +0000 (08:02 +0000)]
MacOS-X fixes.

19 years agoJosh discovered a bug parsing negative numbers with leading zeros
andy [Thu, 21 Jul 2005 23:03:26 +0000 (23:03 +0000)]
Josh discovered a bug parsing negative numbers with leading zeros
("-0.3") which also affected ones of the form "-.3".  This got
introduced a few months back, I'm not sure how it went undetected for
so long...

19 years agoHarald JOHSEN:
ehofman [Mon, 18 Jul 2005 16:57:20 +0000 (16:57 +0000)]
Harald JOHSEN:

Changes
=======

- shadowvolume.cxx, renderer.cxx :
  - reduced the polygon offset a bit to eliminate some artifact ;
  - changed again the cleanup code for objects inside a tile because it could crash on rare occasion ;
  - the culling of shadow casters has been rewritten to traverse the scene graph, it should be
    a bit faster when there is a lot of objects ;
  - the range selector was not correctly handled, sometimes the wrong LOD was casting shadows.
  - added the option to display aircraft's transparent objects after the shadows, this will
    reduce the problem of shadows being hidden by the transparent object (propeller disk,
    rotor, etc). A side effect is that aircraft's transparent objects won't receive shadows
    anymore. This is usually a good thing except when the aircraft use a 'transparent'
    texture where it should not. A transparent texture in the plib context is a texture
    with an alpha channel or a material with alpha <= 0.99.

- model.cxx, animation.cxx, shadowvolume.cxx :
  - added an optional <condition> under the <noshadow> animation

- tower.cxx
  - correct a rare bug where all occurences of the aircraft are not deleted from the
  departure list causing a crash in FGTower::CheckDepartureList function.

19 years agoAdjustments to better support GLX1.3 and ATI drivers.
ehofman [Wed, 13 Jul 2005 12:00:30 +0000 (12:00 +0000)]
Adjustments to better support GLX1.3 and ATI drivers.

19 years agoHarald JOHNSEN:
ehofman [Wed, 6 Jul 2005 08:44:25 +0000 (08:44 +0000)]
Harald JOHNSEN:

Melchior has found another bug, I tried to skip some computation for a few
frames but that introduced some bad rendering bug with the aircraft moving
parts.
I corrected that and reduced a bit the cpu usage for ground objects.

19 years agoAnother update, the previous one could crash if you leave the surrounding tiles ...
ehofman [Tue, 5 Jul 2005 18:53:16 +0000 (18:53 +0000)]
Another update, the previous one could crash if you leave the surrounding tiles (try Set aircraft in air and choose a distant airport).

19 years agoSomehow gcc allows function overriding but MIPSpro doesn't. Fix this.
ehofman [Tue, 5 Jul 2005 18:00:58 +0000 (18:00 +0000)]
Somehow gcc allows function overriding but MIPSpro doesn't. Fix this.

19 years agoHarald JOHNSEN:
ehofman [Tue, 5 Jul 2005 17:08:27 +0000 (17:08 +0000)]
Harald JOHNSEN:

- shadow volume vertex are now shared, using DrawElements instead of repeated
  calls to glVertex, this can improve performance on some systems.
- added a rendering path that use the alpha channel instead of the stencill
  buffer.
- releasing memory when tiles objects are destroyed
- objects sub parts will not cast shadows if their name begins with "noshadow"
  or if they are in a <noshadow> animation

- bbcache.cxx :
   don't ask for a 32 bits context when the primary context is only 16 bits

- RenderTexture.cpp :
   corrected a crash when asking for a second rendering context
   on win32 and extensions not being supported

- model.cxx, animation.cxx :
   added a <noshadow> animation, added an animation type needed by the shadow
   code.

19 years agoMake sure it works with the lates version of OpenAL.
ehofman [Mon, 4 Jul 2005 09:20:11 +0000 (09:20 +0000)]
Make sure it works with the lates version of OpenAL.

19 years agoRestore the old behavior. Additions are likely.
ehofman [Thu, 30 Jun 2005 19:10:18 +0000 (19:10 +0000)]
Restore the old behavior. Additions are likely.

19 years agoMelchior FRANZ:
ehofman [Wed, 29 Jun 2005 09:41:07 +0000 (09:41 +0000)]
Melchior FRANZ:

- check for isTied() and refcount has to be made *before* we go into
  recursion, so as to pertain subtrees of refcounted nodes, even if there
  are no refcounted/tied nodes *in* this tree
- return value inverted, because it's more logical to say
  removeChildren() == true --> everything removed;  false --> failed
- further cleanup

19 years agoFrederic: Also copy the attributes over to the new tree.
ehofman [Tue, 28 Jun 2005 11:19:41 +0000 (11:19 +0000)]
Frederic: Also copy the attributes over to the new tree.

19 years agoDue to a misunderstanding of what removeChild() actually does, some used it to detach...
ehofman [Tue, 28 Jun 2005 11:19:09 +0000 (11:19 +0000)]
Due to a misunderstanding of what removeChild() actually does, some used it to detach a subtree from the main tree. The previous patch broke that behaviour so a new function call detchChild() is now added.

19 years agofix return value
ehofman [Mon, 27 Jun 2005 17:48:13 +0000 (17:48 +0000)]
fix return value

19 years agoMelchior FRANZ:
ehofman [Mon, 27 Jun 2005 13:49:28 +0000 (13:49 +0000)]
Melchior FRANZ:

- introduce removeChildren() and removeChildren(name)  to remove all children
  or all with a given name
- let removeChild() and removeChildren() also remove child trees, and let them
  return a "dirty" boolean that indicates if one or more subnodes had to be
  kept because of refcounting (removeChild returned a SGPropertyNode_ptr before)
- make alias/unalias increase/decrease the refcounter
- don't remove refcounted or tied nodes

This patch makes the SGPropertyNode_ptr actually useful. Until today, they did
proper refcounting (except for aliases), but no other part did check this counter.

But SGPropertyNode_ptr aren't only useful for the first time, they are now
highly recommended for every place that relies on a node address, and wants
to "lock" it (so that removeChild(ren) will never try to remove them). This
is not guaranteed for SGPropertyNode* (and never was). Of course, that's not
an imminent problem, as only four places currently use removeChild(ren) and
these are careful to only remove their own data.