diff options
Diffstat (limited to 'src/libjin/Graphics/Image.h')
-rw-r--r-- | src/libjin/Graphics/Image.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/libjin/Graphics/Image.h b/src/libjin/Graphics/Image.h index 215ac34..bed1986 100644 --- a/src/libjin/Graphics/Image.h +++ b/src/libjin/Graphics/Image.h @@ -5,31 +5,31 @@ namespace jin { -namespace graphics -{ - - /* just like bitmap but only from image file*/ - /* readonly bitmap */ - class Image : public Bitmap - { - public: - static Image* createImage(const char* path); - static Image* createImage(const void* imgData, size_t size); - ~Image(); - - private: - Image(); - - void bind(Color* pixels, int w, int h); - void resetPixels(const Color* pixels, int w, int h); - void resetPixels(const Color& pixels, int w, int h); - void setPixel(const Color& pixel, int x, int y); - void setPixels(Color pixels); - void setPixels(Color* pixels); - - }; - -} + namespace graphics + { + + /* just like bitmap but only from image file*/ + /* readonly bitmap */ + class Image : public Bitmap + { + public: + static Image* createImage(const char* path); + static Image* createImage(const void* imgData, size_t size); + ~Image(); + + private: + Image(); + + void bind(Color* pixels, int w, int h); + void resetPixels(const Color* pixels, int w, int h); + void resetPixels(const Color& pixels, int w, int h); + void setPixel(const Color& pixel, int x, int y); + void setPixels(Color pixels); + void setPixels(Color* pixels); + + }; + + } } #endif
\ No newline at end of file |