diff options
Diffstat (limited to 'include/mglpp/graphics/Image.hpp')
-rw-r--r-- | include/mglpp/graphics/Image.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/mglpp/graphics/Image.hpp b/include/mglpp/graphics/Image.hpp new file mode 100644 index 0000000..d8df2c3 --- /dev/null +++ b/include/mglpp/graphics/Image.hpp @@ -0,0 +1,27 @@ +#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); + unsigned char* data(); + size_t byte_size(); + vec2i size() const; + + mgl_image* internal_image(); + private: + mgl_image image; + }; +} + +#endif /* MGLPP_IMAGE_HPP */ |