diff options
author | UbitUmarov | 2017-06-25 02:17:02 +0100 |
---|---|---|
committer | UbitUmarov | 2017-06-25 02:17:02 +0100 |
commit | a9a44eaeb5abdbea63d6c7d0c81454fb5a093817 (patch) | |
tree | d598a416b87a2f7fe302b7b51d5eb8bb31c87781 /OpenSim/Region/CoreModules | |
parent | add string osDrawTranslationTransform(string drawList, LSL_Float x, LSL_Float... (diff) | |
download | opensim-SC_OLD-a9a44eaeb5abdbea63d6c7d0c81454fb5a093817.zip opensim-SC_OLD-a9a44eaeb5abdbea63d6c7d0c81454fb5a093817.tar.gz opensim-SC_OLD-a9a44eaeb5abdbea63d6c7d0c81454fb5a093817.tar.bz2 opensim-SC_OLD-a9a44eaeb5abdbea63d6c7d0c81454fb5a093817.tar.xz |
add vectorrender string command ''ScaleTransf x,y;''. this allows scaling of objects to draw next. -1,1 will make text be drawn with x direction flipped (it is like the texture scale)
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs index fc4ccfe..8a26ab7 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | |||
@@ -522,6 +522,13 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
522 | GetParams(partsDelimiter, ref nextLine, 11, ref x, ref y); | 522 | GetParams(partsDelimiter, ref nextLine, 11, ref x, ref y); |
523 | graph.TranslateTransform(x, y); | 523 | graph.TranslateTransform(x, y); |
524 | } | 524 | } |
525 | else if (nextLine.StartsWith("ScaleTransf")) | ||
526 | { | ||
527 | float x = 0; | ||
528 | float y = 0; | ||
529 | GetParams(partsDelimiter, ref nextLine, 11, ref x, ref y); | ||
530 | graph.ScaleTransform(x, y); | ||
531 | } | ||
525 | else if (nextLine.StartsWith("RotTransf")) | 532 | else if (nextLine.StartsWith("RotTransf")) |
526 | { | 533 | { |
527 | float x = 0; | 534 | float x = 0; |