]>
git.mxchange.org Git - simgear.git/log
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.
James Turner [Wed, 19 Feb 2014 22:05:26 +0000 (14:05 -0800)]
Fix GCC 4.6 / Ubuntu compile failure.
James Turner [Wed, 19 Feb 2014 18:58:39 +0000 (10:58 -0800)]
Raise required OSG version to 3.2.0
James Turner [Wed, 19 Feb 2014 03:58:19 +0000 (19:58 -0800)]
Runtime VBO option in BTG loading.
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)
Stuart Buchanan [Tue, 18 Feb 2014 21:30:15 +0000 (21:30 +0000)]
OSG 3.2.0 compatibility and surface light effects.
James Turner [Thu, 13 Feb 2014 18:49:16 +0000 (18:49 +0000)]
Revise SGBucket::get_width_m
- remove the 0.5 degree offset away from the equator, which was
causing wrap-around at the poles
- add a new helper to get the highest latitude of a tile (which may
be +/- 90 for the polar cap tiles), and use this to compute radius
- special case the polar-caps and return a fixed, small width so
the tile-manager loads all tiles.
Thomas Geymayer [Thu, 13 Feb 2014 17:21:42 +0000 (18:21 +0100)]
Write back additional attributes to PropertyList
James Turner [Thu, 13 Feb 2014 15:31:58 +0000 (15:31 +0000)]
Some Linux platforms need <cstdio> for snprintf.
James Turner [Thu, 13 Feb 2014 13:23:43 +0000 (13:23 +0000)]
Fix MSVC build.
James Turner [Thu, 13 Feb 2014 12:36:06 +0000 (12:36 +0000)]
Revised set_bucket implementation.
- sink some inline methods into the .cxx file
- add isValid test to SGBucket
- sgGetBuckets won't return invalid buckets near the poles
- additional unit tests
James Turner [Wed, 12 Feb 2014 16:21:16 +0000 (16:21 +0000)]
SGBucket unit-testing
- test polar wrapping near the 180-meridian
- test corner points for polar tiles
- expand test-macro helpers slightly
James Turner [Wed, 12 Feb 2014 15:31:40 +0000 (15:31 +0000)]
Add new sibling() helper to SGBucket
- will replace sgBucketOffset eventually
- expand test coverage for both sibling() and offset function
(one test case is disabled since it fails)
James Turner [Tue, 11 Feb 2014 21:49:45 +0000 (21:49 +0000)]
Add unit-testing for SGBucket
- as part of looking at polar behaviour, start testing the
bucket code since the code has subtleties which it would be unwise
to change.
- remove a legacy setter on SGBucket (taking two doubles as a C-array)
James Turner [Mon, 10 Feb 2014 17:59:02 +0000 (17:59 +0000)]
Race-condition fix in get_effect.
Adapted from a fix by Jeff Biggs. (Shows up easier when using osgEarth,
and multiple osgDB pager threads)
Thomas Geymayer [Sat, 8 Feb 2014 18:15:46 +0000 (19:15 +0100)]
Minor formatting...
Thomas Geymayer [Sat, 8 Feb 2014 18:15:14 +0000 (19:15 +0100)]
SubsystemMgr: helper to remove all subsystems.
Thomas Geymayer [Sat, 8 Feb 2014 18:10:26 +0000 (19:10 +0100)]
Put unused attributes in the property tree while parsing.
Store unhandled xml attributes in a subnode named _attr_ for each
node on parsing propertylist files. This allows retrieving them at
a later stage where there is no access to the source xml file any
more.
Thomas Geymayer [Sat, 8 Feb 2014 11:39:43 +0000 (12:39 +0100)]
New textrapezoid TexTransformAnimation.
Allows trapezoid texture transformations, as needed for example to
correct for the tilt angle of HUD combiners.
Thomas Geymayer [Fri, 7 Feb 2014 23:22:36 +0000 (00:22 +0100)]
Canvas: Fix bounding box calculation for paths with subpaths.
Thomas Geymayer [Thu, 6 Feb 2014 16:55:51 +0000 (17:55 +0100)]
Canvas::Element: expose combined transformation matrix
James Turner [Thu, 6 Feb 2014 12:10:34 +0000 (12:10 +0000)]
MSVC lacks stdint.h / inttypes.h
- we can't use simgear/misc/stdint.hxx here, since it's a C++
header and md5.c is compiled as plain C (no bool type available).
James Turner [Thu, 6 Feb 2014 10:42:41 +0000 (10:42 +0000)]
Replace md5 from RSA with OpenBSD version
- no more BSD-with-advertising-license
- files from http://sources.debian.net/src/dpkg/1.17.6/lib/compat
(with SG_ prefixes to avoid collision issues)
James Turner [Tue, 28 Jan 2014 12:39:28 +0000 (12:39 +0000)]
Mac: fix static linkage
- Link against Cocoa, not CoreServices (for NSFileManager)