src/polygoncache.h

Tue, 07 Jun 2022 21:35:29 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 07 Jun 2022 21:35:29 +0300
changeset 203
1909a0123c72
parent 200
ca23936b455b
child 206
654661eab7f3
permissions
-rw-r--r--

Move editing modes tool bar, tool options widget stack and model list view into the main window

#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