aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/texture.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu/texture.hpp')
-rw-r--r--src/menu/texture.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/menu/texture.hpp b/src/menu/texture.hpp
index 12a32e46..9dfa2fa1 100644
--- a/src/menu/texture.hpp
+++ b/src/menu/texture.hpp
@@ -34,6 +34,7 @@
#include "utils/rectangle.hpp"
#include "utils/image.hpp"
#include "drawable.hpp"
+#include "gl_delayed_allocation.hpp"
namespace usdx
{
@@ -64,7 +65,7 @@ namespace usdx
virtual ~TextureColorDepthException() {};
};
- class Texture
+ class Texture : public GlDelayedAllocation
{
private:
static log4cpp::Category& log;
@@ -78,11 +79,16 @@ namespace usdx
float rotation; ///< radiant (0 - 2*pi)
+ virtual void gl_initialize();
+ virtual void gl_cleanup();
public:
Texture(boost::filesystem::wpath filename);
virtual ~Texture();
- GLuint get_texture(void) const;
+ const static GLfloat default_vertices[];
+
+ virtual void enable(void);
+ virtual void disable(void);
};
};