blob: e6f07f3a88b145a32af8ed7ebb6f68cf90416b7a (
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.hpp"
#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;
};
|