The Texture object is used for texture mapping objects.
initialization
Texture.from_file(filename)
methods
bind()
unbind()
examples
using the bind methods

def gl_init(): Global.texture = Texture.from_file('data/crate.png') def display(): lighting(False) Global.texture.bind() cube(4.0, style="solid") Global.texture.unbind()
passing texture as argument

def gl_init(): Global.texture = Texture.from_file('data/globe.png') def display(): lighting(False) sphere(4.0, texture=Global.texture)