diff options
author | Arthur Valadares | 2009-08-28 17:48:03 -0300 |
---|---|---|
committer | Arthur Valadares | 2009-08-28 17:48:03 -0300 |
commit | 3d6edc04a309757ce025e74aaf7168ef759a2ef3 (patch) | |
tree | 2523e70e2810467561a35b6f1e04c75dbdc77e7a /OpenSim/Region/CoreModules | |
parent | Standardize FlotsamAssetCache header (diff) | |
download | opensim-SC-3d6edc04a309757ce025e74aaf7168ef759a2ef3.zip opensim-SC-3d6edc04a309757ce025e74aaf7168ef759a2ef3.tar.gz opensim-SC-3d6edc04a309757ce025e74aaf7168ef759a2ef3.tar.bz2 opensim-SC-3d6edc04a309757ce025e74aaf7168ef759a2ef3.tar.xz |
Implements osDrawPolygon, similar to already implemented osDrawFilledPolygon
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs index e577fbe..e83b1a8 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | |||
@@ -484,6 +484,12 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
484 | GetParams(partsDelimiter, ref nextLine, 11, ref points); | 484 | GetParams(partsDelimiter, ref nextLine, 11, ref points); |
485 | graph.FillPolygon(myBrush, points); | 485 | graph.FillPolygon(myBrush, points); |
486 | } | 486 | } |
487 | else if (nextLine.StartsWith("Polygon")) | ||
488 | { | ||
489 | PointF[] points = null; | ||
490 | GetParams(partsDelimiter, ref nextLine, 7, ref points); | ||
491 | graph.DrawPolygon(drawPen, points); | ||
492 | } | ||
487 | else if (nextLine.StartsWith("Ellipse")) | 493 | else if (nextLine.StartsWith("Ellipse")) |
488 | { | 494 | { |
489 | float x = 0; | 495 | float x = 0; |