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

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]

SystemData needed to perform the load

The result type returned by the load operation

Load the data for this prefab onto the given Entity Read more

Trigger asset loading for any sub assets. Read more

Auto Trait Implementations

impl<V, M, T> Send for GraphicsPrefab<V, M, T> where
    V: Send,
    <M as Format<Mesh>>::Options: Send

impl<V, M, T> Sync for GraphicsPrefab<V, M, T> where
    M: Sync,
    T: Sync,
    V: Sync,
    <M as Format<Mesh>>::Options: Sync