~ubuntu-branches/debian/sid/flightgear/sid

« back to all changes in this revision

Viewing changes to src/Viewer/renderer.hxx

  • Committer: Package Import Robot
  • Author(s): Markus Wanner, Markus Wanner, Rebecca Palmer
  • Date: 2014-01-21 22:31:02 UTC
  • mfrom: (1.3.1) (15.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20140121223102-cjw7g9le25acd119
Tags: 3.0.0~git20140204+c99ea4-1
[ Markus Wanner ]
* Upload to unstable.
* Adjust B-D to allow building on kfreebsd-*. Closes: #724686.
* Add a lintian-overrides on autotools; we use cmake.
* Upstream corrected the fgfs manpage. Closes: #556362.
* Drop unnecessary man page for gl-info. Closes: #698308.
* Drop README.Linux: it's outdated to the point of uselessness.
  Closes: #574173.
* Add an upper limit of libsimgear-dev versions that flightgear can be
  built with. Closes: #738436.
* Drop the libsvn-dev dependency, neither flightgear nor simgear depend
  on libsvn, anymore. Closes: #682947.
* List icons in debian/install rather than copying around from rules.
* Update menu entry for flightgear, add one for fgcom; add .xpm icons.
  Closes: #713924.
* flightgear.desktop: add German translation
* Bump Standards-Version to 3.9.5; no changes needed.

[ Rebecca Palmer ]
* New upstream release.
* Install the icons (based on code by Saikrishna Arcot).  (Not a
  complete fix for LP908153 as it only sets the menu/Dash icon, not the
  running window's icon, but better than nothing).
* Disable screensaver while running. Closes: LP#793599. Add required
  libdbus-1-dev dependency.
* Remove outdated README.Debian.
* Terrasync now works after just ticking the box. Closes: #252899.
* Always set Terrasync directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
}
43
43
 
44
44
class SGSky;
 
45
class SGUpdateVisitor;
45
46
 
46
47
class FGRenderer {
47
48
 
61
62
  
62
63
    /** Just pick into the scene and return the pick callbacks on the way ...
63
64
     */
64
 
    bool pick( std::vector<SGSceneryPick>& pickList,
65
 
               const osgGA::GUIEventAdapter* ea );
 
65
    bool pick( std::vector<SGSceneryPick>& pickList, const osg::Vec2& windowPos);
66
66
 
67
67
    /** Get and set the OSG Viewer object, if any.
68
68
     */
121
121
protected:
122
122
    osg::ref_ptr<osgViewer::Viewer> viewer;
123
123
    osg::ref_ptr<flightgear::FGEventHandler> eventHandler;
 
124
    
 
125
    osg::ref_ptr<osg::FrameStamp> _frameStamp;
 
126
    osg::ref_ptr<SGUpdateVisitor> _updateVisitor;
 
127
    osg::ref_ptr<osg::Group> _viewerSceneRoot;
 
128
    osg::ref_ptr<osg::Group> _deferredRealRoot;
 
129
    osg::ref_ptr<osg::Group> _root;
 
130
    
124
131
    SGPropertyNode_ptr _scenery_loaded, _position_finalized;
125
132
    
126
 
    SGPropertyNode_ptr _skyblend, _splash_alpha;
 
133
    
 
134
    SGPropertyNode_ptr _splash_alpha;
127
135
    SGPropertyNode_ptr _point_sprites, _enhanced_lighting, _distance_attenuation;
128
136
    SGPropertyNode_ptr _textures;
129
137
    SGPropertyNode_ptr _cloud_status, _visibility_m; 
139
147
    float _cascadeFar[4];
140
148
    bool _useColorForDepth;
141
149
 
 
150
    typedef std::vector<SGPropertyChangeListener*> SGPropertyChangeListenerVec;
 
151
    SGPropertyChangeListenerVec _listeners;
 
152
    
142
153
    flightgear::CameraInfo* buildCameraFromRenderingPipeline(FGRenderingPipeline* rpipe, flightgear::CameraGroup* cgroup, unsigned flags, osg::Camera* camera,
143
154
                                        const osg::Matrix& view, const osg::Matrix& projection, osg::GraphicsContext* gc);
144
155
 
169
180
    osg::ref_ptr<osg::Uniform> _depthInColor;
170
181
 
171
182
    osg::ref_ptr<FGRenderingPipeline> _pipeline;
 
183
    
 
184
    void addChangeListener(SGPropertyChangeListener* l, const char* path);
 
185
    
 
186
    void updateSky();
172
187
};
173
188
 
174
189
bool fgDumpSceneGraphToFile(const char* filename);