Last change
on this file since 1308 was
1308,
checked in by touky, 11 years ago
|
Added GetButtonState() in Input class.
Added Escape button in to quit Orbital.
Added Camera control with some little damping sweetness in Camera logic in main Tick.
First Commit \o/
|
File size:
737 bytes
|
Line | |
---|
1 | #if !defined __ORBITAL_H__ |
---|
2 | #define __ORBITAL_H__ |
---|
3 | |
---|
4 | #include "mesh.h" |
---|
5 | #include "particlesystem.h" |
---|
6 | #include "camera.h" |
---|
7 | |
---|
8 | class Orbital : public WorldEntity |
---|
9 | { |
---|
10 | public: |
---|
11 | Orbital(); |
---|
12 | virtual ~Orbital(); |
---|
13 | |
---|
14 | char const *GetName() { return "<orbital>"; } |
---|
15 | |
---|
16 | protected: |
---|
17 | virtual void TickGame(float deltams); |
---|
18 | virtual void TickDraw(float deltams); |
---|
19 | |
---|
20 | private: |
---|
21 | Mesh m; |
---|
22 | float m_auto_cam_timer; |
---|
23 | float m_horizontal_angle_speed; |
---|
24 | float m_vertical_angle_speed; |
---|
25 | float m_roll_angle_speed; |
---|
26 | |
---|
27 | float m_horizontal_angle; |
---|
28 | float m_vertical_angle; |
---|
29 | float m_roll_angle; |
---|
30 | |
---|
31 | mat4 m_modelview, m_proj; |
---|
32 | mat3 m_normalmat; |
---|
33 | |
---|
34 | ParticleSystem *m_particlesystem; |
---|
35 | Camera *m_camera; |
---|
36 | |
---|
37 | bool m_ready; |
---|
38 | }; |
---|
39 | |
---|
40 | #endif // __ORBITAL_H__ |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.