Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
crosshair.h
1 #pragma once
2 
3 #include <memory>
4 
5 #include <glm/gtc/quaternion.hpp>
6 
7 #include "hudget.h"
8 
9 
10 class HUD;
11 class CameraHead;
12 class CrossHairVoxels;
13 
14 class CrossHair: public Hudget {
15 public:
16  CrossHair(HUD* hud);
17  virtual ~CrossHair();
18 
19  /*
20  True if the left mousebutton or the firebutton in the gamepad
21  is pressed
22  */
23  bool actionActive() const;
24  void setActionActive(bool actionActive);
25 
26  virtual void update(float deltaSec) override;
27  virtual void draw() override;
28 
29 
30 protected:
31  bool m_actionActive;
32  std::unique_ptr<CrossHairVoxels> m_voxels;
33 };
34 
Definition: camerahead.h:12
Definition: crosshairvoxels.h:13
Definition: hudget.h:15
Definition: hud.h:34
Definition: crosshair.h:14