]> git.mxchange.org Git - simgear.git/log
simgear.git
10 years agoFix headless build and reduce include dependencies.
Thomas Geymayer [Wed, 4 Jun 2014 00:46:57 +0000 (02:46 +0200)]
Fix headless build and reduce include dependencies.

10 years agoTrying to fix problems retrieving static member address with old compilers.
Thomas Geymayer [Wed, 4 Jun 2014 00:45:52 +0000 (02:45 +0200)]
Trying to fix problems retrieving static member address with old compilers.

10 years agoFix for old versions of Boost.
Thomas Geymayer [Tue, 3 Jun 2014 18:34:21 +0000 (20:34 +0200)]
Fix for old versions of Boost.

No support for BOOST_STATIC_ASSERT_MSG before Boost 1.46.

10 years agocppbind::Ghost: safely use strong and weak references.
Thomas Geymayer [Tue, 3 Jun 2014 07:55:32 +0000 (09:55 +0200)]
cppbind::Ghost: safely use strong and weak references.

Allow using strong and weak references within the same
class hierarchy and seemlessly convert between them -
from and to Nasal.

10 years agoSGSharedPtr: add constructor to convert from SGWeakPtr.
Thomas Geymayer [Mon, 2 Jun 2014 23:58:57 +0000 (01:58 +0200)]
SGSharedPtr: add constructor to convert from SGWeakPtr.

10 years agoPackage::match case-insensitive string comparison
James Turner [Sun, 1 Jun 2014 10:35:26 +0000 (11:35 +0100)]
Package::match case-insensitive string comparison

10 years agoSubstring search of package name/description.
James Turner [Sun, 1 Jun 2014 10:28:10 +0000 (11:28 +0100)]
Substring search of package name/description.

Note this only searches the current locale, should potentially also
search the default locale too.

10 years agoMissing return statement
Thomas Geymayer [Sun, 1 Jun 2014 10:14:31 +0000 (12:14 +0200)]
Missing return statement

10 years agoFix wrong include guard (identified by clang)
Thomas Geymayer [Sun, 1 Jun 2014 10:11:35 +0000 (12:11 +0200)]
Fix wrong include guard (identified by clang)

10 years agoCanvas/Layout: tweak the way elements are exposed to Nasal.
Thomas Geymayer [Sun, 1 Jun 2014 10:00:33 +0000 (12:00 +0200)]
Canvas/Layout: tweak the way elements are exposed to Nasal.

10 years agoCanvas: fix possible crash with destroyed canvasses
Thomas Geymayer [Sun, 1 Jun 2014 10:00:07 +0000 (12:00 +0200)]
Canvas: fix possible crash with destroyed canvasses

10 years agoCanvas: trigger immediate update from property tree/Nasal.
Thomas Geymayer [Sun, 1 Jun 2014 09:58:46 +0000 (11:58 +0200)]
Canvas: trigger immediate update from property tree/Nasal.

10 years agoAdd installedPackages() to Catalog.
James Turner [Sat, 31 May 2014 17:00:38 +0000 (18:00 +0100)]
Add installedPackages() to Catalog.

10 years agoUpdate package classes ownership model.
James Turner [Sat, 31 May 2014 15:46:49 +0000 (16:46 +0100)]
Update package classes ownership model.

Use SGReferences as the base for package classes, so they can be
exposed directly to Nasal by cppbind.

10 years agoCanvas: basic layouting system.
Thomas Geymayer [Sat, 31 May 2014 00:40:59 +0000 (02:40 +0200)]
Canvas: basic layouting system.

Support for vertical and horizontal layouts. More layouts and
widgets can be created using Nasal.

10 years agoSky dome: remove unused variables/code.
Thomas Geymayer [Fri, 30 May 2014 22:09:56 +0000 (00:09 +0200)]
Sky dome: remove unused variables/code.

10 years agocppbind: use Hash iterators to extract simgear::Map
Thomas Geymayer [Fri, 30 May 2014 21:59:36 +0000 (23:59 +0200)]
cppbind: use Hash iterators to extract simgear::Map

10 years agoFix for clang/template dependent name lookup.
Thomas Geymayer [Fri, 30 May 2014 21:57:55 +0000 (23:57 +0200)]
Fix for clang/template dependent name lookup.

