read#
- texture.read(p0: str) int #
Load a texture.
Textures must have a resolution of powers of 2. Any image resolution outside of the acceptable resolution will be truncated.- Args:
- p0:
‘filename’ the image filename to be used as the texture
- Examples:
ensight.texture.select(0) ensight.texture.read("/tmp/grass.jpg")
- Returns:
zero on success, non-zero on error