Enum amethyst_renderer::MeshData [−][src]
pub enum MeshData {
PosColor(Vec<PosColor>),
PosTex(Vec<PosTex>),
PosNormTex(Vec<PosNormTex>),
PosNormTangTex(Vec<PosNormTangTex>),
Creator(Box<MeshCreator>),
}Mesh data for loading
Variants
PosColor(Vec<PosColor>)Position and color
PosTex(Vec<PosTex>)Position and texture coordinates
PosNormTex(Vec<PosNormTex>)Position, normal and texture coordinates
PosNormTangTex(Vec<PosNormTangTex>)Position, normal, tangent and texture coordinates
Creator(Box<MeshCreator>)Create a mesh from a given creator
Trait Implementations
impl Debug for MeshData[src]
impl Debug for MeshDatafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for MeshData[src]
impl Clone for MeshDatafn clone(&self) -> MeshData[src]
fn clone(&self) -> MeshDataReturns 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 From<Vec<PosColor>> for MeshData[src]
impl From<Vec<PosColor>> for MeshDataimpl From<Vec<PosTex>> for MeshData[src]
impl From<Vec<PosTex>> for MeshDataimpl From<Vec<PosNormTex>> for MeshData[src]
impl From<Vec<PosNormTex>> for MeshDatafn from(data: Vec<PosNormTex>) -> Self[src]
fn from(data: Vec<PosNormTex>) -> SelfPerforms the conversion.
impl From<Vec<PosNormTangTex>> for MeshData[src]
impl From<Vec<PosNormTangTex>> for MeshDatafn from(data: Vec<PosNormTangTex>) -> Self[src]
fn from(data: Vec<PosNormTangTex>) -> SelfPerforms the conversion.
impl<M> From<M> for MeshData where
M: MeshCreator, [src]
impl<M> From<M> for MeshData where
M: MeshCreator, impl<'a> PrefabData<'a> for MeshData[src]
impl<'a> PrefabData<'a> for MeshDatatype SystemData = (ReadExpect<'a, Loader>, WriteStorage<'a, MeshHandle>, 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]
) -> StdResult<(), PrefabError>[src]
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> StdResult<(), 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, Error>[src]
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>Trigger asset loading for any sub assets. Read more