src/glcompiler.h

changeset 1436
241d3e452b32
parent 1427
b7ba2af33c13
child 1440
265b2e95a8e8
--- a/src/glcompiler.h	Thu Dec 27 23:41:06 2018 +0200
+++ b/src/glcompiler.h	Fri Dec 28 00:03:47 2018 +0200
@@ -24,16 +24,22 @@
 #include <QMap>
 #include <QSet>
 
+namespace gl
+{
+	class Compiler;
+	class Renderer;
+}
+
 /*
  * Compiles LDObjects into polygons for the GLRenderer to draw.
  */
-class GLCompiler : public QObject, public HierarchyElement, protected QOpenGLFunctions
+class gl::Compiler : public QObject, public HierarchyElement, protected QOpenGLFunctions
 {
 	Q_OBJECT
 
 public:
-	GLCompiler (GLRenderer* renderer);
-	~GLCompiler();
+	Compiler (Renderer* renderer);
+	~Compiler();
 
 	void initialize();
 	Vertex modelCenter();
@@ -76,7 +82,7 @@
 	bool m_vboChanged[NumVbos] = {true};
 	bool needBoundingBoxRebuild = true;
 	int m_vboSizes[NumVbos] = {0};
-	GLRenderer* m_renderer;
+	gl::Renderer* m_renderer;
 	QItemSelectionModel* _selectionModel = nullptr;
 	BoundingBox boundingBox;
 

mercurial