Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/gui/src/lib/gui/gl_gui/glgui_cursor.h @ 7891

Last change on this file since 7891 was 7891, checked in by bensch, 18 years ago

gui: coloring of the Cursor ok

File size: 981 bytes
RevLine 
[4838]1/*!
[7873]2 * @file glgui_cursor.h
3 * The gl_cursor widget of th openglGUI
[5360]4 *
5 */
[1853]6
[7873]7#ifndef _GLGUI_CURSOR_H
8#define _GLGUI_CURSOR_H
[1853]9
[7873]10#include "glgui_widget.h"
11#include "event_listener.h"
[7876]12#include "vector2D.h"
[1853]13
[7779]14namespace OrxGui
15{
16  // FORWARD DECLARATION
[3543]17
[7779]18  //! This is part of the openglGUI class
19  /**
20   *
21   */
[7873]22  class GLGuiCursor : public GLGuiWidget, public EventListener
[7779]23  {
[3543]24
[7779]25  public:
[7873]26    GLGuiCursor();
27    virtual ~GLGuiCursor();
[2036]28
[7876]29    static void setMouseSensitivity(float mouseSensitivity);
30    static float mouseSensitivity() { return GLGuiCursor::_mouseSensitivity; };
31
[7779]32    void init();
[7876]33    const Vector2D& position() const { return Element2D::getAbsCoor2D(); }
[1853]34
35
[7876]36    virtual void tick(float dt);
37    virtual void draw() const;
38    virtual void process(const Event& event);
[7779]39  private:
[3245]40
[7876]41    Vector2D      newPos;
42    Vector2D      movement;
43
[7891]44    float         color; // so f****ing temporary... ... ....
45
[7876]46    static float _mouseSensitivity;
47
[7779]48  };
49}
[7873]50#endif /* _GLGUI_CURSOR_H */
Note: See TracBrowser for help on using the repository browser.