summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-06-30 12:21:03 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-06-30 12:21:03 (GMT)
commit23f589030f41166ccb0b650cba83c5569787b9c4 (patch)
tree09b375467e9bd47b8103dc3f9faa374edcf9fe76 /src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
parent351e890aa13faac69a0ceaa8cb02660b2275cf82 (diff)
downloadQt-23f589030f41166ccb0b650cba83c5569787b9c4.zip
Qt-23f589030f41166ccb0b650cba83c5569787b9c4.tar.gz
Qt-23f589030f41166ccb0b650cba83c5569787b9c4.tar.bz2
Added drawTexture function to GL 2 paint engine.
Works just like drawImage / drawPixmap but uses the given texture id.
Diffstat (limited to 'src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
index f8d3b53..5e15f40 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
@@ -115,9 +115,10 @@ public:
virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr);
-
virtual void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr,
Qt::ImageConversionFlags flags = Qt::AutoColor);
+ virtual void drawTexture(const QRectF &r, GLuint textureId, const QSize &size, const QRectF &sr);
+
virtual void drawTextItem(const QPointF &p, const QTextItem &textItem);
Type type() const { return OpenGL; }