Thanks to James & Nicholas...

10 years agoCanvas: allow dispatching events to Canavs itself
Thomas Geymayer [Thu, 29 May 2014 14:34:33 +0000 (16:34 +0200)]
Canvas: allow dispatching events to Canavs itself

10 years agocppbind: some new methods and safer type check.
Thomas Geymayer [Thu, 29 May 2014 14:29:02 +0000 (16:29 +0200)]
cppbind: some new methods and safer type check.

10 years agonasal::Hash: add iterators.
Thomas Geymayer [Thu, 29 May 2014 12:14:52 +0000 (14:14 +0200)]
nasal::Hash: add iterators.

10 years agoPropertyBasedElement: extend HTML5 (Canvas) data props interface
Thomas Geymayer [Wed, 28 May 2014 22:29:12 +0000 (00:29 +0200)]
PropertyBasedElement: extend HTML5 (Canvas) data props interface

Allow check if property exists and removing properties.

10 years agoUpdate doxgen config and some comments.
Thomas Geymayer [Wed, 28 May 2014 22:27:50 +0000 (00:27 +0200)]
Update doxgen config and some comments.

10 years agocanvas::Element: setter/getter for HTML5 style data-* properties.
Thomas Geymayer [Wed, 28 May 2014 16:09:34 +0000 (18:09 +0200)]
canvas::Element: setter/getter for HTML5 style data-* properties.

10 years agocanvas: exclude data-* properties from triggering an update.
Thomas Geymayer [Tue, 27 May 2014 15:54:37 +0000 (17:54 +0200)]
canvas: exclude data-* properties from triggering an update.

Allows using data-* properties on canvas and elements,
similar to HTML5, without triggering a new rendering of
the canvas.

10 years agoShivaVG: get rid of glu dependency.
Thomas Geymayer [Tue, 27 May 2014 15:50:49 +0000 (17:50 +0200)]
ShivaVG: get rid of glu dependency.

We do not use the image rendering part anyhow, so
just disable it for now. If we want to use it we
will need a modified implementation anyhow to
integrate with OpenSceneGraph threaded OpenGL
resource management.

10 years agoFix bad Nasal parse of ‘foo[]’.
James Turner [Tue, 27 May 2014 09:05:17 +0000 (10:05 +0100)]
Fix bad Nasal parse of ‘foo[]’.

When a vector subscript is empty, don’t parse it as ‘[foo]’, instead
print a parse error.

Fix by Nicholas Scheel & Thomas Geymayer.

10 years agoCanvas: support for custom events and event dispatching.
Thomas Geymayer [Sun, 18 May 2014 11:29:48 +0000 (13:29 +0200)]
Canvas: support for custom events and event dispatching.

10 years agocppbind.Ghost: more member overloads.
Thomas Geymayer [Sun, 18 May 2014 21:54:59 +0000 (23:54 +0200)]
cppbind.Ghost: more member overloads.

10 years agoEnable dynamic linking on Mac for Boost.Test
Thomas Geymayer [Sun, 18 May 2014 15:46:50 +0000 (17:46 +0200)]
Enable dynamic linking on Mac for Boost.Test

10 years agocppbind.Ghost: clean up a bit
Thomas Geymayer [Sun, 18 May 2014 14:24:24 +0000 (16:24 +0200)]
cppbind.Ghost: clean up a bit

10 years agocppbind: convert maps from nasal.
Thomas Geymayer [Sun, 18 May 2014 11:33:10 +0000 (13:33 +0200)]
cppbind: convert maps from nasal.

10 years agocppbind.Ghost: register _get called on retrieving unset member.
Thomas Geymayer [Sun, 18 May 2014 11:31:31 +0000 (13:31 +0200)]
cppbind.Ghost: register _get called on retrieving unset member.

Allow registering a callback on ghosts called upon retrieving
an unset member.

10 years agocppbind: from_nasal/to_nasal for SGWeakReferenced based objects
Thomas Geymayer [Sat, 10 May 2014 08:36:13 +0000 (10:36 +0200)]
cppbind: from_nasal/to_nasal for SGWeakReferenced based objects

10 years agoCanvas: move window from flightgear.
Thomas Geymayer [Fri, 9 May 2014 14:01:25 +0000 (16:01 +0200)]
Canvas: move window from flightgear.

