blob: 6d3fb40627fe43ad4f1ac0e6e471694e51932ec1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include "Asset.h"
#include <SDL2/SDL_render.h>
#include <memory>
namespace crepe {
class SdlContext;
}
namespace crepe::api {
class Texture {
public:
Texture(const char * src);
Texture(std::unique_ptr<Asset> res);
~Texture();
private:
void load(std::unique_ptr<Asset> res);
private:
SDL_Texture * m_texture = nullptr;
friend class crepe::SdlContext;
};
} // namespace crepe::api
|