OsDrawRotationTransform

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Add exemple)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
|threat_level=None
+
|threat_level=ignored
|function_syntax=string osDrawRotationTransform(string drawList, LSL_Float x)
+
|permissions=true
|csharp_syntax=string osDrawRotationTransform(string drawList, LSL_Float x)
+
|delay=0
 +
|function_syntax=string osDrawRotationTransform(string drawList, float x)
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
// Example of osDrawRotationTransform
+
//
 +
// osDrawRotationTransform Script Exemple
 +
// Author: djphil
 +
//
  
 
default
 
default
Line 10: 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.1}}
}}
+

Latest revision as of 07: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