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

« back to all changes in this revision

Viewing changes to OpenSceneGraph/include/osg/FragmentProgram

  • 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:
130
130
            // used by the COMPARE_StateAttribute_Paramter macro's below.
131
131
            COMPARE_StateAttribute_Types(FragmentProgram,sa)
132
132
 
133
 
            // compare each paramter in turn against the rhs.
 
133
            // compare each parameter in turn against the rhs.
134
134
            COMPARE_StateAttribute_Parameter(_fragmentProgram)
135
135
 
136
136
            return 0; // passed all the above comparison macro's, must be equal.
216
216
          * in the OpenGL context related to contextID.*/
217
217
        static void flushDeletedFragmentProgramObjects(unsigned int contextID,double currentTime, double& availableTime);
218
218
 
 
219
        /** discard all the cached fragment programs which need to be deleted
 
220
          * in the OpenGL context related to contextID.
 
221
          * Note, unlike flush no OpenGL calls are made, instead the handles are all removed.
 
222
          * this call is useful for when an OpenGL context has been destroyed. */
 
223
        static void discardDeletedFragmentProgramObjects(unsigned int contextID);
 
224
 
219
225
        virtual void apply(State& state) const;
220
226
 
221
227
        virtual void compileGLObjects(State& state) const { apply(state); }
224
230
        virtual void resizeGLObjectBuffers(unsigned int maxSize);
225
231
 
226
232
        /** release an OpenGL objects in specified graphics context if State
227
 
            object is passed, otherwise release OpenGL objexts for all graphics context if
 
233
            object is passed, otherwise release OpenGL objects for all graphics context if
228
234
            State object pointer == NULL.*/
229
235
        virtual void releaseGLObjects(State* state=0) const;
230
236