aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/background_image.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/background_image.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/background_image.hpp')
-rw-r--r--src/menu/background_image.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/menu/background_image.hpp b/src/menu/background_image.hpp
index 1112aa54..d7475007 100644
--- a/src/menu/background_image.hpp
+++ b/src/menu/background_image.hpp
@@ -31,6 +31,7 @@
#include "background.hpp"
#include "texture.hpp"
#include "utils/rgb_color.hpp"
+#include "utils/disposer.hpp"
namespace usdx
{
@@ -41,11 +42,13 @@ namespace usdx
class BackgroundImage : public Background
{
private:
- Texture* texture;
+ /**
+ * Texture containing the image, that should be used as background.
+ */
+ Disposer<Texture>* texture;
GLint vertices[8];
RgbColor color;
- GLfloat tex[8];
protected:
void draw(void);