Implements osDrawPolygon, similar to already implemented osDrawFilledPolygon

This commit is contained in:
Arthur Valadares
2009-08-28 17:48:03 -03:00
parent 33004b613d
commit 3d6edc04a3
4 changed files with 31 additions and 0 deletions

View File

@@ -484,6 +484,12 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
GetParams(partsDelimiter, ref nextLine, 11, ref points);
graph.FillPolygon(myBrush, points);
}
else if (nextLine.StartsWith("Polygon"))
{
PointF[] points = null;
GetParams(partsDelimiter, ref nextLine, 7, ref points);
graph.DrawPolygon(drawPen, points);
}
else if (nextLine.StartsWith("Ellipse"))
{
float x = 0;