[][src]Trait mutiny::scene::CreationContext

pub trait CreationContext: CreationContext {
    fn add<'a, B: Builder<'a, Self>>(
        &'a mut self,
        settings: <B as Builder<'a, Self>>::Settings
    ) -> B
    where
        Self: Sized
;
fn add_model(&mut self, name: &str) -> ModelBuilder;
fn add_empty(&mut self, name: &str) -> EmptyBuilder;
fn add_mesh<T>(&mut self, geom: Mesh<T>) -> GeometryRef
    where
        T: 'static + VertexFormat + Send + Clone + Copy + Debug + Serialize + Deserialize<'static>
;
fn add_named_mesh<T>(&mut self, geom: Mesh<T>, name: &str) -> GeometryRef
    where
        T: 'static + VertexFormat + Send + Clone + Copy + Debug + Serialize + Deserialize<'static>
;
fn add_directional_light<'a>(
        &'a mut self,
        name: &'a str
    ) -> DirectionalLightBuilder<'a, Self>
    where
        Self: Sized
;
fn add_spot_light<'a>(
        &'a mut self,
        name: &'a str
    ) -> SpotLightBuilder<'a, Self>
    where
        Self: Sized
;
fn add_point_light<'a>(
        &'a mut self,
        name: &'a str
    ) -> PointLightBuilder<'a, Self>
    where
        Self: Sized
;
fn update_all_transformations(&mut self);
fn add_image_based_light<'a>(
        &'a mut self,
        name: &'a str
    ) -> ImageBasedLightBuilder<'a, Self>
    where
        Self: Sized
;
fn register_material<M: Material + 'static>(
        &mut self,
        name: &str,
        material: M
    ) -> MaterialRef;
fn find_material(&self, name: &str) -> Option<MaterialRef>;
fn register_texture(&mut self, texture: Texture) -> TextureRef;
fn register_texture_from_data_format<T: 'static>(
        &mut self,
        format: LoadDataFormat,
        data: &[T]
    ) -> Result<TextureRef, Error>;
fn register_image<I: Image>(&mut self, img: &I) -> Result<TextureRef, Error>;
fn register_named_texture_from_data_format<T: 'static>(
        &mut self,
        name: &str,
        format: LoadDataFormat,
        data: &[T]
    ) -> Result<TextureRef, Error>;
fn register_named_image<I: Image>(
        &mut self,
        name: &str,
        img: &I
    ) -> Result<TextureRef, Error>;
fn register_sampler(&mut self, sampler: Sampler) -> SamplerRef;
fn register_named_sampler(
        &mut self,
        name: &str,
        sampler: Sampler
    ) -> SamplerRef;
fn find_named_texture(&self, name: &str) -> Option<TextureRef>; }

Required Methods

Implementors

impl<C: CreationContext> CreationContext for C
[src]