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
Mathias Froehlich
6c111f55aa
hla: Warn about creating an object class or interactions classes twice.
2012-11-08 22:50:26 +01:00
Mathias Froehlich
b01693f426
Remove osg header from non simgearscene file.
2012-11-08 22:50:10 +01:00
ThorstenB
e37232aeb4
Disable build options unsupported for Windows.
2012-11-08 20:01:38 +01:00
ThorstenB
1c1c7dad7b
zfstream: use the correct buffer size
2012-11-08 00:04:48 +01:00
ThorstenB
b70b81f4cc
sgstream: implement gzipped output file stream (gzofstream)
...
Add missing output implementation for gzfilebuf.
2012-11-07 23:45:01 +01:00
ThorstenB
e3cf41a666
zfstream: fixed mixed white spaces
...
otherwise unchanged
2012-11-07 23:45:01 +01:00
James Turner
851a307c23
Test for, and fix, materials handling in BTG code.
...
It's possible (and happens!) to have less than 2^16 vertices or tex-coords, but more than 2^15 objects (tris) with the same materials. This was breaking our version 7 vs version 10 detection logic. Pete found the issue, I'm simply committing a version of his fix.
2012-11-07 21:10:00 +00:00
Thomas Geymayer
183d3749f0
Fix SGPropertyNode tests
2012-11-07 09:31:56 +01:00
ThorstenB
3fe513f9e0
Fix property find_last_child/addChild.
...
Initial "addChild" should have index #0 (not #1 ).
Also extend test cases.
(Test case shows addChild(append=false) isn't working as expected!?)
2012-11-07 00:53:32 +01:00
Thomas Geymayer
81bee2bbc6
Jenkins has some problems with bind and lambdas. Let's try it with ordinary function pointers...
2012-11-06 19:34:23 +01:00
Thomas Geymayer
34719da000
Clean up Canvas element creation
2012-11-06 18:48:00 +01:00
Thomas Geymayer
df8a3d9c60
SIMGEAR_HEADLESS define is not needed anymore
2012-11-05 18:06:13 +01:00
Thomas Geymayer
53dea9b069
Move parseColor to scene/util
...
parseColor is used to parse a CSS color string into an osg::Vec4
which is only available in SimGearScene. If someone needs the
function also in SimGear headless mode we have to think about
where to better place this function.
2012-11-05 17:58:24 +01:00
Thomas Geymayer
186bae2bd4
Proper headless build fix
2012-11-05 13:35:06 +01:00
Thomas Geymayer
f83c8828f0
Fix windows and headless build
2012-11-05 12:59:15 +01:00
Thomas Geymayer
509d064286
No need to link to ShivaVG anymore
2012-11-04 23:48:51 +01:00
Thomas Geymayer
2d039e393a
Include ShivaVG into libSimGearScene
2012-11-04 20:00:53 +01:00
Thomas Geymayer
9ab88d9387
Commited too fast...
2012-11-04 19:22:37 +01:00
Thomas Geymayer
882a2a0e52
Remove OpenVG dependency from header file
2012-11-04 19:21:33 +01:00
Thomas Geymayer
c6ce1d8c67
Fix adding ShivaVG include directory
2012-11-04 16:51:07 +01:00
Thomas Geymayer
77e1a2e4be
Fix signed/unsigned comparison warning
2012-11-04 15:26:41 +01:00
Thomas Geymayer
b99f53fda3
Refactor Canvas and add some helpers.
...
- Refactor Canvas from FlightGear and fix lazy rendering with
recursive canvases.
- New classes PropertyBasedElement and PropertyBasedManager for
creating subsystems controlled by the property tree.
- New method parseColor to parse CSS 3 conformant color strings
(only basic color schemes supported)
- New Rect class representing a rectangle.
2012-11-04 14:12:05 +01:00
Mathias Froehlich
a7f64cf7aa
scenery: put stg loaded models under a common lod node.
2012-11-01 07:19:38 +01:00
Thomas Geymayer
8ebc0f2b24
Add VGInitOperation for initializing OpenVG
2012-10-31 01:38:59 +01:00
Thomas Geymayer
5330dc34bc
Helper for property controlled subsystems
...
- Subsystem which manages a list of elements which
are controlled through the property tree.
- Fix a ShivaVG compiler warning.
- Add some helper functions to trigger property removed/add
events for a whole property tree.
2012-10-29 16:11:35 +01:00
Frederic Bouvier
4854a9e320
No bzero in MSVC
2012-10-29 08:48:55 +01:00
James Turner
71be1a9e28
HTTP enhancements.
...
Support content-encoding and improve pipelining support.
2012-10-27 18:03:51 +01:00
Thomas Geymayer
d0ae09c7e2
Link with ShivaVG
2012-10-25 01:02:38 +02:00
Thomas Geymayer
a25bd06138
ShivaVG: Support for pseudo non-zero fillrule
2012-10-25 01:02:23 +02:00
James Turner
1b55076897
Fix a Clang warning in Shiva.
2012-10-25 00:44:48 +02:00
Thomas Geymayer
5eac7974c9
Add missing glx.h include and fix some warnings.
2012-10-25 00:44:47 +02:00
James Turner
3afd6e9f51
Fix OS-X compilation.
2012-10-25 00:44:47 +02:00
Thomas Geymayer
05c107ba9c
Allow filling paths and do some clean up/fixing.
2012-10-25 00:44:47 +02:00
Thomas Geymayer
99b00daf87
Add ShivaVG sources
2012-10-25 00:44:47 +02:00