summaryrefslogtreecommitdiff
path: root/assetFactory/factoryMesh.h
blob: bbeb870dce289d73c30e8d2032534f780ce52f36 (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>>;
	bool persist(Persistence::PersistenceStore & store) override;
};