Thomas Geymayer
88a35fd162
cppbind: Automatic conversion of derived ghosts and some cleanup/fixes
2012-11-27 13:02:36 +01:00
James Turner
7d8d4a03fb
Make SGLockingQueue::pop usable.
...
Since there's no external lock, it was impossible to check the queue was non-empty before a pop, without a race condition. To avoid this, tolerate an empty queue and return a default constructed value.
2012-11-25 22:36:15 +00:00
Mathias Froehlich
1a68d34663
hla: For setting data types recurse into array data elements.
2012-11-25 22:27:14 +01:00
Mathias Froehlich
72a0ff706d
hla: Use an implementation file for SGLocation.
2012-11-25 22:27:04 +01:00
Mathias Froehlich
420e43d47d
sphere: Implement sphere inside sphere.
2012-11-24 09:55:34 +01:00
Mathias Froehlich
3c749d4774
hla: Route failures in message processing into the HLA layer.
2012-11-24 09:55:26 +01:00
Mathias Froehlich
d4310a7f3b
hla: Make use of SGLocation.
2012-11-24 09:55:16 +01:00
Mathias Froehlich
f892d88c10
math: Implement SGLocation.
...
New simple class to encapsulate a cartesian position
and orientation pair with few handy methods.
2012-11-24 09:54:57 +01:00
ThorstenB
d226709836
Change logging class for tie/untie messages.
...
It's enough to see them in "general".
2012-11-23 20:44:17 +01:00
ThorstenB
fbfd03fe5c
Add logging class for navaid systems.
2012-11-23 20:41:03 +01:00
ThorstenB
f513001798
#942 segfault with --log-level=debug when random buildings enabled
2012-11-22 21:55:11 +01:00
Christian Schmitt
31aa0ddabe
Implement runway guard lights and tweak the hold short lights animation a bit
2012-11-22 16:42:56 +01:00
Thomas Geymayer
767184cf3c
Extend CanvasSystemAdapter to provide access to Nasal gcSave and gcRelease
2012-11-22 00:54:56 +01:00
ThorstenB
fe86a9ed02
Fix compiler error with disabled sound support.
...
("source" is undefined in SGSampleGroup::stop).
Also fixes two related compiler warnings (unused var "sample").
2012-11-21 20:17:58 +01:00
Thomas Geymayer
9be53e746f
Allow canvas::Placements to have own properties
2012-11-21 13:05:19 +01:00
Thomas Geymayer
8b6f50d0cc
SGPropertyNode::fireCreatedRecursive: don't fire for node itself by default
2012-11-21 11:58:07 +01:00
James Turner
80dc28bfb5
Modernise the mat lib header, remove 'using std'
2012-11-20 17:10:13 +00:00
James Turner
983e1abf48
Work on ENABLE_SOUND.
...
Restructure SGSampleGroup, to make #ifdef-ing the OpenAL calls easier. No functionality change.
2012-11-20 12:20:21 +00:00
ThorstenB
ff65b82671
Keep (deprecated) SGTime::update method for a while
...
allowing dependent projects to adapt.
2012-11-19 23:42:51 +01:00
James Turner
0b26c69222
Remove duplicate members in SGSampleQueue.
...
Remove duplicate members shared by SGSoundSample and SGSampleQueue (which inherits from it). Change SGSoundSample to expose some members as protected data for access by the sample-queue, and hence share nearly all the methods. Also remove 'inline' keyword from virtual methods.
2012-11-19 15:33:53 +00:00
Thomas Geymayer
904d714d6d
Get Canvas/PropertyBasedElement by name
2012-11-18 16:27:05 +01:00
James Turner
2aed93a576
Fix HTTP test for revised POST semantics.
2012-11-17 19:51:57 +00:00
James Turner
d1af42e9ad
Tweak HTTP handling for POST requests.
...
Tolerate slightly malformed request URLs (no slash following the host specified), and use a better check when POST-ing to decide the request-body data source.
2012-11-17 18:08:38 +00:00
Thomas Geymayer
9f31addfa5
Fix for old gcc which got broken by fix for VS
2012-11-16 16:49:35 +01:00
Thomas Geymayer
d56ea7e6c4
Fix for VS bug
2012-11-16 15:49:43 +01:00
Thomas Geymayer
1cbe271ad5
Nasal bindings: Always pass object by reference
2012-11-16 12:24:47 +01:00
Thomas Geymayer
33db3c377f
One more fix for old gcc
2012-11-15 23:31:18 +01:00
Thomas Geymayer
a0535ef64d
Fix compile errors for old gcc
2012-11-15 22:17:43 +01:00
Thomas Geymayer
392ba18ff7
Canvas/C++ bindings: automatically detect dynamic type of polymorphic exposed classes
2012-11-15 21:17:33 +01:00
Thomas Geymayer
e872f9e928
Work around Visual Studio bug
2012-11-13 12:35:12 +01:00
Thomas Geymayer
04685a8179
C++/Nasal bindings: allow registering free function as member
2012-11-12 23:28:00 +01:00
Thomas Geymayer
55fbe68e62
Missing include and more doxygen improvements
2012-11-12 13:57:10 +01:00
Thomas Geymayer
f51e1f0cc8
Fix file headers
2012-11-12 12:25:08 +01:00
Thomas Geymayer
d31b62d44d
Add nasal::Ghost class for exposing C++ classes to Nasal
2012-11-12 12:11:41 +01:00
Mathias Froehlich
9fd90e26f7
hla: Remove HLADataElement::Path based attribute handling.
2012-11-11 20:39:59 +01:00
ThorstenB
dbea0c9361
Geoff McLane: realpath for Windows using _fullpath.
...
Also switch cygwin to use POSIX call.
2012-11-11 19:26:51 +01:00
Mathias Froehlich
201cb61f84
hla: Use HLADataElementIndices for HLAInteractionClass.
2012-11-11 17:09:31 +01:00
Mathias Froehlich
71141e830a
hla: Use HLADataElementIndices for HLALocation.
2012-11-11 14:27:35 +01:00
Mathias Froehlich
7dc8bf3aa4
hla: Fixes for the data element index implementation.
2012-11-11 14:27:34 +01:00
Thomas Geymayer
0fef94cfdb
Add from_nasal helper and fix to_nasal for std::vector.
2012-11-10 14:34:18 +01:00
ThorstenB
a9b45967ce
gz wrapper to write and read "container files".
...
Packs arbitrary data (strings, property trees, binary blobs, ...) into a
single file.
Use this for storing/loading user-data only, not for distribution files
(scenery, aircraft etc).
2012-11-10 10:44:19 +01:00
ThorstenB
0928bca531
Proper fix for gzfilebuf choking on some files.
...
When reading a new block of data, and the first byte of the new block is
0xff (_signed_ char -1), then this must be converted to _integer_ 0xff
(+255), not -1 - which would indicate an error condition (EOF==-1). All
valid _data_ character must be returned as non-negative, see
streambuf::underflow spec, or compare with
http://www.opensource.apple.com/source/zlib/zlib-12/zlib/contrib/iostream/zfstream.cpp
or
http://www.raspberryginger.com/jbailey/minix/html/zfstream_8cpp-source.html
2012-11-10 10:12:01 +01:00
ThorstenB
77f73a79df
gzfilebuf choked when reading large, heavily compressed files.
...
Apparently a 4K buf isn't enough. 64K seem much better ;-).
Real solution may be an adaptive buffer size in gzfilebuf.
2012-11-09 22:04:11 +01:00
Stuart Buchanan
279445d6bc
For clouds, use a RNG seed that only changes every 10 minutes.
...
This allows multi-process deploymentes to keep their clouds in sync.
2012-11-09 20:25:53 +00:00
Thomas Geymayer
54778ee1e1
Some basic C++/Nasal binding helpers
...
- Add nasal::to_nasal for converting different C++ types
to the according Nasal types.
- Add nasal::Hash, an OOP wrapper around Nasal hashes.
2012-11-09 19:28:27 +01:00
Thomas Geymayer
4efcda534d
Workaround for VS10 Bug/Remove superfluous class qualification
2012-11-09 10:36:42 +01:00
Thomas Geymayer
45ac5cb2fa
Canvas cleanup and restructuring
...
- Add some methods for easier using the Canvas from C++
- Add some documentation to Nasal
2012-11-09 00:05:11 +01:00
Mathias Froehlich
6d045a9403
hla: Introduce HLADataElementIndex.
2012-11-08 22:51:02 +01:00
Mathias Froehlich
8c57a77d7e
hla: catch exceptions in processMessages()
2012-11-08 22:50:52 +01:00
Mathias Froehlich
1f585d6719
hla: Use raw pointers for HLAFederate::_insert methods.
2012-11-08 22:50:39 +01:00