src/polygoncache.h

Thu, 09 Jun 2022 11:51:42 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 09 Jun 2022 11:51:42 +0300
changeset 209
c93e4a1eaadb
parent 206
654661eab7f3
child 210
232e7634cc8a
permissions
-rw-r--r--

remove more dead code

#pragma once
#include "basics.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);

mercurial