115 std::vector<Planet> m_planet[2];
float dir
Direction in the sky.
Definition: planet.h:54
std::string name
Name of the texture.
Definition: planet.h:56
bool EventProcess(const Event &event)
Management of an event.
Definition: planet.cpp:56
Math::Point start
Initial position in degrees.
Definition: planet.h:46
float speed
Speed.
Definition: planet.h:52
Point struct and related functions.
void Draw()
Draws all the planets.
Definition: planet.cpp:94
Math::Point uv1
Texture mapping.
Definition: planet.h:58
Planet manager.
Definition: planet.h:80
void Create(int mode, Math::Point start, float dim, float speed, float dir, const std::string &name, Math::Point uv1, Math::Point uv2, bool transparent)
Creates a new planet.
Definition: planet.cpp:143
Planet texture definition.
Definition: planet.h:43
2D point
Definition: point.h:46
bool transparent
Transparent texture.
Definition: planet.h:62
Math::Point angle
Current position in degrees.
Definition: planet.h:48
void Flush()
Removes all the planets.
Definition: planet.cpp:46
The graphics engine.
Definition: engine.h:682
Event types, structs and event queue.
bool EventFrame(const Event &event)
Makes the planets evolve.
Definition: planet.cpp:64
bool PlanetExist()
Indicates if there is at least one planet.
Definition: planet.cpp:169
Event sent by system, interface or game.
Definition: event.h:686
void LoadTexture()
Load all the textures for the planets.
Definition: planet.cpp:83
void SetMode(int mode)
Choice of mode.
Definition: planet.cpp:174
float dim
Dimensions (0..1)
Definition: planet.h:50