From 1d595f048c9e59bbff14217e2fe3821ee3e1aaa1 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 9 May 2010 19:17:52 +0200 Subject: changed from SDL rendering to OpenGL draw, repaint methods do not have the SDL_Surface* parameter anymore --- src/menu/software_mouse_pointer.hpp | 15 ++++++++++++--- 1 file changed, 12 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 dad27543..3b29e50e 100644 --- a/src/menu/software_mouse_pointer.hpp +++ b/src/menu/software_mouse_pointer.hpp @@ -30,9 +30,11 @@ #include "drawable_control.hpp" #include "control.hpp" #include "event_manager.hpp" -#include "image.hpp" +#include "texture.hpp" #include +#include +#include namespace usdx { @@ -42,12 +44,19 @@ namespace usdx int x; int y; - Image* texture; + GLfloat vertices[12]; + GLubyte color[16]; + GLfloat texture[8]; + + Texture* texture_normal; + Texture* texture_pressed; boost::signals2::connection mouse_move_connection; + boost::mutex mutex; + protected: - void draw(SDL_Surface* display) const; + void draw(void); public: SoftwareMousePointer(Control* parent, EventManager* event_manager); -- cgit v1.2.3