Difference between revisions of "CHANGED TEXTURE"

From Second Life Wiki
Jump to: navigation, search
m (lsl code tagging)
Line 5: Line 5:
 
|desc=Prim texture parameters (reflection/bump setting, repeats, flip, rotation, or offset) have changed. Transparency or color changes trigger a [[CHANGED_COLOR]] event not a CHANGED_TEXTURE event.
 
|desc=Prim texture parameters (reflection/bump setting, repeats, flip, rotation, or offset) have changed. Transparency or color changes trigger a [[CHANGED_COLOR]] event not a CHANGED_TEXTURE event.
 
|examples=
 
|examples=
<pre>
+
<lsl>
 
default
 
default
 
{
 
{
Line 16: Line 16:
 
     }
 
     }
 
}
 
}
</pre>
+
</lsl>
 
|constants=
 
|constants=
 
{{LSL DefineRow||[[CHANGED_COLOR]]|}}
 
{{LSL DefineRow||[[CHANGED_COLOR]]|}}

Revision as of 11:54, 1 April 2008

Description

Constant: integer CHANGED_TEXTURE = 0x10;

The integer constant CHANGED_TEXTURE has the value 0x10

Prim texture parameters (reflection/bump setting, repeats, flip, rotation, or offset) have changed. Transparency or color changes trigger a CHANGED_COLOR event not a CHANGED_TEXTURE event.

Related Articles

Examples

<lsl> default {

   changed(integer change)
   {
       if (change & CHANGED_TEXTURE) //note that it's & and not &&... it's bitwise!
       {
           llOwnerSay("The prims texture or texture attributes have changed.");
       }
   }

} </lsl>

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_TEXTURE = 0x10;