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:
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user