Added flipDepth() method

This commit is contained in:
Robert Osfield
2011-10-21 10:59:42 +00:00
parent 088d00c651
commit d3cebab9a3
2 changed files with 37 additions and 2 deletions

View File

@@ -282,12 +282,14 @@ class OSG_EXPORT Image : public BufferData
Vec4 getColor(const Vec3& texcoord) const;
/** Flip the image horizontally. */
/** Flip the image horizontally, around s dimension. */
void flipHorizontal();
/** Flip the image vertically. */
/** Flip the image vertically, around t dimension. */
void flipVertical();
/** Flip the image around the r dimension. Only relevent for 3D textures. */
void flipDepth();
/** Ensure image dimensions are a power of two.
* Mipmapped textures require the image dimensions to be