From af64f953d4f01a7c7bd3415ff5edfff8d4f7c48d Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Tue, 6 Oct 2015 12:52:40 +0200 Subject: Initial commit --- src/mmscene.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/mmscene.h (limited to 'src/mmscene.h') diff --git a/src/mmscene.h b/src/mmscene.h new file mode 100644 index 0000000..8bfa74e --- /dev/null +++ b/src/mmscene.h @@ -0,0 +1,43 @@ +#ifndef MMSCENE_H +#define MMSCENE_H + +#include "glitem.h" + +class MMScene : public GLItem +{ + Q_OBJECT + +public: + MMScene(QQuickItem *parent = 0); + ~MMScene(); + +protected: + /** + * @brief paintUnderQmlScene + * Virtual function for painting under a QML scene. This function is called by paintBefore after + * calling createGeometries and initializing and binding the renderer. + * Overwrite in subclasses for painting geometries in m_points with the renderer. + */ + virtual void paintUnderQmlScene(); + /** + * @brief paintUnderQmlScene + * Virtual function for painting on top of a QML scene. This function is called by paintAfter after + * calling createGeometries and initializing and binding the renderer. + * Overwrite in subclasses for painting geometries in m_points with the renderer. + */ + virtual void paintOnTopOfQmlScene(); + /** + * @brief setupGeometry puts the geometric data into the arrays (m_Vertices etc.) and sets geometryIsValid flag. + */ + void setupGeometry(); + + /** + * @brief drawTriangles + * Draws two triangles. + */ + void drawTriangles(); + + +}; + +#endif // MMSCENE_H -- cgit v1.2.3-70-g09d2