Trait gfx_scene::Entity [] [src]

pub trait Entity<R: Resources, M>: Node {
    type Bound;
    fn get_bound(&self) -> Self::Bound;
    fn get_mesh(&self) -> &Mesh<R>;
    fn get_fragments(&self) -> &[Fragment<R, M>];

    fn is_visible(&self) -> bool { ... }
}

An abstract entity.

Associated Types

Type of the spatial bound (box, sphere, etc).

Required Methods

Get the local bound.

Get the mesh.

Get the drawable fragments of this entity.

Provided Methods

Check if it's visible.

Implementors