Struct kiss3d::resource::TextureManager [] [src]

pub struct TextureManager { /* fields omitted */ }

The texture manager.

It keeps a cache of already-loaded textures, and can load new textures.

Methods

impl TextureManager
[src]

Creates a new texture manager.

Mutably applies a function to the texture manager.

Gets the default, completely white, texture.

Get a texture with the specified name. Returns None if the texture is not registered.

Allocates a new texture that is not yet configured.

If a texture with same name exists, nothing is created and the old texture is returned.

Allocates a new texture read from a file. If a texture with same name exists, nothing is created and the old texture is returned.