aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/dimension.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-05-09 19:17:52 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:48 +0100
commit1d595f048c9e59bbff14217e2fe3821ee3e1aaa1 (patch)
treefe92fea4e73324bd3645afb52c681d103624b853 /src/utils/dimension.hpp
parent3ca6e32a9ecaa8514b9a30711cec20cf80722c23 (diff)
downloadusdx-1d595f048c9e59bbff14217e2fe3821ee3e1aaa1.tar.gz
usdx-1d595f048c9e59bbff14217e2fe3821ee3e1aaa1.tar.xz
usdx-1d595f048c9e59bbff14217e2fe3821ee3e1aaa1.zip
changed from SDL rendering to OpenGL
draw, repaint methods do not have the SDL_Surface* parameter anymore
Diffstat (limited to '')
-rw-r--r--src/utils/dimension.hpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/utils/dimension.hpp b/src/utils/dimension.hpp
index 656efefb..4518fbb8 100644
--- a/src/utils/dimension.hpp
+++ b/src/utils/dimension.hpp
@@ -32,14 +32,17 @@ namespace usdx
class Dimension
{
private:
- float width;
- float height;
+ unsigned int width;
+ unsigned int height;
public:
- Dimension(float width, float height);
+ Dimension(unsigned int width, unsigned int height);
Dimension(const Dimension& dimension);
- float get_width(void) const;
- float get_height(void) const;
+ unsigned int get_width(void) const;
+ void set_width(unsigned int width);
+
+ unsigned int get_height(void) const;
+ void set_height(unsigned int height);
};
};