source: trunk/orbital/orbital.h @ 1308

Last change on this file since 1308 was 1308, checked in by touky, 8 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
RevLine 
[1235]1#if !defined __ORBITAL_H__
2#define __ORBITAL_H__
3
[1245]4#include "mesh.h"
[1286]5#include "particlesystem.h"
[1301]6#include "camera.h"
[1245]7
[1235]8class Orbital : public WorldEntity
9{
10public:
11    Orbital();
12    virtual ~Orbital();
13
14    char const *GetName() { return "<orbital>"; }
15
16protected:
17    virtual void TickGame(float deltams);
18    virtual void TickDraw(float deltams);
[1245]19
20private:
21    Mesh m;
[1308]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;
[1260]32    mat3 m_normalmat;
[1249]33
[1301]34    ParticleSystem *m_particlesystem;
35    Camera *m_camera;
36
[1249]37    bool m_ready;
[1235]38};
39
40#endif // __ORBITAL_H__
41
Note: See TracBrowser for help on using the repository browser.