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

« back to all changes in this revision

Viewing changes to OpenSceneGraph/include/osg/Object

  • 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:
98
98
        /** Set the data variance of this object.
99
99
           * Can be set to either STATIC for values that do not change over the lifetime of the object,
100
100
           * or DYNAMIC for values that vary over the lifetime of the object. The DataVariance value
101
 
           * can be used by routines such as optimzation codes that wish to share static data.
102
 
           * UNSPECIFIED is used to sepecify that the DataVariance hasn't been set yet. */
 
101
           * can be used by routines such as optimization codes that wish to share static data.
 
102
           * UNSPECIFIED is used to specify that the DataVariance hasn't been set yet. */
103
103
        inline void setDataVariance(DataVariance dv) { _dataVariance = dv; }
104
104
 
105
105
        /** Get the data variance of this object.*/
106
106
        inline DataVariance getDataVariance() const { return _dataVariance; }
107
107
        
108
 
        /** Compute the DataVariance based on an assestment of callback etc.*/
 
108
        /** Compute the DataVariance based on an assessment of callback etc.*/
109
109
        virtual void computeDataVariance() {}
110
110
 
111
111
 
127
127
        virtual void resizeGLObjectBuffers(unsigned int /*maxSize*/) {}
128
128
 
129
129
        /** If State is non-zero, this function releases any associated OpenGL objects for
130
 
           * the specified graphics context. Otherwise, releases OpenGL objexts
 
130
           * the specified graphics context. Otherwise, releases OpenGL objects
131
131
           * for all graphics contexts. */
132
132
        virtual void releaseGLObjects(osg::State* = 0) const {}
133
133