--- a/src/gl/compiler.cpp Sat Jul 23 01:38:06 2022 +0300 +++ b/src/gl/compiler.cpp Sat Jul 23 01:38:43 2022 +0300 @@ -222,7 +222,7 @@ } template<typename Fn> -void iterateModelPolygons(Model* model, DocumentManager* context, Fn&& fn) +void iterateModelPolygons(QTextDocument* model, DocumentManager* context, Fn&& fn) { PolygonCache* const cache = findPolygonCacheForModel(model, context); if (cache != nullptr) { @@ -260,7 +260,7 @@ /** * @brief Computes the minimum bounding box for a model */ -BoundingBox gl::boundingBoxForModel(Model* model, DocumentManager* context) +BoundingBox gl::boundingBoxForModel(QTextDocument* model, DocumentManager* context) { BoundingBox result = emptyBoundingBox; iterateModelPolygons(model, context, [&](const PolygonElement& polygon) @@ -277,7 +277,7 @@ */ void gl::build( gl::ModelShaders* shaders, - Model* model, + QTextDocument* model, const ColorTable& colorTable, DocumentManager* context, const gl::RenderPreferences& preferences)