10 years agoSGWeakReferenced: fix for clang.
Thomas Geymayer [Fri, 9 May 2014 09:52:42 +0000 (11:52 +0200)]
SGWeakReferenced: fix for clang.

10 years agoFix for CMake 2.6
Thomas Geymayer [Thu, 8 May 2014 09:17:06 +0000 (11:17 +0200)]
Fix for CMake 2.6

No named arguments for add_test in CMake 2.6.

10 years agoAdd smart pointer tests (finally using Boost.Test)
Thomas Geymayer [Thu, 8 May 2014 00:02:36 +0000 (02:02 +0200)]
Add smart pointer tests (finally using Boost.Test)

10 years agoFix use count for deleted, reference counted objects.
Thomas Geymayer [Wed, 7 May 2014 23:42:25 +0000 (01:42 +0200)]
Fix use count for deleted, reference counted objects.

Remove inconsitency of returning 0 or ~0. If the object
has been deleted there are no more references, so always
return 0.

10 years agoAdd support for using SGWeakPtr with virtual base classes.
Thomas Geymayer [Wed, 7 May 2014 22:19:36 +0000 (00:19 +0200)]
Add support for using SGWeakPtr with virtual base classes.

 - Add SGVirtualWeakReferenced to be used as base class
   for reference counted objects supporting weak references
   and virtual base classes.
 - Modify SGWeakPtr to copy with SGVirtualWeakReferenced
   objects.

10 years agoCanvas: base Elements/Canvas on SGWeakReferenced.
Thomas Geymayer [Tue, 6 May 2014 16:07:23 +0000 (18:07 +0200)]
Canvas: base Elements/Canvas on SGWeakReferenced.

10 years agocppbind: add naContext/naRef overload to Ghost::_set
Thomas Geymayer [Tue, 6 May 2014 14:11:13 +0000 (16:11 +0200)]
cppbind: add naContext/naRef overload to Ghost::_set

10 years agoSGSharedPtr/SGWeakPtr: add some methods/operators
Thomas Geymayer [Tue, 6 May 2014 14:06:33 +0000 (16:06 +0200)]
SGSharedPtr/SGWeakPtr: add some methods/operators

 - allow placing SGWeakPtr in sorted STL containers (eg. requiring
   operator<)
 - add reset() like for boost::shared_ptr/boost::weak_ptr
 - add helper to extract pointer from SGWeakPtr

10 years agocppbind: small logging/warning updates.
Thomas Geymayer [Mon, 5 May 2014 12:51:33 +0000 (14:51 +0200)]
cppbind: small logging/warning updates.

10 years agocppbind.Ghost: register _set called on setting new properties.
Thomas Geymayer [Mon, 5 May 2014 12:49:50 +0000 (14:49 +0200)]
cppbind.Ghost: register _set called on setting new properties.

10 years agocppbind: disable special handling of 'parents' for ghost.
Thomas Geymayer [Mon, 5 May 2014 12:48:29 +0000 (14:48 +0200)]
cppbind: disable special handling of 'parents' for ghost.

10 years agoNasal: allow ghost as 'me' for 'call'
Thomas Geymayer [Mon, 5 May 2014 12:47:10 +0000 (14:47 +0200)]
Nasal: allow ghost as 'me' for 'call'

10 years agofix for sgGetBuckets. Northern most buckets in the bounding box were left out
Peter Sadrozinski [Wed, 16 Apr 2014 14:18:13 +0000 (10:18 -0400)]
fix for sgGetBuckets.  Northern most buckets in the bounding box were left out

10 years agomath/nasal: Add more SGRect members and nasal helper.
Thomas Geymayer [Tue, 15 Apr 2014 08:04:37 +0000 (10:04 +0200)]
math/nasal: Add more SGRect members and nasal helper.

10 years agofix windows build
Peter Sadrozinski [Sun, 6 Apr 2014 16:14:44 +0000 (12:14 -0400)]
fix windows build

10 years ago- secondary tc and vertex attribs in .btg file
Peter Sadrozinski [Sat, 11 Jan 2014 03:42:16 +0000 (22:42 -0500)]
- secondary tc and vertex attribs in .btg file
- decrease debug when writing btg files
- deprecate some set_xxx apis

