pyunity.files module

Module to represent files.

class pyunity.files.Texture2D(path)[source]

Bases: object

Class to represent a texture.

load()[source]

Loads the texture and sets up an OpenGL texture name.

use()[source]

Binds the texture for usage. The texture is reloaded if it hasn’t already been.