diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-02-27 00:59:15 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-02-27 00:59:15 +0000 |
commit | 500676abe3e03d63c192663db78d5d1f963c18f4 (patch) | |
tree | b623f6aa5fdbf3b08639830e5ea19104d390f364 /src/resources/image.h | |
parent | eedd5a3dea2061d247c82b4d912d5f82327668c6 (diff) | |
download | mana-500676abe3e03d63c192663db78d5d1f963c18f4.tar.gz mana-500676abe3e03d63c192663db78d5d1f963c18f4.tar.bz2 mana-500676abe3e03d63c192663db78d5d1f963c18f4.tar.xz mana-500676abe3e03d63c192663db78d5d1f963c18f4.zip |
Functions create() and fillWithColor() into image class.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r-- | src/resources/image.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/resources/image.h b/src/resources/image.h index 9102f62c..084bb211 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -58,6 +58,11 @@ class Image : public Resource #endif /** + * Two time intialization Contructor. For now : Only to be used with create. + */ + Image(); + + /** * Destructor. */ virtual ~Image(); @@ -143,6 +148,17 @@ class Image : public Resource */ float getAlpha(); + /** + * Creates a new empty image with given height and width. + */ + bool create(int width, int height); + + /** + * Fills the image with given color. + */ + void fillWithColor(unsigned char red, unsigned char green, unsigned blue); + + protected: #ifdef USE_OPENGL GLuint image; |