diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-03-22 22:23:54 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:52 +0100 |
commit | 37d83729fd3bc90930c4f7a9aa2ec8fdf21b9fed (patch) | |
tree | 75092f0e0af6ed311089c7ca6febd5ef68d4cb88 /src | |
parent | 5ccdcd052d6f8baff2e7cbbaff392d7398e46605 (diff) | |
download | usdx-37d83729fd3bc90930c4f7a9aa2ec8fdf21b9fed.tar.gz usdx-37d83729fd3bc90930c4f7a9aa2ec8fdf21b9fed.tar.xz usdx-37d83729fd3bc90930c4f7a9aa2ec8fdf21b9fed.zip |
menu/drawable_control: added repaint, that reinitialize the gl environment
Diffstat (limited to 'src')
-rw-r--r-- | src/menu/drawable_control.cpp | 9 | ||||
-rw-r--r-- | src/menu/drawable_control.hpp | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/menu/drawable_control.cpp b/src/menu/drawable_control.cpp index 222ef3d5..cf44aa73 100644 --- a/src/menu/drawable_control.cpp +++ b/src/menu/drawable_control.cpp @@ -24,6 +24,8 @@ * $Id$ */ +#include <GL/gl.h> + #include "drawable_control.hpp" #include "container.hpp" @@ -53,6 +55,13 @@ namespace usdx } } + void DrawableControl::repaint(void) + { + glLoadIdentity(); + + Drawable::repaint(); + } + DrawableControl::ContainerHelper::ContainerHelper(DrawableControl* self) : self(self) { diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp index a2f672c6..de3881c5 100644 --- a/src/menu/drawable_control.hpp +++ b/src/menu/drawable_control.hpp @@ -59,6 +59,8 @@ namespace usdx public: DrawableControl(Container*); virtual ~DrawableControl(); + + void repaint(void); }; }; |