OsSetPenCap
From OpenSimulator
(Difference between revisions)
m (Robot: Cosmetic changes) |
m (Added permissions and delay information) |
||
Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
− | |threat_level= | + | |threat_level=ignored |
+ | |permissions=true | ||
+ | |delay=0 | ||
|function_syntax=string osSetPenCap(string drawList, string direction, string type) | |function_syntax=string osSetPenCap(string drawList, string direction, string type) | ||
|csharp_syntax=string osSetPenCap(string drawList, string direction, string type) | |csharp_syntax=string osSetPenCap(string drawList, string direction, string type) |
Revision as of 17:30, 25 October 2017
string osSetPenCap(string drawList, string direction, string type)
C#: string osSetPenCap(string drawList, string direction, string type) | |
*** This method works only on Windows for now. libgdi+ has a fake implementation and will not draw it. ***
Type:
Direction:
| |
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) | |
// Example of osSetPenCap default { state_entry() { string CommandList = ""; // Storage for our drawing commands integer i; CommandList = osSetPenSize( CommandList, 5 ); // Set the pen width to 5 pixels. With 1 pixel, arrow is very hard to see CommandList = osSetPenCap("start", "arrow"); // Sets the beggining of the line with an arrow CommandList = osMovePen(drawList,50,100); // Moves pen to 50,100 CommandList = osLineTo(drawList, 100,150); // Draws line from 50,100 to 100,150 osSetDynamicTextureData( "", "vector", CommandList, "", 0 ); } } |