Added osg:State:have_applied_mode(mode) and have_applied_attribute(type) to make it

easier to specify which modes and attributes have been modified without
the user requiring to know to what value, or to have an equivilant attribute
to pass to the have_applied_attribute method.  The original have_applied(mode)
and have_applied(attribute) methods have been renamed have_applied_mode(),
have_applied_attribute() as this was required to prevent the mode and type
values colliding during compile (it was causing a compile error when the method
names were the same.)
This commit is contained in:
Robert Osfield
2002-03-21 12:00:10 +00:00
parent b53b3038eb
commit a364875afb
3 changed files with 46 additions and 6 deletions

View File

@@ -565,7 +565,7 @@ void Texture::copyTexImage2D(State& state, int x, int y, int width, int height )
// cout<<"copyTexImage2D x="<<x<<" y="<<y<<" w="<<width<<" h="<<height<< std::endl;
// inform state that this texture is the current one bound.
state.have_applied(this);
state.have_applied_attribute(this);
}
void Texture::copyTexSubImage2D(State& state, int xoffset, int yoffset, int x, int y, int width, int height )
@@ -586,7 +586,7 @@ void Texture::copyTexSubImage2D(State& state, int xoffset, int yoffset, int x, i
glBindTexture( _target, handle );
// inform state that this texture is the current one bound.
state.have_applied(this);
state.have_applied_attribute(this);
}
else