Difference between revisions of "PRIM TEXGEN"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{#if:
{{#if:
{{LSL_Constants/PrimitiveParams}}
 
{{#vardefine:return|[ {{HoverLink|PRIM_TEXGEN_DEFAULT|(0) integer mode}} ]}}
 
{{#vardefine:texgen_const|{{LSL Const|PRIM_TEXGEN|integer|22|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the texture mapping mode of a prim's face}}}}
 
{{#vardefine:p_tg_type_desc|PRIM_TEXGEN_* flag}}
 
{{#vardefine:facetable|{{#var:facetable}}
{{!}}-
{{!}} [ {{#var:texgen_const}} ]
{{!}} {{#var:return}} }}
 
}}</onlyinclude>{{#if:
 
{{LSL_Function/face|face|{{#var:texgen_const}}|!footer=*|return={{#var:return}}}}
 
}}{{LSL Constant
}}{{LSL Constant
|name=PRIM_TEXGEN
|name=PRIM_TEXGEN
Line 7: Line 22:
|desc=PRIM_TEXGEN is used to get and set the configure the texture mapping mode of the {{LSL Param|face}}.
|desc=PRIM_TEXGEN is used to get and set the configure the texture mapping mode of the {{LSL Param|face}}.
{{LSL_Constants/PrimitiveParams/texgen|table=*|sortable=*}}
{{LSL_Constants/PrimitiveParams/texgen|table=*|sortable=*}}
|pa={{LSL Constant/List|i_front=[&#32;[[PRIM_TEXGEN]],&#32;|i_end=&nbsp;]
|pa={{LSL Constant/List|i_front=[&#32;{{#var:texgen_const}},&#32;|i_end=&nbsp;]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|i1_type=integer|i1_name=face
|i1_type=integer|i1_name=face
|i2_type=float|i2_name=tg_type|i2_disp=mode}}
|i2_type=float|i2_name=tg_type|i2_disp=mode}}
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;[[PRIM_TEXGEN]],&#32;|i_end=&nbsp;]);|
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;{{#var:texgen_const}},&#32;|i_end=&nbsp;]);|
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
|text
|text=
====Caveats====
{{#var:caveats}}
|i1_type=integer|i1_name=face
|i1_type=integer|i1_name=face
|r1_type=float|r1_name=tg_type|r1_disp=mode
|r1_type=float|r1_name=tg_type|r1_disp=mode

Revision as of 15:23, 17 April 2008

Description

Constant: integer PRIM_TEXGEN = 22;

The integer constant PRIM_TEXGEN has the value 22

PRIM_TEXGEN is used to get and set the configure the texture mapping mode of the face.

mode Constants Description
PRIM_TEXGEN_DEFAULT 0 The texture repeats units are in texture repeats per face.
PRIM_TEXGEN_PLANAR 1 The texture repeats units are in texture repeats per half meter. This is in contrast to the in-world editing tool, in which the planar texture scaling units are repeats per meter.

[ PRIM_TEXGEN, integer face, float mode ]

[ PRIM_TEXGEN, integer face, float mode ]
• integer face face number or ALL_SIDES
• float mode PRIM_TEXGEN_* flag

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

llGetPrimitiveParams([ PRIM_TEXGEN, integer face ]);

llGetPrimitiveParams([ PRIM_TEXGEN, integer face ]);

Returns the list [ float mode ]

• integer face face number or ALL_SIDES

• float mode PRIM_TEXGEN_* flag

Caveats

Caveats


Related Articles

Constants

•  CHANGED_TEXTURE

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_TEXGEN = 22;