aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/drawable.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-04-25 18:10:15 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:47 +0100
commit1a8b5160d105b50f20cb3cc24443b1f41ac6c1af (patch)
treece1bb575c9e934cd97858c6c5e2793c4427778ee /src/menu/drawable.hpp
parent647660014b2f506d19c4feedc06a45b514035d5b (diff)
downloadusdx-1a8b5160d105b50f20cb3cc24443b1f41ac6c1af.tar.gz
usdx-1a8b5160d105b50f20cb3cc24443b1f41ac6c1af.tar.xz
usdx-1a8b5160d105b50f20cb3cc24443b1f41ac6c1af.zip
added SDL_Surface* display to all repaint/draw methods
Diffstat (limited to '')
-rw-r--r--src/menu/drawable.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/menu/drawable.hpp b/src/menu/drawable.hpp
index e2cc43fc..28cbd223 100644
--- a/src/menu/drawable.hpp
+++ b/src/menu/drawable.hpp
@@ -27,6 +27,8 @@
#ifndef DRAWABLE_HPP
#define DRAWABLE_HPP
+#include <SDL/SDL.h>
+
namespace usdx
{
/**
@@ -41,7 +43,7 @@ namespace usdx
/**
* Pure virtual method, that descendant classes have to implement.
*/
- virtual void draw(void) const = 0;
+ virtual void draw(SDL_Surface* display) const = 0;
public:
Drawable(void);
@@ -50,7 +52,7 @@ namespace usdx
/**
* Method for redraw this Object. If visible issues draw.
*/
- void repaint(void) const;
+ void repaint(SDL_Surface* display) const;
/**
* Setter for visible.