3 #include "PaintEngine.h" 7 #include "qpainterpath.h" 15 enum ClipType { RegionClip, PathClip, RectClip, RectFClip };
17 clipType(RectClip), matrix(m), operation(op), rect(r) { }
21 ClipOperation operation;
35 virtual void SetSpriteTransform(
const Matrix4 * pMatrix = NULL);
38 virtual bool IsSpriteUseWorldMatrix(){
return false; };
43 QBrush backgroundBrush()
const;
50 ClipOperation clipOperation()
const;
53 bool isClipEnabled()
const;
55 CPainter::CompositionMode compositionMode()
const;
56 float opacity()
const;
61 void AddPendingAsset(
int nCount = 1);
66 void CalculateDeviceMatrix(
Matrix4* pOut,
const Matrix4* pIn = NULL);
75 ClipOperation m_clipOperation;
76 std::vector<CPainterClipInfo> m_clipInfo;
84 int m_viewportX, m_viewportY, m_viewportWidth, m_viewportHeight;
85 float m_fViewportLeft;
94 bool m_clipEnabled : 1;
100 CPainter::CompositionMode m_composition_mode;
currently only RectClip is supported, since we are using Scissor Rect on GPU to do the clipping...
Definition: PainterState.h:12
The QPen class defines how a CPainter should draw lines and outlines of shapes.
Definition: qpen.h:13
Definition: ParaPoint.h:203
Matrix4 matComplete
final complete transform
Definition: PainterState.h:81
different physics engine has different winding order.
Definition: EventBinding.h:32
virtual void SetSpriteUseWorldMatrix(bool bEnable)
set sprite use world matrix.
Definition: PainterState.h:37
when concerting QRect with QRectF and RECT, we ensure that their left, top and width, height are the same.
Definition: ParaRect.h:16
Definition: PainterState.h:25
The QBrush class defines the fill pattern of shapes drawn by CPainter.
Definition: qbrush.h:11
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: ParaMatrix4.h:23
base class for a surface to paint to.
Definition: Painter.h:38
Definition: PainterState.h:104
int m_nPendingAssetCount
number of texture that is being loaded, but not available at the time of drawing. ...
Definition: PainterState.h:98
Definition: ParaRegion.h:7
painter state, such as selected pen, brush, etc.
Definition: PaintEngine.h:178
Definition: ParaColor.h:275
Definition: qpainterpath.h:18