22#ifndef GRAPHICS_TRANSFORM_STRUCT_H
23#define GRAPHICS_TRANSFORM_STRUCT_H
25#include "common/rect.h"
29enum TSpriteBlendMode {
33 BLEND_SUBTRACTIVE = 2,
67const int32 kDefaultZoomY = 100;
68const uint32 kDefaultRgbaMod = 0xFFFFFFFF;
69const int32 kDefaultHotspotX = 0;
70const int32 kDefaultHotspotY = 0;
71const int32 kDefaultOffsetX = 0;
72const int32 kDefaultOffsetY = 0;
73const 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;
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
const int32 kDefaultZoomX
Definition: transform_struct.h:66
FLIP_FLAGS
The possible flipping parameters for the blit method.
Definition: transform_struct.h:47
@ FLIP_VH
The image will be flipped at the horizontal and vertical axis.
Definition: transform_struct.h:57
@ FLIP_V
The image will be flipped at the vertical axis.
Definition: transform_struct.h:53
@ FLIP_NONE
The image will not be flipped.
Definition: transform_struct.h:49
@ FLIP_HV
The image will be flipped at the horizontal and vertical axis.
Definition: transform_struct.h:55
@ FLIP_H
The image will be flipped at the horizontal axis.
Definition: transform_struct.h:51