summaryrefslogtreecommitdiff
path: root/src/render/surfacegraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-31 01:25:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-31 01:25:52 +0300
commitc91a3307224f79d08f8f85787310aea6a5d03c5f (patch)
treeb6e2551e758b802a7439bd7cb77a169b27a7e43d /src/render/surfacegraphics.h
parentf363a257dac02ca844677e7cf258a57b0f34cb8d (diff)
downloadmanaverse-c91a3307224f79d08f8f85787310aea6a5d03c5f.tar.gz
manaverse-c91a3307224f79d08f8f85787310aea6a5d03c5f.tar.bz2
manaverse-c91a3307224f79d08f8f85787310aea6a5d03c5f.tar.xz
manaverse-c91a3307224f79d08f8f85787310aea6a5d03c5f.zip
Move blitmode enum into separate file.
Diffstat (limited to 'src/render/surfacegraphics.h')
-rw-r--r--src/render/surfacegraphics.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/render/surfacegraphics.h b/src/render/surfacegraphics.h
index 4a12f54d8..c8f5d3880 100644
--- a/src/render/surfacegraphics.h
+++ b/src/render/surfacegraphics.h
@@ -23,6 +23,8 @@
#ifndef RENDER_SURFACEGRAPHICS_H
#define RENDER_SURFACEGRAPHICS_H
+#include "enums/render/blitmode.h"
+
#include "render/graphics.h"
#include "localconsts.h"
@@ -39,12 +41,6 @@ struct SDL_Surface;
class SurfaceGraphics final : public Graphics
{
public:
- enum BlitMode
- {
- BLIT_NORMAL = 0,
- BLIT_GFX
- };
-
SurfaceGraphics();
A_DELETE_COPY(SurfaceGraphics)
@@ -152,10 +148,10 @@ class SurfaceGraphics final : public Graphics
const ImageRect &imgRect A_UNUSED) override final
{ }
- void setBlitMode(const BlitMode mode)
+ void setBlitMode(const BlitModeT mode)
{ mBlitMode = mode; }
- BlitMode getBlitMode() const A_WARN_UNUSED
+ BlitModeT getBlitMode() const A_WARN_UNUSED
{ return mBlitMode; }
void fillRectangle(const Rect &rect A_UNUSED) override final
@@ -207,7 +203,7 @@ class SurfaceGraphics final : public Graphics
{ }
protected:
- BlitMode mBlitMode;
+ BlitModeT mBlitMode;
SDL_Surface *mTarget;
};