src/glRenderer.h

changeset 984
a7b6f987d269
parent 979
880d3fe9ac7c
child 986
525921eae58c
equal deleted inserted replaced
983:05ba93066194 984:a7b6f987d269
86 { 86 {
87 for (int i = 0; i < 7; ++i) 87 for (int i = 0; i < 7; ++i)
88 { 88 {
89 if (i < 6) 89 if (i < 6)
90 { 90 {
91 overlays[i].img = null; 91 overlays[i].img = nullptr;
92 overlays[i].invalid = false; 92 overlays[i].invalid = false;
93 depthValues[i] = 0.0f; 93 depthValues[i] = 0.0f;
94 } 94 }
95 95
96 zoom[i] = 30.0; 96 zoom[i] = 30.0;
146 PROPERTY (public, GLCompiler*, compiler, setCompiler, STOCK_WRITE) 146 PROPERTY (public, GLCompiler*, compiler, setCompiler, STOCK_WRITE)
147 PROPERTY (public, LDObject*, objectAtCursor, setObjectAtCursor, STOCK_WRITE) 147 PROPERTY (public, LDObject*, objectAtCursor, setObjectAtCursor, STOCK_WRITE)
148 PROPERTY (private, bool, isCameraMoving, setCameraMoving, STOCK_WRITE) 148 PROPERTY (private, bool, isCameraMoving, setCameraMoving, STOCK_WRITE)
149 149
150 public: 150 public:
151 GLRenderer (QWidget* parent = null); 151 GLRenderer (QWidget* parent = nullptr);
152 ~GLRenderer(); 152 ~GLRenderer();
153 153
154 inline ECamera camera() const; 154 inline ECamera camera() const;
155 void clearOverlay(); 155 void clearOverlay();
156 void compileObject (LDObject* obj); 156 void compileObject (LDObject* obj);

mercurial