source: trunk/orbital/orbital.h @ 1312

Last change on this file since 1312 was 1312, checked in by sam, 10 years ago

orbital: use newly available vector operations for angular velocity.

File size: 657 bytes
Line 
1//
2// Orbital
3//
4// Copyright: (c) 2012 Various People
5//
6
7#if !defined __ORBITAL_H__
8#define __ORBITAL_H__
9
10#include "mesh.h"
11#include "particlesystem.h"
12#include "camera.h"
13
14class Orbital : public WorldEntity
15{
16public:
17    Orbital();
18    virtual ~Orbital();
19
20    char const *GetName() { return "<orbital>"; }
21
22protected:
23    virtual void TickGame(float seconds);
24    virtual void TickDraw(float seconds);
25
26private:
27    Mesh m;
28    float m_auto_cam_timer;
29    vec3 m_angle, m_angular_velocity;
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.