src/polygoncache.h

Wed, 25 May 2022 17:25:24 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 25 May 2022 17:25:24 +0300
changeset 192
e6faeffed1d1
parent 183
97b591813c8b
child 193
b4beff48bb7a
permissions
-rw-r--r--

remove dead code

#pragma once
#include "main.h"
#include "model.h"

class PolygonCache : QObject
{
	Q_OBJECT
public:
	PolygonCache(Model* model);
	const 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;
};

mercurial