OsDrawRotationTransform

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Added note stating which version of OpenSim introduced this function)
(Add exemple)
 
(2 intermediate revisions by one user not shown)
Line 3: Line 3:
 
|permissions=true
 
|permissions=true
 
|delay=0
 
|delay=0
|function_syntax=string osDrawRotationTransform(string drawList, LSL_Float x)
+
|function_syntax=string osDrawRotationTransform(string drawList, float x)
|csharp_syntax=string osDrawRotationTransform(string drawList, LSL_Float x)
+
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
// Example of osDrawRotationTransform
+
//
 +
// osDrawRotationTransform Script Exemple
 +
// Author: djphil
 +
//
  
 
default
 
default
Line 12: Line 14:
 
     state_entry()
 
     state_entry()
 
     {
 
     {
         ...
+
         llSay(PUBLIC_CHANNEL, "Touch to see osDrawRotationTransform usage.");
 +
    }
 +
   
 +
    touch_start(integer number)
 +
    {
 +
        string CommandList = "";
 +
        CommandList = osSetFontName(CommandList, "Courier New");
 +
        CommandList = osSetFontSize(CommandList, 20);
 +
        CommandList = osSetPenSize( CommandList, 10);
 +
 
 +
        integer i;
 +
       
 +
        for(i = 0; i < 25; ++i)
 +
        {
 +
            CommandList = osDrawLine(CommandList, 20, 10, 250, 10);
 +
            CommandList = osDrawLine(CommandList, 455, 10, 725, 10);
 +
            CommandList = osMovePen(CommandList, 250, 0);
 +
            CommandList = osDrawText(CommandList, "Hello World!");
 +
            CommandList = osDrawRotationTransform(CommandList, 4.0);
 +
        }
 +
 
 +
        CommandList = osDrawResetTransform(CommandList);
 +
        osSetDynamicTextureData("", "vector", CommandList, "width:512,height:512", 0);
 
     }
 
     }
 
}
 
}
 
</source>
 
</source>
 
|description=...
 
|description=...
|additional_info=This function was added in 0.9.0-post-fixes
+
|additional_info=This function was added in 0.9.0.1}}
}}
+

Latest revision as of 08:22, 28 November 2020

string osDrawRotationTransform(string drawList, float x)
...
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
//
// osDrawRotationTransform Script Exemple
// Author: djphil
//
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osDrawRotationTransform usage.");
    }
 
    touch_start(integer number)
    {
        string CommandList = "";
        CommandList = osSetFontName(CommandList, "Courier New");
        CommandList = osSetFontSize(CommandList, 20);
        CommandList = osSetPenSize( CommandList, 10);
 
        integer i;
 
        for(i = 0; i < 25; ++i)
        {
            CommandList = osDrawLine(CommandList, 20, 10, 250, 10);
            CommandList = osDrawLine(CommandList, 455, 10, 725, 10);
            CommandList = osMovePen(CommandList, 250, 0);
            CommandList = osDrawText(CommandList, "Hello World!");
            CommandList = osDrawRotationTransform(CommandList, 4.0);
        }
 
        CommandList = osDrawResetTransform(CommandList);
        osSetDynamicTextureData("", "vector", CommandList, "width:512,height:512", 0);
    }
}
Notes
This function was added in 0.9.0.1


Personal tools
General
About This Wiki