Add IGUIImage::flip to allow flipping/mirroring images.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6301 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien
2022-03-08 18:44:23 +00:00
parent 3da5987f4b
commit 3ad07543be
4 changed files with 63 additions and 1 deletions

View File

@ -74,7 +74,6 @@ public:
//! Returns bits per pixel.
u32 getBitsPerPixel() const
{
return getBitsPerPixelFromFormat(Format);
}
@ -359,6 +358,11 @@ public:
/** NOTE: mipmaps are ignored */
virtual void copyToScalingBoxFilter(IImage* target, s32 bias = 0, bool blend = false) = 0;
//! Flips (mirrors) the image in one or two directions
/** \param topBottom Flip around central x-axis (vertical flipping)
\param leftRight Flip around central y-axis (typical mirror, horizontal flipping) */
virtual void flip(bool topBottom, bool leftRight) = 0;
//! fills the surface with given color
virtual void fill(const SColor &color) =0;