equal
deleted
inserted
replaced
19 #include "hgquad.h" |
19 #include "hgquad.h" |
20 #include "hgtransformedquad.h" |
20 #include "hgtransformedquad.h" |
21 #include "trace.h" |
21 #include "trace.h" |
22 #include "hgimage.h" |
22 #include "hgimage.h" |
23 |
23 |
24 #include <qvector2d> |
24 #include <QVector2D> |
25 #include <qpolygon> |
25 #include <QPolygon> |
26 #include <qmatrix4x4> |
26 #include <QMatrix4x4> |
27 #include <qpainter> |
27 #include <QPainter> |
28 #include <qpixmapcache> |
28 #include <QPixmapCache> |
29 |
29 |
30 |
30 |
31 class HgQtImage : public HgImage |
31 class HgQtImage : public HgImage |
32 { |
32 { |
33 public: |
33 public: |
34 HgQtImage(HgQtQuadRenderer* renderer) |
34 HgQtImage(HgQtQuadRenderer* renderer) |
35 { |
35 { |
36 |
36 Q_UNUSED(renderer) |
37 } |
37 } |
38 |
38 |
39 ~HgQtImage() |
39 ~HgQtImage() |
40 { |
40 { |
41 } |
41 } |
88 return mPixmap; |
88 return mPixmap; |
89 } |
89 } |
90 |
90 |
91 const QPixmap& mirrorPixmap(QPainter* painter) |
91 const QPixmap& mirrorPixmap(QPainter* painter) |
92 { |
92 { |
|
93 Q_UNUSED(painter) |
93 |
94 |
94 return mPixmap; |
95 return mPixmap; |
95 /* |
96 /* |
96 if (mPixmap.isNull()) |
97 if (mPixmap.isNull()) |
97 return mPixmap; |
98 return mPixmap; |
251 void HgQtQuadRenderer::drawQuads(QPainter* painter, const QRectF& rect, |
252 void HgQtQuadRenderer::drawQuads(QPainter* painter, const QRectF& rect, |
252 const QMatrix4x4& viewMatrix, const QMatrix4x4& projectionMatrix, |
253 const QMatrix4x4& viewMatrix, const QMatrix4x4& projectionMatrix, |
253 Qt::Orientation orientation, |
254 Qt::Orientation orientation, |
254 const QTransform& sceneTransform) |
255 const QTransform& sceneTransform) |
255 { |
256 { |
|
257 Q_UNUSED(orientation) |
|
258 Q_UNUSED(sceneTransform) |
256 |
259 |
257 transformQuads(viewMatrix, projectionMatrix, |
260 transformQuads(viewMatrix, projectionMatrix, |
258 QPointF(rect.width()/2, rect.height()/2), QSizeF(rect.width(), rect.height())); |
261 QPointF(rect.width()/2, rect.height()/2), QSizeF(rect.width(), rect.height())); |
259 |
262 |
260 // save old transform |
263 // save old transform |