22 #ifndef GRAPHICS_TRANSFORM_STRUCT_H 23 #define GRAPHICS_TRANSFORM_STRUCT_H 25 #include "common/rect.h" 29 enum TSpriteBlendMode {
33 BLEND_SUBTRACTIVE = 2,
55 FLIP_HV = FLIP_H | FLIP_V,
57 FLIP_VH = FLIP_H | FLIP_V
66 const int32 kDefaultZoomX = 100;
67 const int32 kDefaultZoomY = 100;
68 const uint32 kDefaultRgbaMod = 0xFFFFFFFF;
69 const int32 kDefaultHotspotX = 0;
70 const int32 kDefaultHotspotY = 0;
71 const int32 kDefaultOffsetX = 0;
72 const int32 kDefaultOffsetY = 0;
73 const int32 kDefaultAngle = 0;
80 TransformStruct(int32 zoomX, int32 zoomY, uint32 angle, int32 hotspotX, int32 hotspotY, TSpriteBlendMode blendMode, uint32 alpha,
bool mirrorX =
false,
bool mirrorY =
false, int32 offsetX = 0, int32 offsetY = 0);
81 TransformStruct(
float zoomX,
float zoomY, uint32 angle, int32 hotspotX, int32 hotspotY, TSpriteBlendMode blendMode, uint32 alpha,
bool mirrorX =
false,
bool mirrorY =
false, int32 offsetX = 0, int32 offsetY = 0);
82 TransformStruct(int32 zoomX, int32 zoomY, TSpriteBlendMode blendMode, uint32 alpha,
bool mirrorX =
false,
bool mirrorY =
false);
83 TransformStruct(int32 zoomX, int32 zoomY, uint32 angle, int32 hotspotX = 0, int32 hotspotY = 0);
92 TSpriteBlendMode _blendMode;
98 bool getMirrorX()
const;
99 bool getMirrorY()
const;
102 return (compare.
_angle == _angle &&
103 compare.
_flip == _flip &&
104 compare.
_zoom == _zoom &&
105 compare._offset == _offset &&
106 compare._alphaDisable == _alphaDisable &&
108 compare._blendMode == _blendMode &&
109 compare._numTimesX == _numTimesX &&
110 compare._numTimesY == _numTimesY
115 return !(compare == *
this);
Definition: formatinfo.h:28