src/gl/compiler.cpp

changeset 338
719b909a7d2b
parent 333
07e65a4c6611
child 374
75efc3ba5a56
--- a/src/gl/compiler.cpp	Wed Jul 20 21:35:55 2022 +0300
+++ b/src/gl/compiler.cpp	Wed Jul 20 21:48:46 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)

mercurial