diff -r 64ea7282611e -r 815fbaae9cb2 src/gl/partrenderer.h --- a/src/gl/partrenderer.h Tue May 24 16:11:10 2022 +0300 +++ b/src/gl/partrenderer.h Wed May 25 12:01:58 2022 +0300 @@ -11,7 +11,7 @@ #include "gl/common.h" #include "gl/compiler.h" -class PartRenderer : public QOpenGLWidget, protected QOpenGLFunctions +class PartRenderer : public QOpenGLWidget { Q_OBJECT public: @@ -33,7 +33,8 @@ Model* const model; DocumentManager* const documents; const ldraw::ColorTable& colorTable; - gl::Compiler* const compiler; + BoundingBox boundingBox; + gl::ModelShaders shaders; ldraw::id_t highlighted = ldraw::NULL_ID; std::optional screenToModelCoordinates(const QPoint& point, const geom::Plane& plane) const; QPointF modelToScreenCoordinates(const glm::vec3& point) const; @@ -53,11 +54,9 @@ void renderPreferencesChanged(); private: void setFragmentStyle(gl::FragmentStyle fragStyle); - void renderAllArrays(); void renderScene(); void updateViewMatrix(); void updateModelMatrix(); - void setupBackgroundColor(); Q_SLOT void build(); double zoom = 1.0; bool initialized = false;