blob: 6c99fee24ad307745ed4ae5c6dad4586f9712745 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include "gfx/image.h"
#include "gfx/models/texture.h"
#include "persistence.h"
#include "stdTypeDefs.h"
#include "worker.h"
class TextureFragment : public Persistence::Persistable, public StdTypeDefs<TextureFragment> {
public:
std::string id;
std::string path;
TextureOptions::MapMode mapmodeU, mapmodeV;
Worker::WorkPtrT<std::unique_ptr<Image>> image;
private:
friend Persistence::SelectionPtrBase<Ptr>;
bool persist(Persistence::PersistenceStore & store) override;
void postLoad() override;
};
|