[DEV] add draw dot on the draw section
This commit is contained in:
parent
4c16ddcbd7
commit
b6ae353bdf
@ -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)
|
void draw::Image::Line(Vector2D<float> posStart, Vector2D<float> posEnd)
|
||||||
{
|
{
|
||||||
Begin();
|
Begin();
|
||||||
|
@ -299,6 +299,7 @@ namespace draw
|
|||||||
void Draw(void);
|
void Draw(void);
|
||||||
|
|
||||||
void Line(Vector2D<float> posStart, Vector2D<float> posEnd);
|
void Line(Vector2D<float> posStart, Vector2D<float> posEnd);
|
||||||
|
void Dot(Vector2D<float> pos);
|
||||||
void Rectangle(Vector2D<float> pos, Vector2D<float> size);
|
void Rectangle(Vector2D<float> pos, Vector2D<float> size);
|
||||||
void Circle(Vector2D<float> pos, float radius, float angleStart=0, float angleStop=2*M_PI);
|
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);
|
void Disc(Vector2D<float> pos, float radius, float angleStart=0, float angleStop=2*M_PI);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user