mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-09 17:52:50 +00:00
DrawTriangle
This commit is contained in:
parent
542db2e460
commit
ac812dbeed
1 changed files with 7 additions and 0 deletions
|
|
@ -239,6 +239,13 @@ namespace Cosmos.System.Graphics
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void DrawTriangle(Pen pen, int v1x, int v1y, int v2x, int v2y, int v3x, int v3y)
|
||||||
|
{
|
||||||
|
DrawLine(pen, v1x, v1y, v2x, v2y);
|
||||||
|
DrawLine(pen, v1x, v1y, v3x, v3y);
|
||||||
|
DrawLine(pen, v2x, v2y, v3x, v3y);
|
||||||
|
}
|
||||||
|
|
||||||
public void DrawRectangle(Pen pen, float x_start, float y_start, float width, float height)
|
public void DrawRectangle(Pen pen, float x_start, float y_start, float width, float height)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue