27 #include "graphics/engine/planet_type.h" 107 bool transparent =
false;
109 std::vector<Planet> m_planets;
bool EventProcess(const Event &event)
Management of an event.
Definition: planet.cpp:57
Point struct and related functions.
void SetVisiblePlanetType(PlanetType type)
Set which planet types to display.
Definition: planet.cpp:174
void Draw()
Draws all the planets.
Definition: planet.cpp:95
std::string name
Name of the texture.
Definition: planet.h:101
void Create(PlanetType type, 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:147
Planet manager.
Definition: planet.h:49
2D point
Definition: point.h:50
Namespace for (new) graphics code.
Definition: app.h:49
Planet texture definition.
Definition: planet.h:86
void Flush()
Removes all the planets.
Definition: planet.cpp:50
The graphics engine.
Definition: engine.h:585
Math::Point angle
Current position in degrees.
Definition: planet.h:93
bool EventFrame(const Event &event)
Makes the planets evolve.
Definition: planet.cpp:65
Math::Point start
Initial position in degrees.
Definition: planet.h:91
bool PlanetExist()
Indicates if there is at least one planet.
Definition: planet.cpp:169
Event sent by system, interface or game.
Definition: event.h:735
void LoadTexture()
Load all the textures for the planets.
Definition: planet.cpp:87
PlanetType
Type of planet which determines when it is displayed.
Definition: planet_type.h:29
Math::Point uv1
Texture mapping.
Definition: planet.h:103