summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-10 00:25:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-10 00:31:05 +0300
commitdf7306b25899f3fafa4adb969e70ea83ac567ffb (patch)
tree2ce725beb08a139852e34bf4748e96481835fcb7 /src/render/safeopenglgraphics.h
parentbd88033a7d721102544c21d449a541ceb3bcc285 (diff)
downloadmv-df7306b25899f3fafa4adb969e70ea83ac567ffb.tar.gz
mv-df7306b25899f3fafa4adb969e70ea83ac567ffb.tar.bz2
mv-df7306b25899f3fafa4adb969e70ea83ac567ffb.tar.xz
mv-df7306b25899f3fafa4adb969e70ea83ac567ffb.zip
Remove duplicate code from renderers.
Diffstat (limited to 'src/render/safeopenglgraphics.h')
-rw-r--r--src/render/safeopenglgraphics.h37
1 files changed, 2 insertions, 35 deletions
diff --git a/src/render/safeopenglgraphics.h b/src/render/safeopenglgraphics.h
index fbb156c6c..80a10a5eb 100644
--- a/src/render/safeopenglgraphics.h
+++ b/src/render/safeopenglgraphics.h
@@ -50,44 +50,11 @@ class SafeOpenGLGraphics final : public Graphics
~SafeOpenGLGraphics();
- #include "render/openglgraphicsdef.hpp"
-
- /**
- * Draws a rectangle using images. 4 corner images, 4 side images and 1
- * image for the inside.
- */
- void drawImageRect(int x, int y, int w, int h,
- const ImageRect &imgRect);
-
- bool drawNet(const int x1, const int y1,
- const int x2, const int y2,
- const int width, const int height) override final;
+ #include "render/graphicsdef.hpp"
- protected:
- void setTexturingAndBlending(const bool enable);
+ #include "render/openglgraphicsdef.hpp"
private:
- void inline setColorAlpha(const float alpha);
-
- void inline restoreColor();
-
- void inline calcImageRect(ImageVertexes *const vert,
- int x, int y,
- int w, int h,
- const ImageRect &imgRect);
-
- void calcPatternInline(ImageVertexes *const vert,
- const Image *const image,
- const int x, const int y,
- const int w, const int h) const;
-
- void inline calcTileVertexesInline(ImageVertexes *const vert,
- const Image *const image,
- int x, int y) const;
-
- bool inline drawImageInline(const Image *const image,
- int dstX, int dstY);
-
bool mTexture;
bool mIsByteColor;
Color mByteColor;