diff options
Diffstat (limited to 'src/libjin/Render/Texture.h')
-rw-r--r-- | src/libjin/Render/Texture.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/libjin/Render/Texture.h b/src/libjin/Render/Texture.h new file mode 100644 index 0000000..d2e4bd0 --- /dev/null +++ b/src/libjin/Render/Texture.h @@ -0,0 +1,38 @@ +#ifndef __JIN_IMAGE_H +#define __JIN_IMAGE_H +#include "../modules.h" +#if JIN_MODULES_RENDER + +#include "3rdparty/GLee/GLee.h" +#include "color.h" +#include "drawable.h" +namespace jin +{ +namespace render +{ + class Texture: public Drawable + { + + public: + + static Texture* createTexture(const char* file); + static Texture* createTexture(const void* mem, size_t size); + + ~Texture(); + + color getPixel(int x, int y); + + private: + + Texture(); + + bool loadb(const void* buffer, size_t size); + + color* pixels; + + }; +} +} + +#endif // JIN_MODULES_RENDER +#endif
\ No newline at end of file |