summaryrefslogtreecommitdiff
path: root/assetFactory/factoryMesh.h
blob: 4b6d3e5ce119367ea9e231df0a8185d2103606db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "gfx/models/mesh.h"
#include "stdTypeDefs.hpp"
#include "use.h"

class FactoryMesh : public Persistence::Persistable, public StdTypeDefs<FactoryMesh> {
public:
	Mesh::Ptr createMesh() const;

	std::string id;
	glm::vec3 size;
	Use::Collection uses;

private:
	friend Persistence::SelectionPtrBase<std::shared_ptr<FactoryMesh>, true>;
	bool persist(Persistence::PersistenceStore & store) override;
};