KlassischeKeplerKriege/game/state/trace.hpp
2016-09-27 19:32:12 +02:00

24 lines
510 B
C++

#pragma once
#include <glm/vec2.hpp>
namespace game {
/*
* Trace of a missile through the space.
* Useful for rendering sth. like a smoke trail to follow the rocket.
*/
class Trace {
public:
Trace(const glm::vec2 &startPoint)
{
points.push_back(startPoint);
}
void addPoint(const glm::vec2 &p)
{
points.push_back(p);
}
std::vector<glm::vec2> points;
};
}