pub trait SmplCodecGloss {
// Required methods
fn from_entity(
entity: &Entity,
scene: &Scene,
max_texture_size: Option<u32>,
) -> SmplCodec;
fn to_entity_builder(&self) -> EntityBuilder;
}Expand description
Creates a SmplCodec from an entity by extracting components from it or
creates a gloss_hecs::EntityBuilder from the SmplCodec
Required Methods§
fn from_entity( entity: &Entity, scene: &Scene, max_texture_size: Option<u32>, ) -> SmplCodec
fn to_entity_builder(&self) -> EntityBuilder
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl SmplCodecGloss for SmplCodec
Trait implementation for SmplCodec
impl SmplCodecGloss for SmplCodec
Trait implementation for SmplCodec