src/polygoncache.h

changeset 150
b6cbba6e29a1
child 183
97b591813c8b
equal deleted inserted replaced
148:e1ced2523cad 150:b6cbba6e29a1
1 #pragma once
2 #include "main.h"
3 #include "model.h"
4
5 class PolygonCache : QObject
6 {
7 Q_OBJECT
8 public:
9 PolygonCache(Model* model);
10 std::vector<gl::Polygon> getPolygons(class DocumentManager* documents);
11 private:
12 void getObjectPolygons(
13 const int index,
14 std::vector<gl::Polygon>& polygons_out,
15 ldraw::GetPolygonsContext* context) const;
16 Model* const model;
17 std::vector<gl::Polygon> cachedPolygons;
18 bool needRecache = true;
19 };

mercurial