equal
deleted
inserted
replaced
18 #include "hgvgquadrenderer.h" |
18 #include "hgvgquadrenderer.h" |
19 #include "hgtransformedquad.h" |
19 #include "hgtransformedquad.h" |
20 #include "hgquad.h" |
20 #include "hgquad.h" |
21 #include "hgvgimage.h" |
21 #include "hgvgimage.h" |
22 #include "trace.h" |
22 #include "trace.h" |
23 #include "HgImageFader.h" |
23 #include "hgimagefader.h" |
24 |
24 |
25 #include <VG/openvg.h> |
25 #include <VG/openvg.h> |
26 #include <VG/vgu.h> |
26 #include <VG/vgu.h> |
27 #include <qvector2d> |
27 #include <QVector2D> |
28 #include <qpolygon> |
28 #include <QPolygon> |
29 #include <qmatrix4x4> |
29 #include <QMatrix4x4> |
30 #include <qpainter> |
30 #include <QPainter> |
31 |
|
32 |
31 |
33 static void matrixFromTransform(VGfloat* matrix, const QTransform& tm) |
32 static void matrixFromTransform(VGfloat* matrix, const QTransform& tm) |
34 { |
33 { |
35 matrix[0] = tm.m11(); |
34 matrix[0] = tm.m11(); |
36 matrix[1] = tm.m12(); |
35 matrix[1] = tm.m12(); |
138 private: |
137 private: |
139 |
138 |
140 void computeWarpMatrix(VGfloat* matrix, int pxWidth, int pxHeight, const QVector2D* points, |
139 void computeWarpMatrix(VGfloat* matrix, int pxWidth, int pxHeight, const QVector2D* points, |
141 const QVector2D& translate) |
140 const QVector2D& translate) |
142 { |
141 { |
|
142 Q_UNUSED(translate) |
143 |
143 |
144 vguComputeWarpQuadToQuad( |
144 vguComputeWarpQuadToQuad( |
145 points[0].x(), points[0].y(), |
145 points[0].x(), points[0].y(), |
146 points[1].x(), points[1].y(), |
146 points[1].x(), points[1].y(), |
147 points[2].x(), points[2].y(), |
147 points[2].x(), points[2].y(), |