Difference between revisions of "CHANGED TEXTURE"

From Second Life Wiki
Jump to: navigation, search
(added details for CHANGED_TEXTURE)
Line 3: Line 3:
 
|type=integer
 
|type=integer
 
|value={{LSL Hex|0x10}}
 
|value={{LSL Hex|0x10}}
|desc=Prim texture parameters have changed
+
|desc=Prim texture parameters (reflection/bump setting, repeats, flip, rotation, or offset) have changed. Transparency changes trigger a [[CHANGED_COLOR]] event not a CHANGED_TEXTURE event.
 
|examples=
 
|examples=
 
<pre>
 
<pre>

Revision as of 13:45, 19 March 2007

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 changes trigger a CHANGED_COLOR event not a CHANGED_TEXTURE event.

Related Articles

Examples

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.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_TEXTURE = 0x10;