Added virtual bool Texture::isDirty(contextID) method to help determine whether a GL texture object is likely to be out of date and needs updating
This commit is contained in:
@@ -654,6 +654,11 @@ class OSG_EXPORT Texture : public osg::StateAttribute
|
||||
|
||||
class TextureObject;
|
||||
|
||||
|
||||
/** return true if the texture image data has been modified and the associated GL texture object needs to be updated.*/
|
||||
virtual bool isDirty(unsigned int /*contextID*/) const { return false; }
|
||||
|
||||
|
||||
/** Returns a pointer to the TextureObject for the current context. */
|
||||
inline TextureObject* getTextureObject(unsigned int contextID) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user