Enum amethyst_renderer::TexturePrefab [−][src]
pub enum TexturePrefab<F> where
F: Format<Texture, Options = TextureMetadata>, { Data(TextureData), File(String, F, TextureMetadata), Handle(Handle<Texture>), }
PrefabData
for loading Texture
s.
Will not add any Component
s to the Entity
, will only return a Handle
Type parameters:
F
:Format
to use for loading theTexture
s from file
Variants
Data(TextureData)
Texture data
File(String, F, TextureMetadata)
Load file with format
Handle(Handle<Texture>)
Clone handle only
Trait Implementations
impl<F: Debug> Debug for TexturePrefab<F> where
F: Format<Texture, Options = TextureMetadata>,
[src]
impl<F: Debug> Debug for TexturePrefab<F> where
F: Format<Texture, Options = TextureMetadata>,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<F: Clone> Clone for TexturePrefab<F> where
F: Format<Texture, Options = TextureMetadata>,
[src]
impl<F: Clone> Clone for TexturePrefab<F> where
F: Format<Texture, Options = TextureMetadata>,
fn clone(&self) -> TexturePrefab<F>
[src]
fn clone(&self) -> TexturePrefab<F>
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, F> PrefabData<'a> for TexturePrefab<F> where
F: Format<Texture, Options = TextureMetadata> + Clone + Sync,
[src]
impl<'a, F> PrefabData<'a> for TexturePrefab<F> where
F: Format<Texture, Options = TextureMetadata> + Clone + Sync,
type SystemData = (ReadExpect<'a, Loader>, Read<'a, AssetStorage<Texture>>)
SystemData
needed to perform the load
type Result = Handle<Texture>
The result type returned by the load operation
fn load_prefab(
&self,
_: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> StdResult<Handle<Texture>, PrefabError>
[src]
fn load_prefab(
&self,
_: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> StdResult<Handle<Texture>, 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
) -> StdResult<bool, PrefabError>
[src]
fn trigger_sub_loading(
&mut self,
progress: &mut ProgressCounter,
system_data: &mut Self::SystemData
) -> StdResult<bool, PrefabError>
Trigger asset loading for any sub assets. Read more
Auto Trait Implementations
impl<F> Send for TexturePrefab<F>
impl<F> Send for TexturePrefab<F>
impl<F> Sync for TexturePrefab<F> where
F: Sync,
impl<F> Sync for TexturePrefab<F> where
F: Sync,