Added osg::Image::dirtyImage() and setModifiedTag() to allow external

updating of the image modified flag to be used in conjunction with
texture subloading.
This commit is contained in:
Robert Osfield
2001-11-18 21:31:16 +00:00
parent 3ff4fb6b50
commit 969f757679
2 changed files with 13 additions and 1 deletions

View File

@@ -69,7 +69,13 @@ class SG_EXPORT Image : public Object
*/
void ensureDimensionsArePowerOfTwo();
/** Get modified tag value. */
/** Dirty the image, which increments the modified flag, to force osg::Texture to reload the image.*/
inline void dirtyImage() { ++_modifiedTag; }
/** Set the modified tag value, only used by osg::Texture when using texture subloading. */
inline void setModifiedTag(const unsigned int value) { _modifiedTag=value; }
/** Get modified tag value, only used by osg::Texture when using texture subloading. */
inline const unsigned int getModifiedTag() const { return _modifiedTag; }
protected :