From 0fc4b3ad5f2ac8d5c0588f61c0cbed4349ee1430 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 16 Oct 2018 20:18:42 +0800 Subject: *misc --- src/libjin/Graphics/Image.h | 50 ++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'src/libjin/Graphics/Image.h') 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 -- cgit v1.1-26-g67d0