blob: c584a7bc0e71802547dd021361b3dd819a78fb27 (
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
|
#ifndef MGLPP_TEXTURE_HPP
#define MGLPP_TEXTURE_HPP
#include "../system/vec.hpp"
extern "C" {
#include <mgl/graphics/texture.h>
}
namespace mgl {
class Texture {
public:
Texture();
~Texture();
bool load_from_file(const char *filepath);
vec2i get_size() const;
bool is_valid() const;
mgl_texture* internal_texture();
private:
mgl_texture texture;
};
}
#endif /* MGLPP_TEXTURE_HPP */
|