summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-12 18:26:16 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-12 18:26:16 +0300
commit67638eeec5267977940dce29c5a94ce4d093ed69 (patch)
tree2bacbaba1379e57c846929ef31e949fb2bd7f946 /src/resources/openglimagehelper.h
parent3308da97a29b1170e720b4341456bb39869bed24 (diff)
downloadplus-67638eeec5267977940dce29c5a94ce4d093ed69.tar.gz
plus-67638eeec5267977940dce29c5a94ce4d093ed69.tar.bz2
plus-67638eeec5267977940dce29c5a94ce4d093ed69.tar.xz
plus-67638eeec5267977940dce29c5a94ce4d093ed69.zip
Add constexpr and noexcept into some methods.
Diffstat (limited to 'src/resources/openglimagehelper.h')
-rw-r--r--src/resources/openglimagehelper.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h
index 5f6e0b8aa..87faaefe7 100644
--- a/src/resources/openglimagehelper.h
+++ b/src/resources/openglimagehelper.h
@@ -92,28 +92,28 @@ class OpenGLImageHelper final : public ImageHelper
// OpenGL only public functions
- static int getTextureType() A_WARN_UNUSED
+ static int getTextureType() noexcept2 A_WARN_UNUSED
{ return mTextureType; }
- static int getInternalTextureType() A_WARN_UNUSED
+ static int getInternalTextureType() noexcept2 A_WARN_UNUSED
{ return mInternalTextureType; }
- static void setInternalTextureType(const int n)
+ constexpr static void setInternalTextureType(const int n) noexcept2
{ mInternalTextureType = n; }
- static void setBlur(const bool n)
+ constexpr static void setBlur(const bool n) noexcept2
{ mBlur = n; }
static int mTextureType;
static int mInternalTextureType;
- static int getTextureSize() A_WARN_UNUSED
+ static int getTextureSize() noexcept2 A_WARN_UNUSED
{ return mTextureSize; }
static void initTextureSampler(const GLint id);
- static void setUseTextureSampler(const bool b)
+ constexpr static void setUseTextureSampler(const bool b) noexcept2
{ mUseTextureSampler = b; }
static void invalidate(const GLuint textureId);