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

<texture>.enable

Enable a specified mode of the texture

<texture>.enable(  
mode  
)  
mode
The mode to enable. 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 enable a specified mode in the table above on the texture.

Return Value

None

Example

tex = viz.addTexture('image.jpg')
tex.enable(viz.TEXTURE_FREE_MEMORY)

See also

<texture>.disable