src/polygoncache.h

Tue, 07 Jun 2022 20:44:19 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 07 Jun 2022 20:44:19 +0300
changeset 202
b05af0bab735
parent 200
ca23936b455b
child 206
654661eab7f3
permissions
-rw-r--r--

Replaced the tab widget with an MDI area

#pragma once
#include "main.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