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 Bound
Type of the spatial bound (box, sphere, etc).
Required Methods
fn get_bound(&self) -> Self::Bound
Get the local bound.
fn get_mesh(&self) -> &Mesh<R>
Get the mesh.
fn get_fragments(&self) -> &[Fragment<R, M>]
Get the drawable fragments of this entity.
Provided Methods
fn is_visible(&self) -> bool
Check if it's visible.