Wed, 08 Jun 2022 20:41:21 +0300
Refactor colors.cpp/.h
#pragma once #include "main.h" #include "model.h" #include "gl/common.h" struct GetPolygonsContext { ModelId modelId; class DocumentManager* documents; }; struct PolygonCache { std::vector<gl::Polygon> cachedPolygons; bool needRecache = true; }; const std::vector<gl::Polygon>& getCachedPolygons( PolygonCache* cache, Model* model, class DocumentManager* documents);