<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HollyGadsdon</id>
		<title>OpenSimulator - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HollyGadsdon"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Special:Contributions/HollyGadsdon"/>
		<updated>2026-04-10T19:21:57Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/wiki/OsSetDynamicTextureDataBlendFace</id>
		<title>OsSetDynamicTextureDataBlendFace</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/OsSetDynamicTextureDataBlendFace"/>
				<updated>2011-08-23T21:14:52Z</updated>
		
		<summary type="html">&lt;p&gt;HollyGadsdon: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{osslfunc&lt;br /&gt;
|threat_level=VeryLow&lt;br /&gt;
|function_syntax=string osSetDynamicTextureDataBlendFace(string dynamicID, string contentType, string data, string extraParams, integer blend, integer disp, integer timer, integer alpha, integer face)&lt;br /&gt;
|csharp_syntax=string osSetDynamicTextureDataBlendFace(string dynamicID, string contentType, string data, string extraParams, bool blend, int disp, int timer, int alpha, int face)&lt;br /&gt;
|ossl_example=&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
// Example of osSetDynamicTextureDataBlendFace used to put a number on each face of a prim&lt;br /&gt;
string FontName = &amp;quot;Arial&amp;quot;;&lt;br /&gt;
integer FontSize = 128;&lt;br /&gt;
&lt;br /&gt;
NumberEachFace() {&lt;br /&gt;
    integer face = llGetNumberOfSides();&lt;br /&gt;
    while (face--) {&lt;br /&gt;
        string text = (string)face;&lt;br /&gt;
        vector size = osGetDrawStringSize(&amp;quot;vector&amp;quot;, text, FontName, FontSize);&lt;br /&gt;
        integer xpos = (256 - (integer)size.x) &amp;gt;&amp;gt; 1;&lt;br /&gt;
        integer ypos = (256 - (integer)size.y) &amp;gt;&amp;gt; 1;&lt;br /&gt;
&lt;br /&gt;
        string commandList = &amp;quot;&amp;quot;;&lt;br /&gt;
        commandList = osMovePen(commandList, xpos, ypos);&lt;br /&gt;
        commandList = osSetFontName(commandList, FontName);&lt;br /&gt;
        commandList = osSetFontSize(commandList, FontSize);&lt;br /&gt;
        commandList = osDrawText(commandList, text);&lt;br /&gt;
&lt;br /&gt;
        osSetDynamicTextureDataBlendFace(&amp;quot;&amp;quot;, &amp;quot;vector&amp;quot;, commandList, &amp;quot;width:256,height:256&amp;quot;,&lt;br /&gt;
                                         FALSE, 2, 0, 255, face);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
default {&lt;br /&gt;
    state_entry() {&lt;br /&gt;
        NumberEachFace();&lt;br /&gt;
    }&lt;br /&gt;
    changed(integer change) {&lt;br /&gt;
        if (change &amp;amp; CHANGED_SHAPE)&lt;br /&gt;
            NumberEachFace();&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
|description=Returns UUID of the generated texture. Intended to be used with subsequent calls to osSetDynamicTextureXXXX functions in order to modify the texture. &lt;br /&gt;
&lt;br /&gt;
'''NOT IMPLEMENTED YET;''' the current implementation always returns a string with NULL_KEY.&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Renders a dynamically created texture on the face of a prim containing the script, possibly blending it with the texture that is already set for the face.&lt;br /&gt;
{|  width=&amp;quot;100%&amp;quot; style=&amp;quot;border: thin solid black&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;3&amp;quot; align=&amp;quot;center&amp;quot; style=background:orange | Parameters&lt;br /&gt;
|-&lt;br /&gt;
|'''Name'''&lt;br /&gt;
|'''Description'''&lt;br /&gt;
|'''Remarks'''&lt;br /&gt;
|-&lt;br /&gt;
|'''dynamicID'''&lt;br /&gt;
|UUID of already existing dynamic texture. Intended to accept UUID from a previous call to osSetDynamicTextureXXXX functions in order to provide modification of an existing dynasmic texture&lt;br /&gt;
| NOT IMPLEMENTED YET&lt;br /&gt;
|-&lt;br /&gt;
|'''contentType''' &lt;br /&gt;
|specifies the type of the '''data''' parameter. &lt;br /&gt;
The following values are allowed:&lt;br /&gt;
*vector - the '''data''' parameter contains a list of drawing instructions. See [[Drawing commands]] for details&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|'''data'''&lt;br /&gt;
|Contains a series of drawing instructions. See [[Drawing commands]] for details&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|'''extraParams'''&lt;br /&gt;
|additional optional parameters in the following format: [param]:[value],[param]:[value]&lt;br /&gt;
Multiple parameters are separated by commas. The following ones are supported:&lt;br /&gt;
*width - width of the dynamic texture in pixels (example:  width:256)&lt;br /&gt;
*height - height of the dynamic texture in pixels (example:  height:256)&lt;br /&gt;
*alpha - alpha (transparency) component of the dynamic texture. Values are from 0-clear to 255-solid, and ''false'' to turn off the alpha layer completely (example: alpha:255)&lt;br /&gt;
*bgcolour - specifies the background color of the texture (example:   bgcolour:Red)&lt;br /&gt;
*altdatadelim - specifies a delimiter between the draw commands contained in the '''data''' parameter.&lt;br /&gt;
*setalpha &lt;br /&gt;
*integer value  - any integer value is treated like specifing aplha component&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|'''blend'''&lt;br /&gt;
|If ''true'', the newly generated texture is blended with the appropriate existing ones on the prim.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|'''disp'''&lt;br /&gt;
|Display flags. Value 1-expire deletes the old texture if it is replaced by a newer generated texture (may not currently be implemented). Value 2-temp flags the asset as temporary, which often means that it is not persisted to the database.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|'''timer'''&lt;br /&gt;
|specify a time interval to update the texture&lt;br /&gt;
|NOT IMPLEMENTED YET&lt;br /&gt;
|-&lt;br /&gt;
|'''alpha'''&lt;br /&gt;
|The alpha value of the generated texture.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|'''face'''&lt;br /&gt;
|The face of the prim on which to put the generated texture.  If ALL_SIDES then all sides of the prim are set.&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
The '''dynamicID''' parameter is not implemented. The value passed will be ignored [http://www.lecasinoenligne.eu/ casino en ligne].&lt;br /&gt;
&lt;br /&gt;
The '''timer''' parameter is not implemented. The value passed will be ignored. Instead, you can use a timer event and recall the function to get the same effect.&lt;br /&gt;
[[Category:OSSL_pages_in_need_of_parameters_template]]&lt;/div&gt;</summary>
		<author><name>HollyGadsdon</name></author>	</entry>

	</feed>