[][src]Trait all_is_cubes::triangulator::TextureAllocator

pub trait TextureAllocator {
    type Tile: TextureTile;
    fn size(&self) -> GridCoordinate;
fn allocate(&mut self) -> Self::Tile; }

Allocator of 2D textures to paint block faces into.

Associated Types

Loading content...

Required methods

fn size(&self) -> GridCoordinate

Edge length of the texture tiles

fn allocate(&mut self) -> Self::Tile

Loading content...

Implementors

impl TextureAllocator for NullTextureAllocator[src]

type Tile = ()

Loading content...