src/polygoncache.h

Wed, 08 Jun 2022 22:29:44 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 08 Jun 2022 22:29:44 +0300
changeset 206
654661eab7f3
parent 200
ca23936b455b
child 210
232e7634cc8a
permissions
-rw-r--r--

More refactor, merged main.h, basics.h and utility.h into one header file basics.h and removed plenty of unused 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