CHANGED TEXTURE: Difference between revisions
Jump to navigation
Jump to search
added details for CHANGED_TEXTURE |
No edit summary |
||
| Line 3: | Line 3: | ||
|type=integer | |type=integer | ||
|value={{LSL Hex|0x10}} | |value={{LSL Hex|0x10}} | ||
|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. | |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> | <pre> | ||
| Line 17: | Line 17: | ||
} | } | ||
</pre> | </pre> | ||
|constants | |constants= | ||
{{LSL DefineRow||[[CHANGED_COLOR]]|}} | |||
|functions= | |functions= | ||
{{LSL DefineRow||[[llSetTexture]]|}} | {{LSL DefineRow||[[llSetTexture]]|}} | ||
Revision as of 07:20, 20 March 2007
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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.
Caveats
Related Articles
Constants
| • | CHANGED_COLOR |
Functions
| • | llSetTexture | |||
| • | llScaleTexture | |||
| • | llOffsetTexture | |||
| • | llRotateTexture | |||
| • | llSetPrimitiveParams | – | PRIM_TEXTURE | |
| • | llSetLinkPrimitiveParams | – | PRIM_TEXTURE |
Events
| • | changed |
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.");
}
}
}