Changeset 4830 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/crosshair.h
- Timestamp:
- Jul 11, 2005, 5:43:37 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/crosshair.h
r4781 r4830 9 9 10 10 #include "event_listener.h" 11 11 #include "p_node.h" 12 12 #include "vector.h" 13 13 14 14 // FORWARD DEFINITION 15 15 class Model; 16 class Material; 16 17 17 18 //! A class that enables the 18 class Crosshair : public EventListener {19 class Crosshair : public PNode, public EventListener { 19 20 20 21 public: … … 25 26 virtual void process(const Event &event); 26 27 27 /** @returns the current 3D-position of the Crosshair */28 const Vector& getPosition() { return this->position; };29 30 28 void tick(float dt); 31 void draw() const;29 void draw(); 32 30 33 31 private: 34 Vector position; //!< The current position of the Crosshair35 32 float position2D[2]; //!< The 2D-position on the screen 36 33 34 Model* model; //!< A model for the crosshair representing the Aim 35 Material* material; //!< a material for the Aim. 36 float rotation; //!< a rotation of the aim. 37 float size; //!< The Size of the Crosshair (in % of screen resolution 1 is fullscreen) 37 38 }; 38 39
Note: See TracChangeset
for help on using the changeset viewer.