diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-04 23:57:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-04 23:57:06 +0300 |
commit | c0c3782473479460273f1d6e8e0e3e7564ecff89 (patch) | |
tree | a955e6376aa7c41d7bed3b60fd5b532fec5a7d20 /src/resources/imagehelper.h | |
parent | 0c72851a2b47acba27944106eea4619b658d40ca (diff) | |
download | manaverse-c0c3782473479460273f1d6e8e0e3e7564ecff89.tar.gz manaverse-c0c3782473479460273f1d6e8e0e3e7564ecff89.tar.bz2 manaverse-c0c3782473479460273f1d6e8e0e3e7564ecff89.tar.xz manaverse-c0c3782473479460273f1d6e8e0e3e7564ecff89.zip |
Create empty OpenGL textures in batches.
Diffstat (limited to 'src/resources/imagehelper.h')
-rw-r--r-- | src/resources/imagehelper.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h index b91d9aaee..6752f3eae 100644 --- a/src/resources/imagehelper.h +++ b/src/resources/imagehelper.h @@ -56,19 +56,18 @@ class ImageHelper notfinal * @return <code>NULL</code> if an error occurred, a valid pointer * otherwise. */ - Image *load(SDL_RWops *const rw) const A_WARN_UNUSED; + Image *load(SDL_RWops *const rw) A_WARN_UNUSED; - virtual Image *load(SDL_RWops *const rw, Dye - const &dye) const A_WARN_UNUSED; + virtual Image *load(SDL_RWops *const rw, Dye const &dye) A_WARN_UNUSED; #ifdef __GNUC__ - virtual Image *load(SDL_Surface *const) const A_WARN_UNUSED = 0; + virtual Image *load(SDL_Surface *const) A_WARN_UNUSED = 0; virtual Image *createTextSurface(SDL_Surface *const tmpImage, const int width, const int height, - float alpha) const A_WARN_UNUSED = 0; + float alpha) A_WARN_UNUSED = 0; #else - virtual Image *load(SDL_Surface *) const A_WARN_UNUSED + virtual Image *load(SDL_Surface *) A_WARN_UNUSED { return nullptr; } virtual Image *createTextSurface(SDL_Surface *const tmpImage, @@ -96,6 +95,9 @@ class ImageHelper notfinal virtual RenderType useOpenGL() const A_WARN_UNUSED { return mUseOpenGL; } + virtual void postInit() + { } + protected: ImageHelper() { } |