diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-05-09 19:17:52 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:48 +0100 |
commit | 1d595f048c9e59bbff14217e2fe3821ee3e1aaa1 (patch) | |
tree | fe92fea4e73324bd3645afb52c681d103624b853 /src/utils/dimension.cpp | |
parent | 3ca6e32a9ecaa8514b9a30711cec20cf80722c23 (diff) | |
download | usdx-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.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/utils/dimension.cpp b/src/utils/dimension.cpp index 11a1feb3..f83636ff 100644 --- a/src/utils/dimension.cpp +++ b/src/utils/dimension.cpp @@ -28,7 +28,7 @@ namespace usdx { - Dimension::Dimension(float width, float height) : + Dimension::Dimension(unsigned int width, unsigned int height) : width(width), height(height) { } @@ -38,13 +38,23 @@ namespace usdx { } - float Dimension::get_width(void) const + unsigned int Dimension::get_width(void) const { return width; } - float Dimension::get_height(void) const + void Dimension::set_width(unsigned int width) + { + this->width = width; + } + + unsigned int Dimension::get_height(void) const { return height; } + + void Dimension::set_height(unsigned int height) + { + this->height = height; + } }; |