10 years agoFixed for FreeBSD
James Turner [Thu, 3 Apr 2014 12:42:11 +0000 (13:42 +0100)]
Fixed for FreeBSD

(From Gerald Laplanche)

10 years agoCanvas::Path: also restore glBlendFunc.
Thomas Geymayer [Tue, 1 Apr 2014 10:35:43 +0000 (12:35 +0200)]
Canvas::Path: also restore glBlendFunc.

10 years agoCanvas::Path: reduce number of OpenGL state changes.
Thomas Geymayer [Tue, 1 Apr 2014 10:03:53 +0000 (12:03 +0200)]
Canvas::Path: reduce number of OpenGL state changes.

 - Do not enable any multisampling as for FBOs it is not
   supported anyhow.
 - Just restore GL_BLEND and GL_STENCIL_TEST manually
   => Getting rid of the huge load of glPushAttrib/glPopAttrib
      gets us a huge performance boost, especially for drivers
      with slow state stack implementations.

10 years agocppbind: fix testing for naRef identity.
Thomas Geymayer [Mon, 31 Mar 2014 12:21:21 +0000 (14:21 +0200)]
cppbind: fix testing for naRef identity.

10 years agoCanvas: do not write bounding box to property tree.
Thomas Geymayer [Mon, 31 Mar 2014 11:24:33 +0000 (13:24 +0200)]
Canvas: do not write bounding box to property tree.

 - Prevent writing to property tree in wrong thread.
 - Add Element::getBoundingBox and
   Element::getTightBoundingBox as uniform way to
   retrieve bounding boxes of all canvas elements.
 - Update path bounding boxe in update traversal.

10 years agonasal::Ghost: remove bogus warning.
Thomas Geymayer [Thu, 27 Mar 2014 11:09:05 +0000 (12:09 +0100)]
nasal::Ghost: remove bogus warning.

