aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/software_mouse_pointer.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-09-17 01:33:32 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:41:06 +0100
commit11e4937c9f9af5e064ad7434b2e4bf47b5fe31f6 (patch)
tree79390376632122609c710230390c0f4710c3b3e7 /src/menu/software_mouse_pointer.hpp
parent368ff00d125f00e9fcfc536f198697aba79c2d40 (diff)
downloadusdx-11e4937c9f9af5e064ad7434b2e4bf47b5fe31f6.tar.gz
usdx-11e4937c9f9af5e064ad7434b2e4bf47b5fe31f6.tar.xz
usdx-11e4937c9f9af5e064ad7434b2e4bf47b5fe31f6.zip
menu/texture: implement GlDelayedAllocation interface
Textures are now initialized during their first use, destroyed after their last used and could be use with the Activator.
Diffstat (limited to 'src/menu/software_mouse_pointer.hpp')
-rw-r--r--src/menu/software_mouse_pointer.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/menu/software_mouse_pointer.hpp b/src/menu/software_mouse_pointer.hpp
index bb4db608..2706e335 100644
--- a/src/menu/software_mouse_pointer.hpp
+++ b/src/menu/software_mouse_pointer.hpp
@@ -31,6 +31,7 @@
#include "texture.hpp"
#include "timer.hpp"
#include "utils/rgba_color.hpp"
+#include "utils/disposer.hpp"
#include <boost/signals2.hpp>
#include <GL/gl.h>
@@ -41,11 +42,10 @@ namespace usdx
{
private:
GLfloat vertices[8];
- GLfloat texture[8];
RgbaColor color;
- Texture* texture_normal;
- Texture* texture_pressed;
+ Disposer<Texture>* texture_normal;
+ Disposer<Texture>* texture_pressed;
Timer* fade_inactive;