src/glcompiler.h

changeset 1371
b8df4748d04e
parent 1326
69a90bd2dba2
child 1372
641060842b92
--- a/src/glcompiler.h	Mon Apr 02 10:59:38 2018 +0300
+++ b/src/glcompiler.h	Mon Apr 02 13:21:15 2018 +0300
@@ -20,6 +20,7 @@
 #include "main.h"
 #include "glrenderer.h"
 #include "glShared.h"
+#include "types/boundingbox.h"
 #include <QMap>
 #include <QSet>
 
@@ -35,6 +36,7 @@
 	~GLCompiler();
 
 	void initialize();
+	Vertex modelCenter();
 	void prepareVBO (int vbonum);
 	GLuint vbo (int vbonum) const;
 	int vboSize (int vbonum) const;
@@ -77,9 +79,11 @@
 	QSet<QPersistentModelIndex> m_staged; // Objects that need to be compiled
 	GLuint m_vbo[NumVbos];
 	bool m_vboChanged[NumVbos] = {true};
+	bool needBoundingBoxRebuild = true;
 	int m_vboSizes[NumVbos] = {0};
 	GLRenderer* m_renderer;
 	QItemSelectionModel* _selectionModel = nullptr;
+	BoundingBox boundingBox;
 
 private slots:
 	void handleRowInsertion(const QModelIndex&, int first, int last);

mercurial