#include <MouseCursor.h>

Public Member Functions | |
| MouseCursor () | |
| Standard Constructor. | |
| MouseCursor (const string &filename, const Vector &hotSpot, const GLfloat &size) | |
| Constructor. | |
| ~MouseCursor () | |
| Destructor. | |
| void | renderGl () |
| Draws the cursor in OpenGL. | |
| void | selectGl () |
| Not needed for the cursor. | |
| void | move (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel) |
| Ability to react on mouse events. | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
Private Attributes | |
| Texture | standard |
| Stores the texture for the standard mouse cursor. | |
| Vector | hotSpot |
| The textures's hot spot. | |
| GLfloat | size |
| Cursor size. | |
| Color | color |
| Cursor color. | |
| MouseCursor::MouseCursor | ( | ) |
Standard Constructor.
Boring cursor, does nothing reasonable...
| MouseCursor::MouseCursor | ( | const string & | filename, | |
| const Vector & | hotSpot, | |||
| const GLfloat & | size | |||
| ) |
Constructor.
Creates a 2d-Sprite that will be used as mouse pointer
| filename | ||
| hotspot | ||
| size | The size of the cursor in permile of the screen height |
| MouseCursor::~MouseCursor | ( | ) |
Destructor.
| void MouseCursor::renderGl | ( | ) | [virtual] |
| void MouseCursor::selectGl | ( | ) | [virtual] |
| void MouseCursor::move | ( | const GLuint & | id, | |
| const GLuint & | x, | |||
| const GLuint & | y, | |||
| const GLint & | xRel, | |||
| const GLint & | yRel | |||
| ) | [virtual] |
Ability to react on mouse events.
Enables mouse cursor to follow the users mouse movement
Implements MouseAdapterMove.
| string MouseCursor::toString | ( | ) | const [virtual] |
Returns a textual representation.
Reimplemented from MouseAdapterMove.
| string MouseCursor::className | ( | ) | const [virtual] |
Returns the class name of the object.
Reimplemented from MouseAdapterMove.
| enum classId MouseCursor::classId | ( | ) | const [virtual] |
Returns the class id of the object.
Reimplemented from MouseAdapterMove.
Texture MouseCursor::standard [private] |
Stores the texture for the standard mouse cursor.
Vector MouseCursor::hotSpot [private] |
The textures's hot spot.
GLfloat MouseCursor::size [private] |
Cursor size.
Color MouseCursor::color [private] |
Cursor color.
1.5.6