From 500676abe3e03d63c192663db78d5d1f963c18f4 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 27 Feb 2005 00:59:15 +0000 Subject: Functions create() and fillWithColor() into image class. --- src/resources/image.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/resources/image.h') 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 @@ -57,6 +57,11 @@ class Image : public Resource Image(SDL_Surface *image); #endif + /** + * Two time intialization Contructor. For now : Only to be used with create. + */ + Image(); + /** * Destructor. */ @@ -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; -- cgit v1.2.3-70-g09d2