aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/graphics/transform_struct.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/graphics/transform_struct.h')
-rw-r--r--engines/wintermute/graphics/transform_struct.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/engines/wintermute/graphics/transform_struct.h b/engines/wintermute/graphics/transform_struct.h
index acde410e89..a54c4cc5d0 100644
--- a/engines/wintermute/graphics/transform_struct.h
+++ b/engines/wintermute/graphics/transform_struct.h
@@ -27,12 +27,12 @@
#include "engines/wintermute/dctypes.h"
namespace Wintermute {
-/**
+/**
* Contains all the required information that define a transform.
* Same source sprite + same TransformStruct = Same resulting sprite.
* Has a number of overloaded constructors to accomodate various argument lists.
*/
-
+
const uint32 kDefaultZoomX = 100;
const uint32 kDefaultZoomY = 100;
const uint32 kDefaultRgbaMod = 0xFFFFFFFF;
@@ -41,9 +41,9 @@ const int32 kDefaultHotspotY = 0;
const int32 kDefaultOffsetX = 0;
const int32 kDefaultOffsetY = 0;
const int32 kDefaultAngle = 0;
-
+
struct TransformStruct {
-private:
+private:
void init(Point32 zoom, uint32 angle, Point32 hotspot, bool alphaDisable, TSpriteBlendMode blendMode, uint32 alpha, bool mirrorX, bool mirrorY, Point32 offset);
public:
@@ -51,16 +51,16 @@ public:
TransformStruct(int32 zoomX, int32 zoomY, TSpriteBlendMode blendMode, uint32 alpha, bool mirrorX = false, bool mirrorY = false);
TransformStruct(int32 zoomX, int32 zoomY, uint32 angle, int32 hotspotX = 0, int32 hotspotY = 0);
TransformStruct();
-
- Point32 _zoom; ///< Zoom; 100 = no zoom
+
+ Point32 _zoom; ///< Zoom; 100 = no zoom
Point32 _hotspot; ///< Position of the hotspot
- uint32 _angle; ///< Rotation angle, in degrees
- byte _flip; ///< Bitflag: see TransparentSurface::FLIP_XXX
+ uint32 _angle; ///< Rotation angle, in degrees
+ byte _flip; ///< Bitflag: see TransparentSurface::FLIP_XXX
bool _alphaDisable;
TSpriteBlendMode _blendMode;
- uint32 _rgbaMod; ///< RGBa
- Point32 _offset;
-
+ uint32 _rgbaMod; ///< RGBa
+ Point32 _offset;
+
bool getMirrorX() const;
bool getMirrorY() const;
@@ -72,9 +72,9 @@ public:
compare._alphaDisable == _alphaDisable &&
compare._rgbaMod == _rgbaMod &&
compare._blendMode == _blendMode
- );
+ );
}
-
+
bool operator!=(const TransformStruct &compare) const {
return !(compare == *this);
}