Struct amethyst_renderer::GraphicsPrefab [−][src]
pub struct GraphicsPrefab<V, M = ObjFormat, T = TextureFormat> where
M: Format<Mesh>,
M::Options: DeserializeOwned + Serialize,
T: Format<Texture, Options = TextureMetadata>, { /* fields omitted */ }
PrefabData for loading graphics, ie Mesh + Material
Type parameters:
V: Vertex format to use for generated Meshes, must be one of:
* Vec<PosTex>
* Vec<PosNormTex>
* Vec<PosNormTangTex>
* ComboMeshCreator
M:Formatto use for loadingMeshes from fileT:Formatto use for loadingTextures from file
Trait Implementations
impl<'a, V, M, T> PrefabData<'a> for GraphicsPrefab<V, M, T> where
M: Format<Mesh> + Clone,
M::Options: Clone + DeserializeOwned + Serialize,
T: Format<Texture, Options = TextureMetadata> + Sync + Clone,
V: From<InternalShape> + Into<MeshData>, [src]
impl<'a, V, M, T> PrefabData<'a> for GraphicsPrefab<V, M, T> where
M: Format<Mesh> + Clone,
M::Options: Clone + DeserializeOwned + Serialize,
T: Format<Texture, Options = TextureMetadata> + Sync + Clone,
V: From<InternalShape> + Into<MeshData>, type SystemData = (<AssetPrefab<Mesh, M> as PrefabData<'a>>::SystemData, <MaterialPrefab<T> as PrefabData<'a>>::SystemData)
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,
entities: &[Entity]
) -> Result<(), PrefabError>[src]
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
entities: &[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