Struct amethyst_renderer::ShapePrefab [−][src]
pub struct ShapePrefab<V> { /* fields omitted */ }Prefab for generating Mesh from basic shapes
Type parameters:
V: Vertex format to use, must be one of:
* Vec<PosTex>
* Vec<PosNormTex>
* Vec<PosNormTangTex>
* ComboMeshCreator
Trait Implementations
impl<V: Clone> Clone for ShapePrefab<V>[src]
impl<V: Clone> Clone for ShapePrefab<V>fn clone(&self) -> ShapePrefab<V>[src]
fn clone(&self) -> ShapePrefab<V>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'a, V> PrefabData<'a> for ShapePrefab<V> where
V: From<InternalShape> + Into<MeshData>, [src]
impl<'a, V> PrefabData<'a> for ShapePrefab<V> where
V: From<InternalShape> + Into<MeshData>, type SystemData = (ReadExpect<'a, Loader>, WriteStorage<'a, Handle<Mesh>>, Read<'a, AssetStorage<Mesh>>)
SystemData needed to perform the load
type Result = ()
The result type returned by the load operation
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>[src]
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>Load the data for this prefab onto the given Entity Read more
fn trigger_sub_loading(
&mut self,
progress: &mut ProgressCounter,
system_data: &mut Self::SystemData
) -> Result<bool, PrefabError>[src]
fn trigger_sub_loading(
&mut self,
progress: &mut ProgressCounter,
system_data: &mut Self::SystemData
) -> Result<bool, PrefabError>Trigger asset loading for any sub assets. Read more
Auto Trait Implementations
impl<V> Send for ShapePrefab<V> where
V: Send,
impl<V> Send for ShapePrefab<V> where
V: Send, impl<V> Sync for ShapePrefab<V> where
V: Sync,
impl<V> Sync for ShapePrefab<V> where
V: Sync,