blob: 2f7aed53cb803c1f1e47ae894fabe55e18411af6 (
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
|
#ifndef MGLPP_IMAGE_HPP
#define MGLPP_IMAGE_HPP
#include <string>
#include "../system/vec.hpp"
extern "C" {
#include <mgl/graphics/image.h>
}
namespace mgl {
class Image {
public:
Image();
~Image();
bool load_from_file(const std::string &filepath);
unsigned char* data();
size_t get_byte_size();
vec2i get_size() const;
mgl_image* internal_image();
private:
mgl_image image;
};
}
#endif /* MGLPP_IMAGE_HPP */
|