1
0
Fork 0
Commit graph

17 commits

Author SHA1 Message Date
Stuart Buchanan
07a9ee5b42 Fix fgelev by defining the correct scenery-path-suffix. 2017-01-23 19:17:50 +00:00
James Turner
78498c560d Rename preferences.xml -> defaults.xml
Requires FGData commit: 0565eaab10a5d466cd485766b17d1870936a0a57
(which actually renames the file).

Also disables the preferences-load command since I don’t believe it
would actually be safe to reload the defaults without doing a simulator
reset (aircraft -set.xml values would be overwritten, for example)
2017-01-12 09:45:19 +00:00
Torsten Dreyer
af8625e4ac fgelev: add option to print solidness of terrain
Add option --print-solidness
without this option, behaviour of fgelev is unchanged
with this option the word "solid" gets printed behind the elevation if the
material at the given location is solid. A hyphen (-) gets printed otherwise
2016-11-08 10:42:48 +01:00
James Turner
e2f7585d9c Use a Cmake imported target for SimGear 2016-10-30 22:15:54 +00:00
Jeremy Bicha
25928bf614 Use CMAKE_INSTALL_BINDIR
Allow /bin install directory to be overriden. Debian for example uses this
to install FlightGear to /usr/games/ instead of /usr/bin/

https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
2016-07-09 18:52:58 -04:00
James Turner
6d0c2070fd Use future-proof SGPath APIs.
Remove uses of .str(), .c_str() and some other methods of SGPath.
Pass SGPath directly where possible, or explicitly convert to the
appropriate 8-bit encoding.
2016-06-28 10:08:38 +01:00
Erik Hofman
d9129cfe80 Remove a debug message 2016-06-27 13:21:26 +02:00
Erik Hofman
ea6e1c9854 Fix the header name change from sample_openal.hxx to sample.hxx 2016-05-28 09:57:03 +02:00
radi
82ccaa7429 add command line option --expire to fgelev, overriding the hardcoded
default of 10 if given.

This improves performance _a lot_ if massively probing across
a bucket border as it prevents constant terrain unloading/reloading.
2014-10-06 11:23:27 +02:00
James Turner
ce3a7b20fe Crash-fix: mat-lib is now reference-counted.
Adapt to corresponding SG change to make SGMaterialLib be ref-counted,
and have the 'reload-materials' command notify the tile-manager of this,
so it can update the options struct it passes to new tiles.
2014-01-19 16:49:44 +00:00
Mathias Froehlich
05af83a03e fgelev: short circuit reading image files. 2012-08-26 15:30:21 +02:00
Mathias Froehlich
6ce3f4cb25 fgelev: Only request terrain for elevation queries. 2012-08-25 08:47:22 +02:00
Mathias Froehlich
7729e4517b fgelev: Implement paging for the bounding volumes. 2012-08-24 21:24:26 +02:00
Mathias Froehlich
70ef3c416d fgelev: Work on stdin/stdout like the previous one did.
Instead of working on arguments work on stdin and stdout.
Note that this version still does not page out.
2012-08-24 21:24:19 +02:00
Mathias Froehlich
e3ad3d3a07 bvh: Adapt to upstream bvh changes in simgear. 2012-08-24 21:24:12 +02:00
James Turner
33a19f30a9 One more OsgMath fix.
Thanks Emmanuel!
2012-08-22 19:41:03 +01:00
Mathias Froehlich
a6a24e59cc fgelev: tool to query scenery elevation. 2012-08-19 20:02:09 +02:00