diff options
author | chai <chaifix@163.com> | 2018-05-16 15:02:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-16 15:02:43 +0800 |
commit | fdaf0e7eb6b9d9bdd7d5ab5f814f4ebbf791ff67 (patch) | |
tree | 6b9712381d6bce07554491acf900ec4b27e6ecb0 /src/render/image.h |
v0.1.0
Diffstat (limited to 'src/render/image.h')
-rw-r--r-- | src/render/image.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/render/image.h b/src/render/image.h new file mode 100644 index 0000000..063f776 --- /dev/null +++ b/src/render/image.h @@ -0,0 +1,34 @@ +#ifndef __JIN_IMAGE_H +#define __JIN_IMAGE_H +#include "libs/GLee/GLee.h" +#include "color.h" +#include "drawable.h" +namespace jin +{ +namespace render +{ + class Image: public Drawable + { + public: + Image(); + ~Image(); + + // just like Image() + void init(); + + // load from file + bool loadf(const char* f); + + // load from memory + bool loadb(const char* b, int size); + + color getPixel(int x, int y); + + private: + + color* pixels; + }; +} +} + +#endif
\ No newline at end of file |