10 years agoShivaVG: disable paint textures (Fixes #1414)
Thomas Geymayer [Thu, 27 Mar 2014 10:20:38 +0000 (11:20 +0100)]
ShivaVG: disable paint textures (Fixes #1414)

Currently there is no need for paint textures so just
disable them to prevent releasing OpenGL resources
from the wrong context/thread.

10 years agoRevert "CanvasGroup: return empty bounding box without children."
Thomas Geymayer [Sun, 23 Mar 2014 16:01:02 +0000 (17:01 +0100)]
Revert "CanvasGroup: return empty bounding box without children."

Returning somehow valid data in case it is used unchecked was
probably not a good idea. Better fix the code using it^^

This fixes #1421.

This reverts commit 3525fff8d079538cb36c506b01fdb10128f7c187.

10 years agocppbind: fix problem with function call without arguments.
Thomas Geymayer [Sat, 22 Mar 2014 12:23:21 +0000 (13:23 +0100)]
cppbind: fix problem with function call without arguments.

10 years agocppbind: allow calling methods with 'me' object from C++.
Thomas Geymayer [Sat, 22 Mar 2014 11:31:03 +0000 (12:31 +0100)]
cppbind: allow calling methods with 'me' object from C++.

10 years agoCanvasImage: rename 'file' to 'src'.
Thomas Geymayer [Thu, 20 Mar 2014 10:42:02 +0000 (11:42 +0100)]
CanvasImage: rename 'file' to 'src'.

10 years agoCanvasImage: improve fetching from http and add mime detection.
Thomas Geymayer [Thu, 20 Mar 2014 00:44:31 +0000 (01:44 +0100)]
CanvasImage: improve fetching from http and add mime detection.

10 years agoCanvas: Respect clipping while event handling.
Thomas Geymayer [Wed, 19 Mar 2014 17:21:25 +0000 (18:21 +0100)]
Canvas: Respect clipping while event handling.

10 years agoCanvasGroup: return empty bounding box without children.
Thomas Geymayer [Wed, 19 Mar 2014 15:31:17 +0000 (16:31 +0100)]
CanvasGroup: return empty bounding box without children.

Return an invalid bounding box can lead to problems
if used unchecked. Just returning an empty bounding
box (size 0x0 and position at the origin of the
element) is much safer.

10 years agoCanvasImage: support for http protocol.
Thomas Geymayer [Tue, 18 Mar 2014 17:33:44 +0000 (18:33 +0100)]
CanvasImage: support for http protocol.

 - Download and display images.

10 years agoFix detection of airports in the stg loader.
Mathias Froehlich [Mon, 25 Feb 2013 18:36:54 +0000 (19:36 +0100)]
Fix detection of airports in the stg loader.

10 years agoCanvas: fix position for drag events and multiclick handling.
Thomas Geymayer [Sat, 15 Mar 2014 13:39:23 +0000 (14:39 +0100)]
Canvas: fix position for drag events and multiclick handling.

 - Calculate local/client position for every drag event
   instead of just reporting the position of the initial
   mousedown event.
 - Only pressing the same button multiple times increases
   the mouse clickcount.

10 years agoCanvas: set button for drag events.
Thomas Geymayer [Fri, 14 Mar 2014 23:40:48 +0000 (00:40 +0100)]
Canvas: set button for drag events.

10 years agoDon't leak cube-map textures
James Turner [Thu, 13 Mar 2014 22:16:58 +0000 (22:16 +0000)]
Don't leak cube-map textures

- use observer_ptr so cube-map textures are released without the
builder holing a ref.

10 years agoFix leak of object-mask textures
James Turner [Thu, 13 Mar 2014 22:16:00 +0000 (22:16 +0000)]
Fix leak of object-mask textures

10 years agoPartial fix of #1408, add missing throw
Torsten Dreyer [Wed, 12 Mar 2014 20:10:14 +0000 (21:10 +0100)]
Partial fix of #1408, add missing throw

10 years agocppbind: Do not derive from SGReferenced if there is no need
Thomas Geymayer [Wed, 12 Mar 2014 16:39:05 +0000 (17:39 +0100)]
cppbind: Do not derive from SGReferenced if there is no need

10 years agocppbind: fix possible usage of expired object from Nasal
Thomas Geymayer [Tue, 11 Mar 2014 14:36:57 +0000 (15:36 +0100)]
cppbind: fix possible usage of expired object from Nasal

10 years agoSimplify copyProperties
James Turner [Tue, 11 Mar 2014 08:32:33 +0000 (08:32 +0000)]
Simplify copyProperties

- with initial-state save/restore gone, all uses of
copyProperties are now simple. For selective copying, use
copyPropertiesWithAttribute.

10 years agoSGPropertyNode: do not keep list of deleted children.
Thomas Geymayer [Wed, 5 Mar 2014 23:29:55 +0000 (00:29 +0100)]
SGPropertyNode: do not keep list of deleted children.

Get rid of the possibilty to keep delted children. This was not
used actively, required unnecessary memory for each property node
and lead to subtile bugs, as creating a node after a node with
the same path has been deleted resulted in getting the old node
back instead of a cleanly initialized one.

10 years agoRemove unused cube-map from 2D clouds.
James Turner [Wed, 5 Mar 2014 14:42:29 +0000 (14:42 +0000)]
Remove unused cube-map from 2D clouds.

10 years agoVBO switch also controls random-buildings.
James Turner [Wed, 5 Mar 2014 10:20:48 +0000 (10:20 +0000)]
VBO switch also controls random-buildings.

10 years agoMouseEvent: comply with DOM Level 3 and add some getter.
Thomas Geymayer [Tue, 4 Mar 2014 16:56:41 +0000 (17:56 +0100)]
MouseEvent: comply with DOM Level 3 and add some getter.

10 years agoCode cleanups.
James Turner [Tue, 4 Mar 2014 16:05:36 +0000 (16:05 +0000)]
Code cleanups.

(no functionality change)

10 years agoAllow clouds to be toggled on/off
James Turner [Fri, 28 Feb 2014 11:06:47 +0000 (11:06 +0000)]
Allow clouds to be toggled on/off

- Change the cloud-root Group to a Switch

10 years agoFix longstanding rent in skydome under ALS.
Stuart Buchanan [Thu, 27 Feb 2014 21:57:27 +0000 (21:57 +0000)]
Fix longstanding rent in skydome under ALS.

10 years agoanimation: fix for 'textrapezoid' animation outside 'texmultiple'.
Thomas Geymayer [Wed, 26 Feb 2014 16:48:11 +0000 (17:48 +0100)]
animation: fix for 'textrapezoid' animation outside 'texmultiple'.

10 years agoTerraSync: expose method as public
James Turner [Tue, 25 Feb 2014 09:13:16 +0000 (09:13 +0000)]
TerraSync: expose method as public

- needed for command-line terrasync util.

10 years agoHTTP: improve handling of connection errors
James Turner [Mon, 24 Feb 2014 19:41:14 +0000 (19:41 +0000)]
HTTP: improve handling of connection errors

- handle 'whole connection' errors consistently, e.g. EUNREACH
which can occur with intermittent connections.

10 years agoRemove obsolete TerraSync methods.
James Turner [Mon, 24 Feb 2014 06:07:51 +0000 (22:07 -0800)]
Remove obsolete TerraSync methods.

- all scheduling is now done via paths/buckets, not lat+lon.

10 years agoSky: expose OSG branches as Groups.
James Turner [Mon, 24 Feb 2014 06:07:12 +0000 (22:07 -0800)]
Sky: expose OSG branches as Groups.

- avoids creating additional groups in Renderer

10 years agoFix failing BucketBox test
James Turner [Mon, 24 Feb 2014 18:03:17 +0000 (18:03 +0000)]
Fix failing BucketBox test

- improve behaviour of floorWithEpsilon helper in bucket code, and
use in more places so that near-integral values are rounded correctly.

10 years agoAdd osgUtil::Simplifier to allow terrain simplification.
Stuart Buchanan [Sun, 23 Feb 2014 21:09:09 +0000 (21:09 +0000)]
Add osgUtil::Simplifier to allow terrain simplification.

10 years agoMake return type from loadPagedModel explicit.
James Turner [Sun, 23 Feb 2014 00:24:47 +0000 (16:24 -0800)]
Make return type from loadPagedModel explicit.

- explicitly return osg::PagedLOD instead of Node, so callers
don't need to rely on documentation + cast to get the LOD
settings on the result.

10 years agoCanvas: Fix crash on hide/show after detaching element from scenegraph.
Thomas Geymayer [Sat, 22 Feb 2014 00:44:29 +0000 (01:44 +0100)]
Canvas: Fix crash on hide/show after detaching element from scenegraph.

10 years agoUse the new SGBucket api
Christian Schmitt [Fri, 21 Feb 2014 16:38:26 +0000 (17:38 +0100)]
Use the new SGBucket api

10 years agoFix new SGBucket API
Christian Schmitt [Fri, 21 Feb 2014 10:13:32 +0000 (11:13 +0100)]
Fix new SGBucket API

10 years agoOnly disable display lists if using VBOs.
James Turner [Wed, 19 Feb 2014 23:10:48 +0000 (15:10 -0800)]
Only disable display lists if using VBOs.

(Otherwise we fall back to very slow submission)

10 years agoOptionally deprecate parts of SGBucket
James Turner [Wed, 19 Feb 2014 22:06:48 +0000 (14:06 -0800)]
Optionally deprecate parts of SGBucket

When NO_DEPRECATED_API is set, remove portions of the
SGBucket API.

10 years agoFix GCC 4.6 / Ubuntu compile failure.
James Turner [Wed, 19 Feb 2014 22:05:26 +0000 (14:05 -0800)]
Fix GCC 4.6 / Ubuntu compile failure.

10 years agoRaise required OSG version to 3.2.0
James Turner [Wed, 19 Feb 2014 18:58:39 +0000 (10:58 -0800)]
Raise required OSG version to 3.2.0

10 years agoRuntime VBO option in BTG loading.
James Turner [Wed, 19 Feb 2014 03:58:19 +0000 (19:58 -0800)]
Runtime VBO option in BTG loading.

10 years agoTechnique selection: fix shader-language
James Turner [Thu, 16 Jan 2014 20:09:21 +0000 (20:09 +0000)]
Technique selection: fix shader-language

(Also add a glsl-supported test to simplify Effect logic)

10 years agoOSG 3.2.0 compatibility and surface light effects.
Stuart Buchanan [Tue, 18 Feb 2014 21:30:15 +0000 (21:30 +0000)]
OSG 3.2.0 compatibility and surface light effects.