summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/imagehelper.h4
-rw-r--r--src/resources/openglimagehelper.h6
-rw-r--r--src/resources/safeopenglimagehelper.h6
-rw-r--r--src/resources/sdl2imagehelper.h4
-rw-r--r--src/resources/sdl2softwareimagehelper.h2
-rw-r--r--src/resources/sdlimagehelper.h2
-rw-r--r--src/resources/sprite/animatedsprite.h2
-rw-r--r--src/resources/surfaceimagehelper.h2
8 files changed, 14 insertions, 14 deletions
diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h
index 90a28330e..4720de07b 100644
--- a/src/resources/imagehelper.h
+++ b/src/resources/imagehelper.h
@@ -91,12 +91,12 @@ class ImageHelper notfinal
static void dumpSurfaceFormat(const SDL_Surface *const image);
- constexpr static void setEnableAlpha(const bool n) noexcept2
+ constexpr2 static void setEnableAlpha(const bool n) noexcept2
{ mEnableAlpha = n; }
static SDL_Surface *loadPng(SDL_RWops *const rw);
- constexpr static void setOpenGlMode(const RenderType useOpenGL)
+ constexpr2 static void setOpenGlMode(const RenderType useOpenGL)
noexcept2
{ mUseOpenGL = useOpenGL; }
diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h
index 87faaefe7..6311ca9e5 100644
--- a/src/resources/openglimagehelper.h
+++ b/src/resources/openglimagehelper.h
@@ -98,10 +98,10 @@ class OpenGLImageHelper final : public ImageHelper
static int getInternalTextureType() noexcept2 A_WARN_UNUSED
{ return mInternalTextureType; }
- constexpr static void setInternalTextureType(const int n) noexcept2
+ constexpr2 static void setInternalTextureType(const int n) noexcept2
{ mInternalTextureType = n; }
- constexpr static void setBlur(const bool n) noexcept2
+ constexpr2 static void setBlur(const bool n) noexcept2
{ mBlur = n; }
static int mTextureType;
@@ -113,7 +113,7 @@ class OpenGLImageHelper final : public ImageHelper
static void initTextureSampler(const GLint id);
- constexpr static void setUseTextureSampler(const bool b) noexcept2
+ constexpr2 static void setUseTextureSampler(const bool b) noexcept2
{ mUseTextureSampler = b; }
static void invalidate(const GLuint textureId);
diff --git a/src/resources/safeopenglimagehelper.h b/src/resources/safeopenglimagehelper.h
index 0f2382d98..3c832cfc5 100644
--- a/src/resources/safeopenglimagehelper.h
+++ b/src/resources/safeopenglimagehelper.h
@@ -98,10 +98,10 @@ class SafeOpenGLImageHelper final : public ImageHelper
static int getInternalTextureType() A_WARN_UNUSED
{ return mInternalTextureType; }
- constexpr static void setInternalTextureType(const int n) noexcept2
+ constexpr2 static void setInternalTextureType(const int n) noexcept2
{ mInternalTextureType = n; }
- constexpr static void setBlur(const bool n) noexcept2
+ constexpr2 static void setBlur(const bool n) noexcept2
{ mBlur = n; }
static int mTextureType;
@@ -113,7 +113,7 @@ class SafeOpenGLImageHelper final : public ImageHelper
static void initTextureSampler(const GLint id);
- constexpr static void setUseTextureSampler(const bool b) noexcept2
+ constexpr2 static void setUseTextureSampler(const bool b) noexcept2
{ mUseTextureSampler = b; }
static void invalidate(const GLuint textureId);
diff --git a/src/resources/sdl2imagehelper.h b/src/resources/sdl2imagehelper.h
index aa40aa065..ef5bfad79 100644
--- a/src/resources/sdl2imagehelper.h
+++ b/src/resources/sdl2imagehelper.h
@@ -67,7 +67,7 @@ class SDLImageHelper final : public ImageHelper
SDL_Surface *const surface)
const override final;
- constexpr static void SDLSetEnableAlphaCache(const bool n) noexcept2
+ constexpr2 static void SDLSetEnableAlphaCache(const bool n) noexcept2
{ mEnableAlphaCache = n; }
static bool SDLGetEnableAlphaCache() noexcept2 A_WARN_UNUSED
@@ -81,7 +81,7 @@ class SDLImageHelper final : public ImageHelper
SDL_Surface *restrict const dst,
SDL_Rect *restrict const dstrect);
- constexpr static void setRenderer(SDL_Renderer *const renderer)
+ constexpr2 static void setRenderer(SDL_Renderer *const renderer)
noexcept2
{ mRenderer = renderer; }
diff --git a/src/resources/sdl2softwareimagehelper.h b/src/resources/sdl2softwareimagehelper.h
index 6db14868f..789bfea85 100644
--- a/src/resources/sdl2softwareimagehelper.h
+++ b/src/resources/sdl2softwareimagehelper.h
@@ -60,7 +60,7 @@ class SDL2SoftwareImageHelper final : public ImageHelper
const float alpha)
override final A_WARN_UNUSED;
- constexpr static void SDLSetEnableAlphaCache(const bool n) noexcept2
+ constexpr2 static void SDLSetEnableAlphaCache(const bool n) noexcept2
{ mEnableAlphaCache = n; }
static bool SDLGetEnableAlphaCache() noexcept2 A_WARN_UNUSED
diff --git a/src/resources/sdlimagehelper.h b/src/resources/sdlimagehelper.h
index 57fd33d68..7b0a979f9 100644
--- a/src/resources/sdlimagehelper.h
+++ b/src/resources/sdlimagehelper.h
@@ -81,7 +81,7 @@ class SDLImageHelper final : public ImageHelper
SDL_Surface *const surface)
const override final;
- constexpr static void SDLSetEnableAlphaCache(const bool n) noexcept2
+ constexpr2 static void SDLSetEnableAlphaCache(const bool n) noexcept2
{ mEnableAlphaCache = n; }
static bool SDLGetEnableAlphaCache() noexcept2 A_WARN_UNUSED
diff --git a/src/resources/sprite/animatedsprite.h b/src/resources/sprite/animatedsprite.h
index bd81f1a4e..93aa9d8fb 100644
--- a/src/resources/sprite/animatedsprite.h
+++ b/src/resources/sprite/animatedsprite.h
@@ -114,7 +114,7 @@ class AnimatedSprite final : public Sprite
bool isTerminated() const restrict2 noexcept2
{ return mTerminated; }
- constexpr static void setEnableCache(const bool b) noexcept2
+ constexpr2 static void setEnableCache(const bool b) noexcept2
{ mEnableCache = b; }
void setLastTime(const int time) noexcept2
diff --git a/src/resources/surfaceimagehelper.h b/src/resources/surfaceimagehelper.h
index 243a370c1..65aa682a9 100644
--- a/src/resources/surfaceimagehelper.h
+++ b/src/resources/surfaceimagehelper.h
@@ -63,7 +63,7 @@ class SurfaceImageHelper final : public ImageHelper
const float alpha)
override final A_WARN_UNUSED;
- constexpr static void SDLSetEnableAlphaCache(const bool n) noexcept2
+ constexpr2 static void SDLSetEnableAlphaCache(const bool n) noexcept2
{ mEnableAlphaCache = n; }
static bool SDLGetEnableAlphaCache() noexcept2 A_WARN_UNUSED