Struct gfx_voxel::texture::AtlasBuilder [] [src]

pub struct AtlasBuilder { /* fields omitted */ }

Builds an atlas of textures.

Methods

impl AtlasBuilder
[src]

Creates a new AtlasBuilder.

Loads a file into the texture atlas. Checks if the file is loaded and returns position within the atlas. The name should be specified without file extension. PNG is the only supported format.

Finds the minimum alpha value in a given sub texture of the image.

Returns the complete texture atlas as a texture.