Sat, 05 Mar 2022 13:19:59 +0200
only render svg to png if the png does not exist
#pragma once #include "main.h" #include "model.h" class PolygonCache : QObject { Q_OBJECT public: PolygonCache(Model* model); std::vector<gl::Polygon> getPolygons(class DocumentManager* documents); private: void getObjectPolygons( const int index, std::vector<gl::Polygon>& polygons_out, ldraw::GetPolygonsContext* context) const; Model* const model; std::vector<gl::Polygon> cachedPolygons; bool needRecache = true; };