James Turner
50c61b4211
Allow use of the system's SQLite3 library.
...
Keep distro packagers happy by having the option to use the system's sqlite library instead of our bundled version. Set SYSTEM_SQLITE=1 when running cmake to use the system one.
2012-09-19 14:28:25 +01:00
James Turner
9b900e9430
Implement a persistent cache for navigation data.
...
Cache the parsed navigation and airport data in a binary file to reduce
startup times and memory consumption (since only referenced FGPositioned
elements are held in memory).
Data will be reimported when the mod-time of any input file is changed.
If a global file is changed (nav.dat, awy.dat, apt.dat, etc), the cache
will be completely rebuilt, which takes approximately 30 seconds on
moderate hardware. (Future work may reduce this).
2012-09-19 11:38:19 +01:00
James Turner
ffbb0a0e5d
Sink position-init code into its own file.
...
Separate other init functions from position init, since they are unrelated, and made fg_init.cxx very complex. Next step will be brining some sanity to the position init logic :)
2012-09-18 20:50:28 +01:00
James Turner
e2eea405a3
Make subsystem init incremental.
...
(Requires latest SimGear!)
Break fgInitSubsystems into several phases - subsystem creation, then binding and then init. Run init over multiple main-loop iterations so the application stays responsive to GUI/OS events during init.
There should be no behaviour changes due to this, except that during init Windows and OS-X should no longer show the beach ball / 'application not responding feedback', hopefully.
2012-09-18 20:29:36 +01:00
Stuart Buchanan
9d30d622ae
Expose the shader language version, to help diagnostics.
2012-09-18 15:48:06 +01:00
James Turner
505796e349
Make magavr a regular subsystem.
...
Remove various hacks and make magvar work like a normal subsystem, as part of the environment manager. Fix the remaining users of the globals->get_mag accessor, and hence kill off the global pointer.
2012-09-18 00:58:27 +01:00
ThorstenB
01376eec31
Minor main loop/init clean-up
2012-09-17 13:45:31 +02:00
ThorstenB
06170ddaae
Handle scenery-override in a single place only.
2012-09-17 13:45:31 +02:00
ThorstenB
7415696492
Create FGSoundManager as a wrapper for SGSoundMgr_OpenAl
...
and sink all sound related code from main.cxx in there.
2012-09-17 13:45:31 +02:00
Mathias Froehlich
65a5f6744f
cmake: Make rti/hla compile again.
2012-09-16 21:16:57 +02:00
Frederic Bouvier
db53e4c0b8
Sort fgfs source files in IDE folders
2012-09-16 19:26:53 +02:00
Thomas Geymayer
0554d987e8
property-interpolate: support using rate instead of time.
...
- property-interpolate now supports specifying the
interpolation time by passing rate instead of the actual time,
similar to max-rate-of-change in the noise-spike filter.
2012-09-06 14:05:57 +02:00
Stuart Buchanan
cce186a57c
Add properties for raw axis and button values, for use
...
in joystick configuration function. Also rationalize references to
/sim/fg-home into a global property.
2012-08-23 21:52:30 +01:00
James Turner
7fabeed85d
Fix some places relying on public 'using std::string' in SimGear
...
(Otherwise my next SimGear commit will break them)
2012-08-21 17:07:47 +01:00
ThorstenB
59fe04f8e9
Make web browser app configurable through CMake (for Linux)
...
so package builders don't need local patches.
Also, instead of hardcoded firefox, use "xdg-open" or "sensible-browser"
launchers on Linux, to auto-detect user's preferred browser.
Override with cmake switch -DWEB_BROWSER=...
(Not affecting Mac/Win which are hard-coded anyway).
2012-08-18 14:11:31 +02:00
Thomas Geymayer
8a6a234653
Canvas: First version of new Canvas GUI system.
...
- Refactor CanvasMgr into PropertyBasedMgr to be also used
for the Canvas GUI system.
- Get rid of tied properties in the Canvas system.
- Add new placement type 'window' for placing canvases onto
windows
- Pass mouse events to Window class (only if cursor is over
window)
- Refactor canvas placement clean up
2012-07-31 23:19:23 +02:00
Thomas Geymayer
373d511c69
Canvas: Allow using canvases as PUI widgets.
...
- Add new widget type canvas
- Set canvas view dimension from the gui xml.
- Expose mouse events to canvas widget properties.
2012-07-31 23:19:22 +02:00
James Turner
909ed99332
Ensure WSAStartup is called for metar.exe
2012-07-27 17:51:04 +01:00
Stuart Buchanan
5e3ec6209c
Add command to reload materials definitions. Note that this explicitly
...
does not attempt to delete the old materials definitions, as they
may be in use at the time.
2012-07-19 22:06:08 +01:00
ThorstenB
831662fca8
Option to restore defaults and enable/disable random buildings+vegetation
...
fgfs can fail to start when random buildings is set to an excessive level,
so you can't even reach the GUI setting to reduce/disable again.
2012-07-15 10:56:59 +02:00
ThorstenB
00fe1e3445
#803 : apply hotfix to revive "--carrier" option.
2012-07-14 10:01:29 +02:00
ThorstenB
39a7caae15
Proper error checks for generic protocol.
...
Drop FGGeneric instances which failed to initialize to avoid run-time
issues.
2012-07-13 20:33:36 +02:00
ThorstenB
7edbf8a8c9
#798 : climb rate cannot be higher than the true speed
...
Don't set vertical-speed on sim reset, unless the user intentionally
requested this as a start-up property.
2012-07-08 11:40:24 +02:00
Thomas Geymayer
569042acbd
Allow filling paths and do some clean up/fixing.
2012-06-17 21:14:00 +01:00
Thomas Geymayer
c8e1433a5c
Add ShivaVG sources
2012-06-17 21:13:54 +01:00
Thomas Geymayer
df768766d9
Canvas: basic support for OpenVG (path with stroke and pattern)
...
- Bugfix: Don't access children by index as it's not unique
2012-06-17 21:13:47 +01:00
James Turner
17ec3278ed
Remove platform-specific code in favour of simgear::Dir wrappers.
2012-05-31 08:57:22 +01:00
Thomas Geymayer
d82fd7cc5f
Basic 2D canvas implementation.
...
Support text and transformations for the moment, more
features to follow in due course.
2012-05-18 07:05:37 +01:00
James Turner
8f10fff8dc
Lazy-loading of the 2D panel node.
...
Sink the 2D panel logic into FGPanelNode, simplifying
renderer.cxx and a few other places. Also allows potential
for unloading / paging of 2.5D panels in the future.
2012-05-16 11:43:09 +01:00
ThorstenB
a2922e2e23
ATCDCL cleanup, part II.
...
Remove/comment out obsolete code.
Refactor ATCmgr(-old) into ATISmgr(-new), only keeping the COM radio / ATIS
support.
2012-05-12 23:53:30 +02:00
Frederic Bouvier
6b2ba60772
rename /sim/rendering/rembrandt -> /sim/rendering/rembrandt/enabled
...
and put rembrandt-related properties in /sim/rendering/rembrandt/
2012-05-12 13:45:36 +02:00
Frederic Bouvier
dd8d9a6f60
First round of changes toward a programmable rendering pipeline.
...
Stages are predefined for now.
2012-05-12 13:45:35 +02:00
Frederic Bouvier
6b008126b5
Begin to implement configurable rendering pipeline
2012-05-12 13:45:31 +02:00
ThorstenB
b91175d47a
Adapt logging level for some messages.
...
Also keep default logging level during very early startup at "alert"
(unless explicitly set on cmd-line).
2012-05-09 23:56:43 +02:00
ThorstenB
de6ac7153d
Improve debug output
2012-05-08 23:04:53 +02:00
ThorstenB
0b7b0f16a8
Improve fgfs startup logging.
...
Establish log-level very, very early during startup, so debug/info/warning
messages in the very early fgfs startup phase are also shown.
2012-05-08 22:47:32 +02:00
ThorstenB
563ed19f97
Add Windows-specific implementation to determine locale settings.
2012-05-06 23:15:27 +02:00
ThorstenB
0f462d4a6e
Fix rpmlint/Linux packager complaints
...
about outdated/invalid FSF address in some license headers.
2012-05-05 01:42:41 +02:00
ThorstenB
e59fabaf82
Clean-up some SGMath dependencies.
2012-05-05 00:56:29 +02:00
ThorstenB
3986e1fe3a
Add separate switch to enable/disable AI scenario support.
...
Switch is enabled automatically when scenarios are given on command-line.
2012-04-30 19:04:49 +02:00
James Turner
2d267a5782
Remove PositionedBinding (which no one ever used), Nasal is better for this jobs.
2012-04-26 00:37:47 +01:00
ThorstenB
89b41395d8
Move viewer-related sources to separate folder.
...
Simple source directory clean-up, so "Main" folder contains fewer stuff
and the list of files in the editors a lot shorter.
2012-04-25 23:28:00 +02:00
Frederic Bouvier
7006ca12a8
Don't care about light volumes when picking in the scenegraph
2012-04-24 23:35:05 +02:00
James Turner
fb66aeade1
More search functions exposed to Nasal, also airport parking.
2012-04-24 22:12:56 +01:00
ThorstenB
470552fab1
Move locale code to separate module.
...
Introduce convenience methods to handle localized string resources
and obtain strings.
2012-04-21 20:17:42 +02:00
ThorstenB
b358af2611
Minor clean-up.
2012-04-21 19:06:10 +02:00
ThorstenB
2a4ab38e70
Move another string to the language resource.
2012-04-18 15:44:42 +02:00
ThorstenB
201d9d7852
Be more tolerant about locale name when detecting the default language,
...
i.e. consider the German resource provided for "de_DE" or "de" when
locale name is "de_DE.utf8".
2012-04-18 15:43:42 +02:00
James Turner
516d92c077
Fix part of #263 , --language option not working for --help.
2012-04-18 12:46:26 +01:00
James Turner
2218a44ed7
Support loading PropertyList data remotely, as part of #450 . Along the way, centralise the HTTPClient object so it can be used beyond the METAR download engine.
2012-04-18 10:25:27 +01:00