Torsten Dreyer
994ea1674b
replace many auto_ptr by unique_ptr
2016-11-14 22:20:46 +01:00
James Turner
793c78512e
Prettier terrasync progress on splash screen.
2016-11-07 15:29:17 +01:00
James Turner
23cc1974d7
Fix crash with multiple windows on Sierra.
2016-10-20 10:44:32 +01:00
Curtis L. Olson
af3945f7f7
Clean up some 'visually' misleading indentation (where the indentation suggests
...
a different logic flow than is actually there.)
2016-09-06 11:11:06 -05:00
Rebecca N. Palmer
34394c91a9
fix hang on exit when multithreaded (bug 1830)
2016-08-15 07:58:40 +01:00
James Turner
b06f4208e4
Adjustments to mouse picking API
2016-07-31 22:44:03 +01: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
James Turner
16814800ce
Use Paths instead of strings.
2016-06-22 17:36:05 +01:00
James Turner
9c612af124
Improved feedback from scenery download.
2016-06-09 11:04:32 +01:00
James Turner
ff7b82885f
Fix for view look-at orientation bugs.
...
Force a manual re-calc of view parameters inside update. Will refactor
this in the future since shouldn’t really be necessary.
Ticket: https://sourceforge.net/p/flightgear/codetickets/1855/
2016-03-24 12:26:16 +00:00
James Turner
d0c341fa47
Guard against a crash.
2016-03-22 10:42:21 +00:00
James Turner
74f17d2882
Fix missing menubar on Mac in some setups
...
- Only clear the OSG ‘pose as standalone’ flag when we really show
a dialog, as opposed to when we /might/ show.
Tested:
- Qt build using launcher
- No Qt build
- Qt build but launcher not requested
2016-03-19 14:46:11 +00:00
James Turner
de959a14f3
Rename Viewer/viewer.cxx to view
...
- keep class and file names in sync.
2016-02-17 21:25:39 +00:00
James Turner
1515154e12
View::updateData becomes a private helper.
2016-02-17 21:25:39 +00:00
James Turner
5b81333768
View offset/target-offset props are tied
...
- make these View properties work like all the others, i.e
bound and unbound when the view changes.
2016-02-17 21:25:39 +00:00
James Turner
5629cf1a8d
Remove legacy ‘axes/lat’ and ‘axes/long’ props.
...
- only exits to support some legacy joystick hat configs,
which have been updated to use the goal- properties directly.
2016-02-17 21:25:39 +00:00
James Turner
7b08c621b4
Make many View APIs private
...
- many things are now only needed by tied methods, and
hence can be made private.
2016-02-17 21:25:39 +00:00
James Turner
a3382fec6d
Simplify setting view eye/target offsets
2016-02-17 21:25:39 +00:00
James Turner
e404ebc38a
Sink more properties into View
2016-02-17 21:25:39 +00:00
James Turner
27d739084a
View-manager binds like a normal subsystem.
...
- no longer need the unusual init-bind order
2016-02-17 21:25:39 +00:00
James Turner
00a4f1ecbb
Clean up view-number property handling
2016-02-17 21:25:39 +00:00
James Turner
ae1d96cdfb
Move FOV property into View
2016-02-17 21:25:39 +00:00
James Turner
daf8c79705
View-Mgr absolute position is gone.
2016-02-17 21:25:39 +00:00
James Turner
65d5038962
Tie view orientations directly
...
- remove need for cached orientations in view-manager
2016-02-17 21:25:39 +00:00
James Turner
3171cbce75
copyToCurrent removed.
2016-02-17 21:25:39 +00:00
James Turner
bf69781ae0
Remove dead code.
2016-02-17 21:25:39 +00:00
James Turner
fa4a5e7a64
Better types for eye/target position
2016-02-17 21:25:39 +00:00
James Turner
03d5e55b57
Move data updating into the View class
2016-02-17 21:25:39 +00:00
James Turner
7391b9d76a
ViewManager::copyToCurrent is a no-op
2016-02-17 21:25:39 +00:00
James Turner
655ac851e0
Start moving view-manager logic into View
...
- work in progress, goal is to make copyToCurrent and most of
the bind/unbind logic sink into each specific View, avoiding all the
null pointer checks in view manager.
2016-02-17 21:25:39 +00:00
James Turner
8c918c6cec
Make View::set_clean private.
2016-02-17 21:25:39 +00:00
James Turner
d4d2121641
View can created itself from config properties
...
- use in view manager
- make View constructor private
2016-02-17 21:25:39 +00:00
James Turner
02ff854603
Re-Name FGViewer to flightgear::View
...
- avoids confusion with osgViewer and fgviewer application.
(source files to be renamed in a follow-up commit)
2016-02-17 21:25:39 +00:00
James Turner
e60d9a191e
Viewer: move camera-group to view manager
...
- also devirtualise many methods in FGViewer
2016-02-17 21:25:39 +00:00
James Turner
fc9c43b48d
Remove FontCache from globals.
...
- access via a singleton instead.
2016-01-03 12:00:15 -06:00
James Turner
ba56c42eb4
Pull Ephemeris out of FGGlobals
2015-12-31 15:19:51 -06:00
James Turner
9e4e6a6fbf
Avoid view-manager returning default SGGeod
...
- when switching views, force an update() to ensure view position
is valid. Otherwise various subsystems such as AI traffic and the
tile manager see a request for a 0,0 location.
- when switching to model view, we still generate a 0,0
location initially - to be fixed.
2015-12-30 14:48:01 -06:00
James Turner
1544641405
Remove view/tile/scenery members from globals
...
- also fix sound manager creation
2015-12-11 12:11:59 -06:00
James Turner
6954360dfa
Merge /u/r-harrison/flightgear/ branch next into next
...
http://sourceforge.net/p/flightgear/flightgear/merge-requests/21/
2015-11-29 21:51:08 +00:00
James Turner
97a5e15aaf
Show paused message when starting frozen.
2015-11-23 00:48:20 +00:00
James Turner
bbff8dcbb6
Remove / reduce level on some debug output
2015-06-08 10:37:26 +01:00
onox
e3c8ecc25a
Choose a random splash texture
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-06-01 00:51:24 +02:00
Edward d'Auvergne
6c1934fcdf
Singularity avoidance fix for the flightgear Viewer.
...
This was reported at https://sourceforge.net/p/flightgear/codetickets/1740/ and
discussed at http://thread.gmane.org/gmane.games.flightgear.devel/77562 .
The flightgear Viewer no longer causes aircraft to disappear due to the
singularity at the poles resulting in an undefined azimuthal angle.
2015-05-03 20:04:33 +02:00
Richard Harrison
796acb9092
Always log message if going to segfault during notify logging.
2015-04-10 23:51:32 +02:00
James Turner
e0274af493
Percentage feedback during nav-cache build.
...
- also used by the GUI launcher for the same.
2015-03-19 12:01:38 -05:00
James Turner
1ba62acfcc
Fix native menubar in Mac builds with Qt
...
- where we don’t use the launcher, we must pass tell OSG we
want to pose as standalone when setting the window traits.
2015-01-07 09:19:04 +00:00
James Turner
78e8f53312
In-app launcher for Mac, based on Qt5.
...
The old Mac launcher doesn’t work on Yosemite, add a tiny
Qt-based launcher inside the main process (no need to fork /
exec) which runs before the OSG window is created.
Will be merged for 3.4, hopefully with no impact on other
platforms.
2015-01-06 19:13:30 +00:00
Clément de l'Hamaide
c3eda927a9
Update /sim/startup/fullscreen prop at runtime, that way we know the current state of the window
2014-11-18 17:14:22 +01:00
Thomas Geymayer
bb38e59ba2
Skydome ends lower with default rendering scheme.
2014-09-18 10:39:01 +02:00
Thomas Geymayer
104dc1170b
Use black clear color only at high altitudes.
...
Black clear color can cause visual glitches on low
altitudes, but a black space is much nicer, so just
switch at 300.000 ft.
2014-09-18 00:16:09 +02:00