src/gl/partrenderer.cpp

changeset 35
98906a94732f
parent 34
1de2b8d64e9f
child 37
90443fb328ea
equal deleted inserted replaced
34:1de2b8d64e9f 35:98906a94732f
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}}

mercurial