src/gl/partrenderer.h

changeset 291
42b4953dff85
parent 264
76a025db4948
child 309
d862721d19a3
equal deleted inserted replaced
290:0fd926ebb03b 291:42b4953dff85
1 #pragma once 1 #pragma once
2 #include <QOpenGLWidget>
3 #include <QOpenGLDebugLogger>
4 #include "src/basics.h" 2 #include "src/basics.h"
5 #include "src/documentmanager.h" 3 #include "src/documentmanager.h"
6 #include "src/types/boundingbox.h" 4 #include "src/types/boundingbox.h"
7 #include "src/gl/common.h" 5 #include "src/gl/common.h"
8 #include "src/gl/compiler.h" 6 #include "src/gl/compiler.h"
7 #include <QOpenGLWidget>
9 8
10 class PartRenderer final : public QOpenGLWidget 9 class PartRenderer final : public QOpenGLWidget
11 { 10 {
12 Q_OBJECT 11 Q_OBJECT
13 Model* const model; 12 Model* const model;
28 bool initialized = false; 27 bool initialized = false;
29 bool needBuild = true; 28 bool needBuild = true;
30 std::vector<RenderLayer*> activeRenderLayers; 29 std::vector<RenderLayer*> activeRenderLayers;
31 std::vector<RenderLayer*> inactiveRenderLayers; 30 std::vector<RenderLayer*> inactiveRenderLayers;
32 bool frozen = false; 31 bool frozen = false;
33 QOpenGLDebugLogger logger;
34 public: 32 public:
35 PartRenderer( 33 PartRenderer(
36 Model* model, 34 Model* model,
37 DocumentManager* documents, 35 DocumentManager* documents,
38 const ColorTable& colorTable, 36 const ColorTable& colorTable,

mercurial