[][src]Trait all_is_cubes::triangulator::ToGfxVertex

pub trait ToGfxVertex<GV>: From<BlockVertex> + Sized {
    type Coordinate: BaseNum;
    fn instantiate(
        &self,
        offset: Vector3<Self::Coordinate>,
        lighting: PackedLight
    ) -> GV; }

Implement this trait along with From<BlockVertex> to provide a representation of BlockVertex suitable for the target graphics system.

Associated Types

Loading content...

Required methods

fn instantiate(
    &self,
    offset: Vector3<Self::Coordinate>,
    lighting: PackedLight
) -> GV

Loading content...

Implementors

impl ToGfxVertex<BlockVertex> for BlockVertex[src]

Trivial implementation for testing purposes. Discards lighting.

type Coordinate = FreeCoordinate

Loading content...