2018-06-10 23:14:31 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class HudGL {
|
|
|
|
public:
|
|
|
|
HudGL();
|
|
|
|
~HudGL();
|
|
|
|
|
|
|
|
void color(float r, float g, float b, float a) const;
|
|
|
|
void color(unsigned char r, unsigned char g, unsigned char b, unsigned char a) const;
|
|
|
|
void line_width(float width) const;
|
|
|
|
void line(const Vector2D& start, const Vector2D& end) const;
|
|
|
|
void circle(const Vector2D& center, const std::vector<Vector2D>& points) const;
|
2024-04-29 21:24:47 +00:00
|
|
|
void round_dot(const Vector2D& center, const std::vector<Vector2D>& points) const;
|
2018-06-10 23:14:31 +00:00
|
|
|
void rectangle(const Vector2D& corner_a, const Vector2D& corner_b) const;
|
|
|
|
|
|
|
|
static std::vector<Vector2D> compute_circle(float radius);
|
2024-04-29 21:24:47 +00:00
|
|
|
static std::vector<Vector2D> compute_circle(float radius, float thickness);
|
2018-06-10 23:14:31 +00:00
|
|
|
};
|