summaryrefslogtreecommitdiff
path: root/assetFactory/factoryMesh.h
blob: f71c73774dee01181938970acd5878d6a8fb054d (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.h"
#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;
};