diff -r cd6704009eb9 -r 3c10f0e2fbe0 src/gl/partrenderer.h --- a/src/gl/partrenderer.h Thu Feb 06 23:41:20 2020 +0200 +++ b/src/gl/partrenderer.h Fri Feb 07 01:58:34 2020 +0200 @@ -22,6 +22,7 @@ QWidget* parent = nullptr); ~PartRenderer() override; void setRenderPreferences(const gl::RenderPreferences& newPreferences); + void setHighlight(ldraw::Id highlightedId); protected: ldraw::Id pick(const QPoint& where); void initializeGL() override; @@ -43,6 +44,7 @@ glm::mat4 projectionMatrix; glm::mat4 viewMatrix; glm::quat modelQuaternion; + ldraw::Id highlighted = ldraw::NULL_ID; static constexpr double MIN_ZOOM = 0.0; static constexpr double MAX_ZOOM = 3.0; double zoom = 1.0;