Added basic cursor drawing.
svn-id: r50954
This commit is contained in:
parent
3995b2d8f7
commit
0e748c5a97
5 changed files with 130 additions and 10 deletions
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "backends/graphics/opengl/gltexture.h"
|
||||
#include "backends/graphics/graphics.h"
|
||||
#include "common/events.h"
|
||||
|
||||
namespace OpenGL {
|
||||
|
||||
|
@ -42,7 +43,7 @@ enum {
|
|||
/**
|
||||
* Open GL graphics manager
|
||||
*/
|
||||
class OpenGLGraphicsManager : public GraphicsManager {
|
||||
class OpenGLGraphicsManager : public GraphicsManager, public Common::EventObserver {
|
||||
public:
|
||||
OpenGLGraphicsManager();
|
||||
virtual ~OpenGLGraphicsManager();
|
||||
|
@ -95,7 +96,8 @@ public:
|
|||
|
||||
virtual void displayMessageOnOSD(const char *msg);
|
||||
|
||||
virtual void setMousePos(int x, int y);
|
||||
// Override from Common::EventObserver
|
||||
bool notifyEvent(const Common::Event &event);
|
||||
|
||||
protected:
|
||||
GLTexture* _gameTexture;
|
||||
|
@ -186,6 +188,12 @@ protected:
|
|||
bool _mouseVisible;
|
||||
bool _mouseNeedsRedraw;
|
||||
|
||||
uint8 *_cursorPalette;
|
||||
bool _cursorPaletteDisabled;
|
||||
|
||||
virtual void adjustMouseEvent(const Common::Event &event);
|
||||
virtual void setMousePos(int x, int y);
|
||||
|
||||
// Shake mode
|
||||
int _currentShakePos;
|
||||
int _newShakePos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue