Open topic with navigation
<texture>.enable
Enable a specified mode of the texture
mode
The mode to enable. Can be one of the following values or a list of the values:
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