Added support in Image::flipVertical for flipping mipmapped imagery

and for flipping compressed imagery.
This commit is contained in:
Robert Osfield
2004-08-16 20:57:24 +00:00
parent bb6fe74738
commit cf99c3c9bd
2 changed files with 89 additions and 40 deletions

View File

@@ -181,10 +181,10 @@ class SG_EXPORT Image : public Object
}
/** Flip the image horizontally.*/
void flipHorizontal(int image=0);
void flipHorizontal();
/** Flip the image vertically.*/
void flipVertical(int image=0);
void flipVertical();
/** Ensure image dimensions are a power of two.
@@ -236,9 +236,6 @@ class SG_EXPORT Image : public Object
};
/** converts a single image into mip mapped version image.*/
void computeMipMaps();
/** return true of this image is translucent - i.e. it has alpha values that are less 1.0 (when normalized).*/
bool isImageTranslucent() const;