--- a/src/gl/compiler.h Sat Feb 01 15:49:28 2020 +0200 +++ b/src/gl/compiler.h Sat Feb 01 17:10:11 2020 +0200 @@ -48,10 +48,10 @@ public: Compiler(const ldraw::ColorTable& colorTable, QObject* parent); ~Compiler(); - void build(Model* model, DocumentManager* context); - void buildPolygon(Polygon polygon, std::vector<Vertex>* vboData); + void build(Model* model, DocumentManager* context, const RenderPreferences& preferences); + void buildPolygon(Polygon polygon, std::vector<Vertex>* vboData, const gl::RenderPreferences& preferences); std::size_t vertexCount(gl::ArrayClass arrayClass) const; - QColor getColorForPolygon(const gl::Polygon& polygon); + QColor getColorForPolygon(const gl::Polygon& polygon, const RenderPreferences& preferences); glm::vec3 modelCenter() const; double modelDistance() const; void initialize();