Sun, 09 Apr 2023 12:23:32 +0300
`PartRenderer::renderVao` no longer throws if bad array class is given, this is now checked on compile time
#pragma once #include <QTextDocument> #include "src/basics.h" #include "src/model.h" #include "src/gl/common.h" template<typename T> struct WithId : T { std::int32_t linenumber; }; struct PolygonCache { using vector_type = std::vector<WithId<PolygonElement>>; vector_type polygons; bool needRecache = true; }; void recacheIfNeeded( PolygonCache* cache, QTextDocument* model, class DocumentManager* documents); PolygonCache* findPolygonCacheForModel(QTextDocument* model, DocumentManager* context);