]>
git.mxchange.org Git - simgear.git/log
Thomas Geymayer [Wed, 4 Jun 2014 15:47:29 +0000 (17:47 +0200)]
Catalog: add method to get all packages in a catalog.
Thomas Geymayer [Wed, 4 Jun 2014 15:46:35 +0000 (17:46 +0200)]
cppbind::Ghost: improve compiler error message for wrong usage.
Thomas Geymayer [Wed, 4 Jun 2014 11:41:48 +0000 (13:41 +0200)]
This has to work on windows now^^
Thomas Geymayer [Wed, 4 Jun 2014 10:17:00 +0000 (12:17 +0200)]
Hopefully fixing windows build.
Thomas Geymayer [Wed, 4 Jun 2014 01:16:02 +0000 (03:16 +0200)]
Now the real fix for old compilers...
Thomas Geymayer [Wed, 4 Jun 2014 00:46:57 +0000 (02:46 +0200)]
Fix headless build and reduce include dependencies.
Thomas Geymayer [Wed, 4 Jun 2014 00:45:52 +0000 (02:45 +0200)]
Trying to fix problems retrieving static member address with old compilers.
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.
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.
Thomas Geymayer [Mon, 2 Jun 2014 23:58:57 +0000 (01:58 +0200)]
SGSharedPtr: add constructor to convert from SGWeakPtr.
James Turner [Sun, 1 Jun 2014 10:35:26 +0000 (11:35 +0100)]
Package::match case-insensitive string comparison
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.
Thomas Geymayer [Sun, 1 Jun 2014 10:14:31 +0000 (12:14 +0200)]
Missing return statement
Thomas Geymayer [Sun, 1 Jun 2014 10:11:35 +0000 (12:11 +0200)]
Fix wrong include guard (identified by clang)
Thomas Geymayer [Sun, 1 Jun 2014 10:00:33 +0000 (12:00 +0200)]
Canvas/Layout: tweak the way elements are exposed to Nasal.
Thomas Geymayer [Sun, 1 Jun 2014 10:00:07 +0000 (12:00 +0200)]
Canvas: fix possible crash with destroyed canvasses
Thomas Geymayer [Sun, 1 Jun 2014 09:58:46 +0000 (11:58 +0200)]
Canvas: trigger immediate update from property tree/Nasal.
James Turner [Sat, 31 May 2014 17:00:38 +0000 (18:00 +0100)]
Add installedPackages() to Catalog.
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.
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.
Thomas Geymayer [Fri, 30 May 2014 22:09:56 +0000 (00:09 +0200)]
Sky dome: remove unused variables/code.
Thomas Geymayer [Fri, 30 May 2014 21:59:36 +0000 (23:59 +0200)]
cppbind: use Hash iterators to extract simgear::Map
Thomas Geymayer [Fri, 30 May 2014 21:57:55 +0000 (23:57 +0200)]
Fix for clang/template dependent name lookup.
Thanks to James & Nicholas...
Thomas Geymayer [Thu, 29 May 2014 14:34:33 +0000 (16:34 +0200)]
Canvas: allow dispatching events to Canavs itself
Thomas Geymayer [Thu, 29 May 2014 14:29:02 +0000 (16:29 +0200)]
cppbind: some new methods and safer type check.
Thomas Geymayer [Thu, 29 May 2014 12:14:52 +0000 (14:14 +0200)]
nasal::Hash: add iterators.
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.
Thomas Geymayer [Wed, 28 May 2014 22:27:50 +0000 (00:27 +0200)]
Update doxgen config and some comments.
Thomas Geymayer [Wed, 28 May 2014 16:09:34 +0000 (18:09 +0200)]
canvas::Element: setter/getter for HTML5 style data-* properties.
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.
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.
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.
Thomas Geymayer [Sun, 18 May 2014 11:29:48 +0000 (13:29 +0200)]
Canvas: support for custom events and event dispatching.
Thomas Geymayer [Sun, 18 May 2014 21:54:59 +0000 (23:54 +0200)]
cppbind.Ghost: more member overloads.
Thomas Geymayer [Sun, 18 May 2014 15:46:50 +0000 (17:46 +0200)]
Enable dynamic linking on Mac for Boost.Test
Thomas Geymayer [Sun, 18 May 2014 14:24:24 +0000 (16:24 +0200)]
cppbind.Ghost: clean up a bit
Thomas Geymayer [Sun, 18 May 2014 11:33:10 +0000 (13:33 +0200)]
cppbind: convert maps from nasal.
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.
Thomas Geymayer [Sat, 10 May 2014 08:36:13 +0000 (10:36 +0200)]
cppbind: from_nasal/to_nasal for SGWeakReferenced based objects
Thomas Geymayer [Fri, 9 May 2014 14:01:25 +0000 (16:01 +0200)]
Canvas: move window from flightgear.
Thomas Geymayer [Fri, 9 May 2014 09:52:42 +0000 (11:52 +0200)]
SGWeakReferenced: fix for clang.
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.
Thomas Geymayer [Thu, 8 May 2014 00:02:36 +0000 (02:02 +0200)]
Add smart pointer tests (finally using Boost.Test)
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.
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.
Thomas Geymayer [Tue, 6 May 2014 16:07:23 +0000 (18:07 +0200)]
Canvas: base Elements/Canvas on SGWeakReferenced.
Thomas Geymayer [Tue, 6 May 2014 14:11:13 +0000 (16:11 +0200)]
cppbind: add naContext/naRef overload to Ghost::_set
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
Thomas Geymayer [Mon, 5 May 2014 12:51:33 +0000 (14:51 +0200)]
cppbind: small logging/warning updates.
Thomas Geymayer [Mon, 5 May 2014 12:49:50 +0000 (14:49 +0200)]
cppbind.Ghost: register _set called on setting new properties.
Thomas Geymayer [Mon, 5 May 2014 12:48:29 +0000 (14:48 +0200)]
cppbind: disable special handling of 'parents' for ghost.
Thomas Geymayer [Mon, 5 May 2014 12:47:10 +0000 (14:47 +0200)]
Nasal: allow ghost as 'me' for 'call'
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
Thomas Geymayer [Tue, 15 Apr 2014 08:04:37 +0000 (10:04 +0200)]
math/nasal: Add more SGRect members and nasal helper.
Peter Sadrozinski [Sun, 6 Apr 2014 16:14:44 +0000 (12:14 -0400)]
fix windows build
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
James Turner [Thu, 3 Apr 2014 12:42:11 +0000 (13:42 +0100)]
Fixed for FreeBSD
(From Gerald Laplanche)
Thomas Geymayer [Tue, 1 Apr 2014 10:35:43 +0000 (12:35 +0200)]
Canvas::Path: also restore glBlendFunc.
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.
Thomas Geymayer [Mon, 31 Mar 2014 12:21:21 +0000 (14:21 +0200)]
cppbind: fix testing for naRef identity.
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.
Thomas Geymayer [Thu, 27 Mar 2014 11:09:05 +0000 (12:09 +0100)]
nasal::Ghost: remove bogus warning.
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.
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 .
Thomas Geymayer [Sat, 22 Mar 2014 12:23:21 +0000 (13:23 +0100)]
cppbind: fix problem with function call without arguments.
Thomas Geymayer [Sat, 22 Mar 2014 11:31:03 +0000 (12:31 +0100)]
cppbind: allow calling methods with 'me' object from C++.
Thomas Geymayer [Thu, 20 Mar 2014 10:42:02 +0000 (11:42 +0100)]
CanvasImage: rename 'file' to 'src'.
Thomas Geymayer [Thu, 20 Mar 2014 00:44:31 +0000 (01:44 +0100)]
CanvasImage: improve fetching from http and add mime detection.
Thomas Geymayer [Wed, 19 Mar 2014 17:21:25 +0000 (18:21 +0100)]
Canvas: Respect clipping while event handling.
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.
Thomas Geymayer [Tue, 18 Mar 2014 17:33:44 +0000 (18:33 +0100)]
CanvasImage: support for http protocol.
- Download and display images.
Mathias Froehlich [Mon, 25 Feb 2013 18:36:54 +0000 (19:36 +0100)]
Fix detection of airports in the stg loader.
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.
Thomas Geymayer [Fri, 14 Mar 2014 23:40:48 +0000 (00:40 +0100)]
Canvas: set button for drag events.
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.
James Turner [Thu, 13 Mar 2014 22:16:00 +0000 (22:16 +0000)]
Fix leak of object-mask textures
Torsten Dreyer [Wed, 12 Mar 2014 20:10:14 +0000 (21:10 +0100)]
Partial fix of #1408, add missing throw
Thomas Geymayer [Wed, 12 Mar 2014 16:39:05 +0000 (17:39 +0100)]
cppbind: Do not derive from SGReferenced if there is no need
Thomas Geymayer [Tue, 11 Mar 2014 14:36:57 +0000 (15:36 +0100)]
cppbind: fix possible usage of expired object from Nasal
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.
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.
James Turner [Wed, 5 Mar 2014 14:42:29 +0000 (14:42 +0000)]
Remove unused cube-map from 2D clouds.
James Turner [Wed, 5 Mar 2014 10:20:48 +0000 (10:20 +0000)]
VBO switch also controls random-buildings.
Thomas Geymayer [Tue, 4 Mar 2014 16:56:41 +0000 (17:56 +0100)]
MouseEvent: comply with DOM Level 3 and add some getter.
James Turner [Tue, 4 Mar 2014 16:05:36 +0000 (16:05 +0000)]
Code cleanups.
(no functionality change)
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
Stuart Buchanan [Thu, 27 Feb 2014 21:57:27 +0000 (21:57 +0000)]
Fix longstanding rent in skydome under ALS.
Thomas Geymayer [Wed, 26 Feb 2014 16:48:11 +0000 (17:48 +0100)]
animation: fix for 'textrapezoid' animation outside 'texmultiple'.
James Turner [Tue, 25 Feb 2014 09:13:16 +0000 (09:13 +0000)]
TerraSync: expose method as public
- needed for command-line terrasync util.
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.
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.
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
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.
Stuart Buchanan [Sun, 23 Feb 2014 21:09:09 +0000 (21:09 +0000)]
Add osgUtil::Simplifier to allow terrain simplification.
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.
Thomas Geymayer [Sat, 22 Feb 2014 00:44:29 +0000 (01:44 +0100)]
Canvas: Fix crash on hide/show after detaching element from scenegraph.
Christian Schmitt [Fri, 21 Feb 2014 16:38:26 +0000 (17:38 +0100)]
Use the new SGBucket api
Christian Schmitt [Fri, 21 Feb 2014 10:13:32 +0000 (11:13 +0100)]
Fix new SGBucket API
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)
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.