mirror of
https://github.com/ENSL/NS.git
synced 2024-11-27 06:42:54 +00:00
24 lines
674 B
C++
24 lines
674 B
C++
#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;
|
|
//#ifdef __APPLE__
|
|
// //Remove when OSX builds with c++11
|
|
//#else
|
|
void circle(const Vector2D& center, const std::vector<Vector2D>& points) const;
|
|
//#endif
|
|
void rectangle(const Vector2D& corner_a, const Vector2D& corner_b) const;
|
|
|
|
//#ifdef __APPLE__
|
|
// //Remove when OSX builds with c++11
|
|
//#else
|
|
static std::vector<Vector2D> compute_circle(float radius);
|
|
//#endif
|
|
};
|