mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
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)
This commit is contained in:
@@ -522,6 +522,13 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||
GetParams(partsDelimiter, ref nextLine, 11, ref x, ref y);
|
||||
graph.TranslateTransform(x, y);
|
||||
}
|
||||
else if (nextLine.StartsWith("ScaleTransf"))
|
||||
{
|
||||
float x = 0;
|
||||
float y = 0;
|
||||
GetParams(partsDelimiter, ref nextLine, 11, ref x, ref y);
|
||||
graph.ScaleTransform(x, y);
|
||||
}
|
||||
else if (nextLine.StartsWith("RotTransf"))
|
||||
{
|
||||
float x = 0;
|
||||
|
||||
Reference in New Issue
Block a user