21 #include <glm/ext/matrix_clip_space.hpp> |
21 #include <glm/ext/matrix_clip_space.hpp> |
22 #include <QMouseEvent> |
22 #include <QMouseEvent> |
23 #include <QMessageBox> |
23 #include <QMessageBox> |
24 #include "partrenderer.h" |
24 #include "partrenderer.h" |
25 |
25 |
26 PartRenderer::PartRenderer(Model* model, DocumentManager* documents, const ColorTable& colorTable, QWidget* parent) : |
26 PartRenderer::PartRenderer( |
|
27 Model* model, |
|
28 DocumentManager* documents, |
|
29 const ldraw::ColorTable& colorTable, |
|
30 QWidget* parent) : |
27 QOpenGLWidget{parent}, |
31 QOpenGLWidget{parent}, |
28 model{model}, |
32 model{model}, |
29 documents{documents}, |
33 documents{documents}, |
30 colorTable{colorTable}, |
34 colorTable{colorTable}, |
31 compiler{new gl::Compiler{this->colorTable, this}} |
35 compiler{new gl::Compiler{this->colorTable, this}} |