Vizard 8 » Command Index » Vizard objects » texture » <texture>.disable
8.1

<texture>.disable

Disable a specified mode of the texture

<texture>.disable(  
mode  
)  
mode
The mode to disable. Can be one of the following values or a list of the values:

Mode

Description

viz.TEXTURE_FREE_MEMORY

Controls whether texture image memory will be freed after uploading to graphics card.

viz.TEXTURE_RESIZE_NPOT

Controls whether non-power-of-two textures will be resized.

Remarks

This command can be used to disable a specified mode in the table above on the texture.

Return Value

None

Example

tex = viz.addTexture('image.jpg')
tex.disable(viz.TEXTURE_RESIZE_NPOT)

See also

<texture>.enable