Added osg::Image::flipHorziontal and flipVertical, submitted by Brede Johansen.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user