Changeset 6311
- Timestamp:
- 03/05/07 18:34:36
- Files:
-
- OpenSceneGraph/trunk/include/osg/AlphaFunc (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/BlendColor (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/BlendEquation (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/BlendFunc (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/ClipPlane (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/CullFace (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Depth (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Fog (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/FragmentProgram (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Geometry (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Light (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/LineStipple (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/LogicOp (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Material (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Point (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/PointSprite (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/PolygonOffset (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/PolygonStipple (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Scissor (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/ShapeDrawable (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Stencil (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/StencilTwoSided (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/TexGen (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Texture (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/VertexProgram (modified) (1 diff)
- OpenSceneGraph/trunk/include/osgSim/ImpostorSprite (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/include/osg/AlphaFunc
r5328 r6311 65 65 } 66 66 67 virtual bool getModeUsage( ModeUsage& usage) const67 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 68 68 { 69 69 usage.usesMode(GL_ALPHA_TEST); OpenSceneGraph/trunk/include/osg/BlendColor
r5573 r6311 53 53 } 54 54 55 virtual bool getModeUsage( ModeUsage& usage) const55 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 56 56 { 57 57 usage.usesMode(GL_BLEND); OpenSceneGraph/trunk/include/osg/BlendEquation
r5328 r6311 77 77 } 78 78 79 virtual bool getModeUsage( ModeUsage& usage) const79 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 80 80 { 81 81 usage.usesMode(GL_BLEND); OpenSceneGraph/trunk/include/osg/BlendFunc
r5328 r6311 72 72 } 73 73 74 virtual bool getModeUsage( ModeUsage& usage) const74 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 75 75 { 76 76 usage.usesMode(GL_BLEND); OpenSceneGraph/trunk/include/osg/ClipPlane
r5328 r6311 64 64 virtual unsigned int getMember() const { return _clipPlaneNum; } 65 65 66 virtual bool getModeUsage( ModeUsage& usage) const66 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 67 67 { 68 68 usage.usesMode((GLMode)(GL_CLIP_PLANE0+_clipPlaneNum)); OpenSceneGraph/trunk/include/osg/CullFace
r5328 r6311 55 55 } 56 56 57 virtual bool getModeUsage( ModeUsage& usage) const57 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 58 58 { 59 59 usage.usesMode(GL_CULL_FACE); OpenSceneGraph/trunk/include/osg/Depth
r5328 r6311 68 68 } 69 69 70 virtual bool getModeUsage( ModeUsage& usage) const70 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 71 71 { 72 72 usage.usesMode(GL_DEPTH_TEST); OpenSceneGraph/trunk/include/osg/Fog
r5328 r6311 65 65 } 66 66 67 virtual bool getModeUsage( ModeUsage& usage) const67 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 68 68 { 69 69 usage.usesMode(GL_FOG); OpenSceneGraph/trunk/include/osg/FragmentProgram
r5882 r6311 137 137 } 138 138 139 virtual bool getModeUsage( ModeUsage& usage) const139 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 140 140 { 141 141 usage.usesMode(GL_FRAGMENT_PROGRAM_ARB); OpenSceneGraph/trunk/include/osg/Geometry
r5328 r6311 339 339 virtual void drawImplementation(State& state) const; 340 340 341 /** Return true, osg::Geometry does support accept( AttributeFunctor&). */342 virtual bool supports(const AttributeFunctor&) const { return true; }343 344 /** Accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */345 virtual void accept( AttributeFunctor& af);346 347 /** Return true, osg::Geometry does support accept( ConstAttributeFunctor&). */348 virtual bool supports(const ConstAttributeFunctor&) const { return true; }349 350 /** Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */351 virtual void accept( ConstAttributeFunctor& af) const;341 /** Return true, osg::Geometry does support accept(Drawable::AttributeFunctor&). */ 342 virtual bool supports(const Drawable::AttributeFunctor&) const { return true; } 343 344 /** Accept an Drawable::AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */ 345 virtual void accept(Drawable::AttributeFunctor& af); 346 347 /** Return true, osg::Geometry does support accept(Drawable::ConstAttributeFunctor&). */ 348 virtual bool supports(const Drawable::ConstAttributeFunctor&) const { return true; } 349 350 /** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */ 351 virtual void accept(Drawable::ConstAttributeFunctor& af) const; 352 352 353 353 /** Return true, osg::Geometry does support accept(PrimitiveFunctor&). */ OpenSceneGraph/trunk/include/osg/Light
r5328 r6311 70 70 virtual unsigned int getMember() const { return _lightnum; } 71 71 72 virtual bool getModeUsage( ModeUsage& usage) const72 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 73 73 { 74 74 usage.usesMode(GL_LIGHT0+_lightnum); OpenSceneGraph/trunk/include/osg/LineStipple
r4803 r6311 47 47 } 48 48 49 virtual bool getModeUsage( ModeUsage& usage) const49 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 50 50 { 51 51 usage.usesMode(GL_LINE_STIPPLE); OpenSceneGraph/trunk/include/osg/LogicOp
r5328 r6311 67 67 } 68 68 69 virtual bool getModeUsage( ModeUsage& usage) const69 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 70 70 { 71 71 usage.usesMode(GL_COLOR_LOGIC_OP); OpenSceneGraph/trunk/include/osg/Material
r5708 r6311 78 78 Material& operator = (const Material& rhs); 79 79 80 virtual bool getModeUsage( ModeUsage& /*usage*/) const80 virtual bool getModeUsage(StateAttribute::ModeUsage& /*usage*/) const 81 81 { 82 82 // note, since Material does it's own glEnable/glDisable of GL_COLOR_MATERIAL OpenSceneGraph/trunk/include/osg/Point
r5706 r6311 55 55 } 56 56 57 virtual bool getModeUsage( ModeUsage& usage) const57 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 58 58 { 59 59 usage.usesMode(GL_POINT_SMOOTH); OpenSceneGraph/trunk/include/osg/PointSprite
r5729 r6311 48 48 virtual int compare(const StateAttribute& sa) const; 49 49 50 virtual bool getModeUsage( ModeUsage& usage) const50 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 51 51 { 52 52 usage.usesMode(GL_POINT_SPRITE_ARB); OpenSceneGraph/trunk/include/osg/PolygonOffset
r5328 r6311 50 50 } 51 51 52 virtual bool getModeUsage( ModeUsage& usage) const52 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 53 53 { 54 54 usage.usesMode(GL_POLYGON_OFFSET_FILL); OpenSceneGraph/trunk/include/osg/PolygonStipple
r5328 r6311 35 35 virtual int compare(const StateAttribute& sa) const; 36 36 37 virtual bool getModeUsage( ModeUsage& usage) const37 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 38 38 { 39 39 usage.usesMode(GL_POLYGON_STIPPLE); OpenSceneGraph/trunk/include/osg/Scissor
r5328 r6311 59 59 60 60 61 virtual bool getModeUsage( ModeUsage& usage) const61 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 62 62 { 63 63 usage.usesMode(GL_SCISSOR_TEST); OpenSceneGraph/trunk/include/osg/ShapeDrawable
r5940 r6311 166 166 virtual bool supports(const AttributeFunctor&) const { return false; } 167 167 168 /** Return true, osg::ShapeDrawable does support accept( ConstAttributeFunctor&).*/169 virtual bool supports(const ConstAttributeFunctor&) const { return true; }168 /** Return true, osg::ShapeDrawable does support accept(Drawable::ConstAttributeFunctor&).*/ 169 virtual bool supports(const Drawable::ConstAttributeFunctor&) const { return true; } 170 170 171 /** Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has.*/172 virtual void accept( ConstAttributeFunctor& af) const;171 /** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has.*/ 172 virtual void accept(Drawable::ConstAttributeFunctor& af) const; 173 173 174 174 /** Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) .*/ OpenSceneGraph/trunk/include/osg/Stencil
r6009 r6311 67 67 } 68 68 69 virtual bool getModeUsage( ModeUsage& usage) const69 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 70 70 { 71 71 usage.usesMode(GL_STENCIL_TEST); OpenSceneGraph/trunk/include/osg/StencilTwoSided
r6010 r6311 40 40 virtual int compare(const StateAttribute& sa) const; 41 41 42 virtual bool getModeUsage( ModeUsage& usage) const42 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 43 43 { 44 44 usage.usesMode(GL_STENCIL_TEST); OpenSceneGraph/trunk/include/osg/TexGen
r5328 r6311 66 66 } 67 67 68 virtual bool getModeUsage( ModeUsage& usage) const68 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 69 69 { 70 70 usage.usesTextureMode(GL_TEXTURE_GEN_S); OpenSceneGraph/trunk/include/osg/Texture
r5882 r6311 215 215 virtual GLenum getTextureTarget() const = 0; 216 216 217 virtual bool getModeUsage( ModeUsage& usage) const217 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 218 218 { 219 219 usage.usesTextureMode(getTextureTarget()); OpenSceneGraph/trunk/include/osg/VertexProgram
r5882 r6311 137 137 } 138 138 139 virtual bool getModeUsage( ModeUsage& usage) const139 virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const 140 140 { 141 141 usage.usesMode(GL_VERTEX_PROGRAM_ARB); OpenSceneGraph/trunk/include/osgSim/ImpostorSprite
r5757 r6311 129 129 virtual void drawImplementation(osg::State& state) const; 130 130 131 /** Return true, osg::ImpostorSprite does support accept( AttributeFunctor&). */132 virtual bool supports(const AttributeFunctor&) const { return true; }133 134 /** Accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */135 virtual void accept( AttributeFunctor& af);136 137 /** Return true, osg::ImpostorSprite does support accept( ConstAttributeFunctor&). */138 virtual bool supports(const ConstAttributeFunctor&) const { return true; }139 140 /** Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */141 virtual void accept( ConstAttributeFunctor& af) const;131 /** Return true, osg::ImpostorSprite does support accept(Drawable::AttributeFunctor&). */ 132 virtual bool supports(const Drawable::AttributeFunctor&) const { return true; } 133 134 /** Accept an Drawable::AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */ 135 virtual void accept(Drawable::AttributeFunctor& af); 136 137 /** Return true, osg::ImpostorSprite does support accept(Drawable::ConstAttributeFunctor&). */ 138 virtual bool supports(const Drawable::ConstAttributeFunctor&) const { return true; } 139 140 /** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */ 141 virtual void accept(Drawable::ConstAttributeFunctor& af) const; 142 142 143 143 /** Return true, osg::ImpostorSprite does support accept(PrimitiveFunctor&). */
