summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/tank/quadplane.h
diff options
context:
space:
mode:
authorSergey Dubitskiy <sergey.dubitskiy@nokia.com>2012-02-13 14:27:29 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-14 01:37:52 +0100
commit35e1fc8ae0ef05eb59c55de707813233757de456 (patch)
tree943869f40c9f571840749d79f2b0265a52fae5b8 /examples/qt3d/tank/quadplane.h
parent00d127f73034c0aa4b21db5ef13490ea2ddf65b8 (diff)
Resource handling needs refactoring.
Phase Two: Fix all C++based demos/examples/tutorials. Call cleanupResources() for all textures created. Task-number: QTBUG-24043 Change-Id: I4bef23f7fe56e092de79bb91b41d6d691329b2cf Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com> Reviewed-by: Danny Pope <daniel.pope@nokia.com>
Diffstat (limited to 'examples/qt3d/tank/quadplane.h')
-rw-r--r--examples/qt3d/tank/quadplane.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/qt3d/tank/quadplane.h b/examples/qt3d/tank/quadplane.h
index db2aee6f3..0bb3f122a 100644
--- a/examples/qt3d/tank/quadplane.h
+++ b/examples/qt3d/tank/quadplane.h
@@ -50,6 +50,10 @@ class QuadPlane : public QGLSceneNode
public:
QuadPlane(QObject *parent = 0,
QSizeF size = QSizeF(100.0f, 100.0f), int level = 3);
+ ~QuadPlane();
+
+private:
+ QGLTexture2D *m_texture;
};
#endif // QUADPLANE_H