summaryrefslogtreecommitdiff
path: root/src/render/openglgraphicsdef.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-25 01:14:37 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-25 01:14:37 +0300
commitce28ac8bfcea7ea926fa132a23f7814682dca0dc (patch)
treed4edf63b01bb9e80638be2caa7d596e17a17a248 /src/render/openglgraphicsdef.hpp
parentf0f4f43d1263f946be23b75de4de28a4731cc93a (diff)
downloadmanaverse-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.gz
manaverse-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.bz2
manaverse-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.xz
manaverse-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.zip
Add restrict keyword in openglgraphicsdef.hpp
Diffstat (limited to 'src/render/openglgraphicsdef.hpp')
-rw-r--r--src/render/openglgraphicsdef.hpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/render/openglgraphicsdef.hpp b/src/render/openglgraphicsdef.hpp
index 7f100f832..3a17899d5 100644
--- a/src/render/openglgraphicsdef.hpp
+++ b/src/render/openglgraphicsdef.hpp
@@ -21,34 +21,34 @@
*/
public:
- void drawRectangle(const Rect &rect,
- const bool filled);
+ void drawRectangle(const Rect &restrict rect,
+ const bool filled) restrict2;
void drawNet(const int x1, const int y1,
const int x2, const int y2,
- const int width, const int height) override final;
+ const int width, const int height) restrict2 override final;
static void dumpSettings();
- int getMemoryUsage() A_WARN_UNUSED;
+ int getMemoryUsage() restrict2 A_WARN_UNUSED;
- void updateTextureFormat();
+ void updateTextureFormat() restrict2;
- bool isAllowScale() const override final
+ bool isAllowScale() const restrict2 override final
{ return true; }
- void clearScreen() const override final;
+ void clearScreen() const restrict2 override final;
- void deleteArrays() override final;
+ void deleteArrays() restrict2 override final;
static void bindTexture(const GLenum target, const GLuint texture);
static GLuint mTextureBinded;
protected:
- void setTexturingAndBlending(const bool enable);
+ void setTexturingAndBlending(const bool enable) restrict2;
private:
- void inline setColorAlpha(const float alpha);
+ void inline setColorAlpha(const float alpha) restrict2;
- void inline restoreColor();
+ void inline restoreColor() restrict2;