Changed StateAttribute::getAssociatedModes(std::vector<GLMode>&) across

to StateAttribute::getModeUsage(StateAttribute::ModeUsage&).
This commit is contained in:
Robert Osfield
2004-03-03 15:38:22 +00:00
parent 4aa7afedf3
commit c8b8a81052
30 changed files with 126 additions and 92 deletions

View File

@@ -17,7 +17,6 @@
#include <osg/GL>
#include <osg/StateAttribute>
#include <osg/ref_ptr>
#include <osg/buffered_value>
#include <osg/Vec4>
@@ -51,9 +50,10 @@ class SG_EXPORT BlendColor : public StateAttribute
return 0; // passed all the above comparison macro's, must be equal.
}
virtual void getAssociatedModes(std::vector<GLMode>& modes) const
virtual bool getModeUsage(ModeUsage& usage) const
{
modes.push_back(GL_BLEND);
usage.usesMode(GL_BLEND);
return true;
}
void setConstantColor(const osg::Vec4& color) { _constantColor = color; }