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

#include "gfx/image.h"
#include "persistence.h"
#include "stdTypeDefs.hpp"

class TextureFragment : public Persistence::Persistable, public StdTypeDefs<TextureFragment> {
public:
	std::string id;
	std::string path;
	std::unique_ptr<Image> image;

private:
	friend Persistence::SelectionPtrBase<Ptr>;
	bool persist(Persistence::PersistenceStore & store) override;
	void postLoad() override;
};