Changeset 13041 for OpenSceneGraph/trunk/include/osgFX/Technique
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgFX/Technique (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgFX/Technique
r5328 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 27 27 28 28 /** 29 An helper macro that defines the methods techniqueName() and 29 An helper macro that defines the methods techniqueName() and 30 30 techniqueDescription() making them return the strings passed as parameters. 31 31 */ … … 88 88 inline const osg::StateSet* getPassStateSet(int i) const; 89 89 90 /** 90 /** 91 91 traverse children with multipass if necessary. By default this method 92 92 simply calls the protected method traverse_implementation(); you can … … 95 95 */ 96 96 inline virtual void traverse(osg::NodeVisitor& nv, Effect* fx); 97 97 98 98 protected: 99 99 Technique(const Technique &): osg::Referenced() {} // copying is nonsense ;) … … 106 106 /** create a new pass node, add it to the technique and associate a StateSet */ 107 107 void addPass(osg::StateSet* ss = 0); 108 108 109 109 /** optional: return a node that overrides the child node on a specified pass */ 110 110 inline virtual osg::Node* getOverrideChild(int) { return 0; } … … 115 115 */ 116 116 virtual void define_passes() = 0; 117 117 118 118 /** 119 119 traverse children with multipass if necessary. Don't call this method … … 143 143 return _passes[i].get(); 144 144 } 145 145 146 146 inline void Technique::dirtyPasses() 147 147 { 148 148 _passes.clear(); 149 149 } 150 150 151 151 inline void Technique::traverse(osg::NodeVisitor& nv, Effect* fx) 152 152 {
