~ubuntu-branches/ubuntu/trusty/openscenegraph/trusty

« back to all changes in this revision

Viewing changes to OpenSceneGraph/include/osgViewer/ViewerBase

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-07-29 04:34:38 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080729043438-no1h9h0dpsrlzp1y
* Non-maintainer upload.
* No longer try to detect (using /proc/cpuinfo when available) how many
  CPUs are available, fixing the FTBFS (due to -j0) on various platforms
  (Closes: #477353). The right way to do it is to support parallel=n in
  DEB_BUILD_OPTIONS (see Debian Policy §4.9.1), and adequate support has
  been implemented.
* Add patch to fix FTBFS due to the build system now refusing to handle
  whitespaces (Policy CMP0004 say the logs), thanks to Andreas Putzo who
  provided it (Closes: #482239):
   - debian/patches/fix-cmp0004-build-failure.dpatch
* Remove myself from Uploaders, as requested a while ago, done by Luk in
  his 2.2.0-2.1 NMU, which was never acknowledged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
class View;
33
33
 
34
 
/** ViewerBase is the view base class that is inhertied by both Viewer and CompositeViewer.*/
 
34
/** ViewerBase is the view base class that is inherited by both Viewer and CompositeViewer.*/
35
35
class OSGVIEWER_EXPORT ViewerBase : public virtual osg::Object
36
36
{
37
37
    public:
99
99
        
100
100
         /** Set the position of the end barrier.
101
101
          * AfterSwapBuffers will may result is slightly higher framerates, by may
102
 
          * lead to inconcistent swapping between different windows.
 
102
          * lead to inconsistent swapping between different windows.
103
103
          * BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers,
104
104
          * especially important if you are likely to consistently break frame.*/
105
105
        void setEndBarrierPosition(BarrierPosition bp);
109
109
 
110
110
 
111
111
 
112
 
        /** Set the done flag to singnal the viewer's work is done and should exit the frame loop.*/
 
112
        /** Set the done flag to signal the viewer's work is done and should exit the frame loop.*/
113
113
        void setDone(bool done) { _done = done; }
114
114
 
115
 
        /** Reurn true if  viewer's work is done and should exit the frame loop.*/
 
115
        /** Return true if  viewer's work is done and should exit the frame loop.*/
116
116
        bool done() const { return _done; }
117
117
 
118
118
        /** Set the EventVisitor. */
180
180
 
181
181
 
182
182
        /** Execute a main frame loop.
183
 
          * Equivialant to while (!viewer.done()) viewer.frame();
 
183
          * Equivalent to while (!viewer.done()) viewer.frame();
184
184
          * Also calls realize() if the viewer is not already realized,
185
185
          * and installs trackball manipulator if one is not already assigned.
186
186
          */