Thomas Geymayer
e1302bcf17
CanvasImage: Fix border abs/rel calculations; add slice-width property
2013-02-28 01:09:27 +01:00
Thomas Geymayer
cfdc7db79a
sgstream_test needs linking with zlib
2013-02-26 12:53:56 +01:00
Thomas Geymayer
50de873453
Canvas: ensure z-index is updated on adding new child.
2013-02-26 12:49:04 +01:00
Christian Schmitt
a4ae7b2059
sgstream: detect two directly following CR/LF EOL correctly in skipeol,
...
supply a testcase for this.
2013-02-26 11:56:14 +01:00
Mathias Froehlich
d90abdcb44
scenery: Make static scenery static.
2013-02-25 06:55:35 +01:00
Mathias Froehlich
4a31045fd9
spt: Make the range multiplier configurable.
2013-02-25 06:42:55 +01:00
Mathias Froehlich
249155987d
spt: Normalize the bucket box meta filename lengths.
2013-02-25 06:42:55 +01:00
Mathias Froehlich
2ae7fc244b
spt: Expose the paging levels to osg options.
...
The levels at which page nodes are built is exposed by an
osg database pager option SimGear::SPT_PAGE_LEVELS which could
contain a blank separated list of levels where paging occurs.
Also the database pagers paths are searched for static lower
level of detail tiles in case they are available.
2013-02-25 06:42:55 +01:00
Mathias Froehlich
fafa70c6bc
spt: Use vbos for geometry.
2013-02-25 06:42:40 +01:00
Mathias Froehlich
49162a7a64
stg: Defer loading models into a paged lod node.
...
This defers loading the models into a paged lod node
that is evaluated at a later point in time. That should
help for memory problems with higher visibilities.
2013-02-25 06:42:40 +01:00
Thomas Geymayer
328e6b3e28
Update bounding box if calling update() on canvas elements
2013-02-24 20:44:02 +01:00
Thomas Geymayer
5441db9b18
Support image slice/scale-9 for CanvasImage.
2013-02-24 17:57:19 +01:00
Thomas Geymayer
06bfa4f1a1
Fix package management compiling with linux
2013-02-21 14:03:08 +01:00
James Turner
a530712491
Initial work on package management.
...
Basic library infrastructure, catalog download/refresh, and package install,
uninstall and update. Disabled at cmake time by default, and not yet hooked
into FlightGear.
2013-02-20 16:17:22 +00:00
James Turner
3c8cfe9b76
Fix MSVC compilation, thanks to Fred.
2013-02-18 13:56:41 +00:00
Eric van den Berg
57b4ce96e4
added physical constant cp
2013-02-18 08:58:52 +00:00
Hooray
63c7d64143
fix mingw
2013-02-18 08:58:52 +00:00
Thomas Geymayer
1784327c47
CanvasImage: Use image/canvas size rather than texture size
2013-02-15 12:32:31 +01:00
Thomas Geymayer
a63ec83d5f
CanvasImage: Use normalized coordinates by default.
...
Using absolute sizes by default lead to problems,
as while creating the image the size of the later
texture is not available.
2013-02-14 17:32:19 +01:00
Thomas Geymayer
d661516b02
Expose whether CanvasElement is visible
2013-02-13 12:09:15 +01:00
James Turner
ba020245f9
Fix jpeg-httpd compilation.
2013-02-11 12:51:20 +00:00
James Turner
79fefc1ff9
Support arbitrary parameters to bindings.
...
Use this to supply window X/Y to hover bindings.
2013-02-10 15:07:55 +00:00
James Turner
eac169b6da
Grrrr.
2013-02-09 15:45:36 +00:00
James Turner
a60d293759
Tweak APi for GCC happiness.
2013-02-09 14:11:48 +00:00
James Turner
b0063f8db6
Command-manager supports functors.
...
Will be used to support native Nasal commands, which was tricky with pure function pointers before. Can also be used to avoid some trampoline functions in the code, but this can happen gradually.
2013-02-09 12:40:44 +00:00
Thomas Geymayer
632abdd87b
Fix CanvasText horizontal alignment.
...
Don't reduce width of bounding box below character width
even if outline of rendered character is smaller. This
prevents trailing spaces from being ignored and also
fixes continuously chaging alignment (especially with
monospace fonts).
2013-02-09 12:17:45 +01:00
James Turner
d9b01ca5de
Foundations of hover support in pick-callbacks.
2013-02-09 11:11:53 +00:00
James Turner
adb7db9229
Ensure individual log-level setting works.
2013-02-08 20:17:27 +00:00
James Turner
e4f7aec965
Linux needs explicit <algorithm> include.
2013-02-08 20:07:11 +00:00
James Turner
768a8c1062
Give terrasync a buffered log.
2013-02-08 19:37:47 +00:00
James Turner
318c5000ce
Logging tweaks.
...
More pieces to support logging to buffers in the GUI.
2013-02-08 19:37:29 +00:00
James Turner
70f334e1a3
Fix GCC warnings about signed/unsigned compare.
2013-02-08 12:58:02 +00:00
James Turner
279b53a705
Move BufferedLogCallback to its own class.
...
Reduces includes in logstream.hxx, which is included by everyone and hence needs to be lightweight.
2013-02-08 12:58:02 +00:00
James Turner
a72a3ce5f3
Fix stderr log filtering.
...
Thanks to Stuart for pointing this out!
2013-02-08 12:58:02 +00:00
Thomas Geymayer
979aea5212
Add SGMisc::seek helper
2013-02-08 12:12:15 +01:00
James Turner
34d3c63384
Fix bucketBoxTest linkage.
2013-02-07 17:53:34 +00:00
James Turner
cf4af2692b
Fix property tests static linkage.
2013-02-07 17:51:42 +00:00
James Turner
d335ca5a8d
A couple more tests fixes.
2013-02-07 17:48:58 +00:00
James Turner
9cac2c1457
Fix math test linkage.
2013-02-07 17:42:00 +00:00
James Turner
523b992b4c
Windows logging tweaks.
...
Restore the freopen calls, though I am unsure exactly what they achieve.
2013-02-07 17:23:31 +00:00
Christian Schmitt
02be490466
Missing headers
2013-02-07 18:20:57 +01:00
James Turner
45ae3978f6
Fix handling of ZSTREAM_END result from zlib.
...
Avoid getting stuck when ZSTREAM_END occurs with no more bytes written out.
2013-02-07 13:01:56 +01:00
James Turner
f983194d7e
Buffered log-callback.
...
Allow a particular set of log messages to be retained indefinitely, for (presumably) later display somehow, such as in the GUI.
2013-02-07 13:01:56 +01:00
James Turner
ab8373b989
Rewrite logging code.
...
Support multiple backends, and make it thread-safe. Use an internal thread to push log entries to backends, to avoid blocking the submitting thread for any time.
2013-02-07 13:01:56 +01:00
Thomas Geymayer
4bef2c48eb
Remove debug output
2013-02-07 10:10:38 +01:00
Thomas Geymayer
21e2a769eb
Fix PropertyObject bug and interface improvements.
...
- Fix overwriting of parent node if PropertyObject::node() is
called for a non-existing node.
- Prevent implicit conversion from const char* and
SGPropertyNode*
2013-02-07 01:25:55 +01:00
Stuart Buchanan
fd8369142a
Building performance improvements.
...
Use sensible LoD range of 10km and gradual fade-out to 20km rather
than fixed 20km+ LoD range. Also make deeper quad-tree to make
culling easier.
2013-02-06 21:53:57 +00:00
Thomas Geymayer
5dea221ad5
Expose reloading Canvas placements
2013-02-06 01:19:24 +01:00
James Turner
235c29913a
Make the knob mouse-wheel direction configurable.
...
Add a global setting to control the mouse-wheel direction of the knob; a future commit will expose this in the FG GUI.
2013-02-03 17:21:50 +00:00
James Turner
0870407f65
Add 'release' bindings to knob animation.
...
Currently this fires on button release, but also after any mouse-wheel movement (since they are sent as buttons). This feels slightly wrong, but can't decide how a spring-loaded know would work, when interacting via the mouse-wheel. Comments welcome.
2013-02-03 17:11:05 +00:00