summaryrefslogtreecommitdiff
path: root/src/render/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-24 14:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-24 21:18:57 +0300
commit0a8b5d325f2d2c326b6da27399711b198417a499 (patch)
tree9e89aa7610f3f74ef9df53f6afce6655fc95ab07 /src/render/graphics.h
parent779b65f15d3350b2d95a095e24a90526c64dcecb (diff)
downloadManaVerse-0a8b5d325f2d2c326b6da27399711b198417a499.tar.gz
ManaVerse-0a8b5d325f2d2c326b6da27399711b198417a499.tar.bz2
ManaVerse-0a8b5d325f2d2c326b6da27399711b198417a499.tar.xz
ManaVerse-0a8b5d325f2d2c326b6da27399711b198417a499.zip
Rename Rectangle into Rect.
Rename ClipRectangle into ClipRect.
Diffstat (limited to 'src/render/graphics.h')
-rw-r--r--src/render/graphics.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/render/graphics.h b/src/render/graphics.h
index 14784a408..75b26a241 100644
--- a/src/render/graphics.h
+++ b/src/render/graphics.h
@@ -74,7 +74,7 @@
#include "render/renderers.h"
-#include "gui/cliprectangle.h"
+#include "gui/cliprect.h"
#ifdef USE_SDL2
#include <SDL_render.h>
@@ -259,7 +259,7 @@ class Graphics
const int w, const int h,
const ImageRect &imgRect) = 0;
- virtual void fillRectangle(const Rectangle& rectangle) = 0;
+ virtual void fillRectangle(const Rect& rectangle) = 0;
/**
* Updates the screen. This is done by either copying the buffer to the
@@ -293,7 +293,7 @@ class Graphics
const int x2, const int y2,
const int width, const int height);
- ClipRectangle &getTopClip() A_WARN_UNUSED
+ ClipRect &getTopClip() A_WARN_UNUSED
{ return mClipStack.top(); }
void setRedraw(const bool n)
@@ -410,7 +410,7 @@ class Graphics
* @return False if the the new area lays outside the current clip
* area.
*/
- virtual bool pushClipArea(Rectangle area);
+ virtual bool pushClipArea(Rect area);
/**
* Removes the top most clip area from the stack.
@@ -434,7 +434,7 @@ class Graphics
*
* @param rectangle The rectangle to draw.
*/
- virtual void drawRectangle(const Rectangle &rectangle) = 0;
+ virtual void drawRectangle(const Rect &rectangle) = 0;
/**
* Gets the current clip area. Usefull if you want to do drawing
@@ -442,7 +442,7 @@ class Graphics
*
* @return The current clip area.
*/
- virtual const ClipRectangle *getCurrentClipArea() const;
+ virtual const ClipRect *getCurrentClipArea() const;
/**
* Draws a single point/pixel.
@@ -510,7 +510,7 @@ class Graphics
/**
* Holds the clip area stack.
*/
- std::stack<ClipRectangle> mClipStack;
+ std::stack<ClipRect> mClipStack;
SDL_Window *mWindow;