Added osg::Image::flipHorziontal and flipVertical, submitted by Brede Johansen.

This commit is contained in:
Robert Osfield
2002-05-14 09:34:11 +00:00
parent 567989839a
commit 7301d1505a
2 changed files with 71 additions and 4 deletions

View File

@@ -109,6 +109,12 @@ class SG_EXPORT Image : public Object
if (!_data) return NULL;
return _data+(column*getPixelSizeInBits())/8+row*getRowSizeInBytes()+image*getImageSizeInBytes();
}
/** Flip the image horizontally.*/
void flipHorizontal(int image=0);
/** Flip the image vertically.*/
void flipVertical(int image=0);
/** Ensure image dimensions are a power of two.