From c0c3782473479460273f1d6e8e0e3e7564ecff89 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Jun 2014 23:57:06 +0300 Subject: Create empty OpenGL textures in batches. --- src/resources/imagehelper.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/resources/imagehelper.h') 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 NULL 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() { } -- cgit v1.2.3-70-g09d2