[DEV] add draw dot on the draw section

This commit is contained in:
Edouard DUPIN 2012-10-11 18:07:01 +02:00
parent 4c16ddcbd7
commit b6ae353bdf
2 changed files with 9 additions and 0 deletions

View File

@ -226,6 +226,14 @@ void draw::Image::Draw(void)
}
void draw::Image::Dot(Vector2D<float> pos)
{
Begin();
MoveTo(pos);
LineTo(pos+Vector2D<float>(1,1));
End();
}
void draw::Image::Line(Vector2D<float> posStart, Vector2D<float> posEnd)
{
Begin();

View File

@ -299,6 +299,7 @@ namespace draw
void Draw(void);
void Line(Vector2D<float> posStart, Vector2D<float> posEnd);
void Dot(Vector2D<float> pos);
void Rectangle(Vector2D<float> pos, Vector2D<float> size);
void Circle(Vector2D<float> pos, float radius, float angleStart=0, float angleStop=2*M_PI);
void Disc(Vector2D<float> pos, float radius, float angleStart=0, float angleStop=2*M_PI);