Vizard 7 » Command Index » Vizard objects » texture » <texture>.getWrap
7.6

<texture>.getWrap

Returns the wrap mode

<texture>.getWrap(  
param  
)  
param
One of the following values:

viz.WRAP_S
viz.WRAP_T
viz.WRAP_R

Remarks

This command will return the wrap mode that was specified with the wrap command. The mode of the specified wrap parameter will be returned.

Return Value

One of the following values:

viz.CLAMP
viz.CLAMP_TO_EDGE
viz.CLAMP_TO_BORDER
viz.REPEAT
viz.MIRROR

Example

if tex.getWrap(viz.WRAP_S) == viz.REPEAT:
    print('Using repeat mode for WRAP_S parameter')

See also

<texture>.wrap