source: trunk/orbital/orbital.h @ 1332

Last change on this file since 1332 was 1332, checked in by sam, 9 years ago

orbital: do not let the world objects know anything about the projection
or view matrix unless strictly necessary.

File size: 622 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    mat4 m_model;
31
32    ParticleSystem *m_particlesystem;
33    Camera *m_camera;
34
35    bool m_ready;
36};
37
38#endif // __ORBITAL_H__
39
Note: See TracBrowser for help on using the repository browser.