--- a/src/gl/compiler.h Wed Jan 01 17:45:56 2020 +0200 +++ b/src/gl/compiler.h Sun Jan 19 02:54:48 2020 +0200 @@ -48,15 +48,18 @@ void buildPolygon(Polygon polygon, std::vector<GLfloat>* vboData); void upload(const int vboIndex, const std::vector<GLfloat>& data); GLuint vbo(const VboAddress vboAddress) const; - int vboSize(const VboAddress vboAddress) const; + std::size_t vboSize(const VboAddress vboAddress) const; QColor getColorForPolygon(const gl::Polygon& polygon, VboSubclass subclass); void writeColor(std::vector<GLfloat>* data, const gl::Polygon& polygon, VboSubclass subclass); + Point3D modelCenter() const; + double modelDistance() const; private: void initializeVbo(); GLuint storedVbo[gl::numVbos]; bool m_vboChanged[gl::numVbos] = {true}; - int storedVboSizes[gl::numVbos] = {0}; + std::size_t storedVboSizes[gl::numVbos] = {0_z}; bool initialized = false; + BoundingBox boundingBox; }; #define CHECK_GL_ERROR() { checkGLError(__FILE__, __LINE__); }