68 dim = speed = dir = 0.0f;
117 std::vector<Planet> m_planet[2];
float dir
Direction in the sky.
Definition: planet.h:56
std::string name
Name of the texture.
Definition: planet.h:58
bool EventProcess(const Event &event)
Management of an event.
Definition: planet.cpp:58
Math::Point start
Initial position in degrees.
Definition: planet.h:48
float speed
Speed.
Definition: planet.h:54
Point struct and related functions.
void Draw()
Draws all the planets.
Definition: planet.cpp:96
Math::Point uv1
Texture mapping.
Definition: planet.h:60
Planet manager.
Definition: planet.h:82
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:145
Planet texture definition.
Definition: planet.h:45
2D point
Definition: point.h:49
bool transparent
Transparent texture.
Definition: planet.h:64
Math::Point angle
Current position in degrees.
Definition: planet.h:50
Namespace for (new) graphics code.
Definition: app.h:49
void Flush()
Removes all the planets.
Definition: planet.cpp:48
The graphics engine.
Definition: engine.h:684
Event types, structs and event queue.
bool EventFrame(const Event &event)
Makes the planets evolve.
Definition: planet.cpp:66
bool PlanetExist()
Indicates if there is at least one planet.
Definition: planet.cpp:171
Event sent by system, interface or game.
Definition: event.h:678
void LoadTexture()
Load all the textures for the planets.
Definition: planet.cpp:85
void SetMode(int mode)
Choice of mode.
Definition: planet.cpp:176
float dim
Dimensions (0..1)
Definition: planet.h:52