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