From 11e4937c9f9af5e064ad7434b2e4bf47b5fe31f6 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 17 Sep 2012 01:33:32 +0200 Subject: 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. --- src/menu/software_mouse_pointer.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/menu/software_mouse_pointer.hpp') 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 #include @@ -41,11 +42,10 @@ namespace usdx { private: GLfloat vertices[8]; - GLfloat texture[8]; RgbaColor color; - Texture* texture_normal; - Texture* texture_pressed; + Disposer* texture_normal; + Disposer* texture_pressed; Timer* fade_inactive; -- cgit v1.2.3