Trait rin_scene::scene::CreationContext [−][src]
pub trait CreationContext<'a>: EntitiesCreationExt<'a> + EntitiesExt<'a> + ResourcesExt + ResourcesThreadLocalExt {}Show methods
fn add<'e, B: Builder<'e>>(
&'e mut self,
settings: <B as Builder<'e>>::Settings
) -> B
where
Self: Sized; fn add_model(&mut self, name: &str) -> ModelBuilder<'_>; fn add_child_model(
&mut self,
name: &str,
parent: Entity
) -> ModelBuilder<'_>; fn add_empty(&mut self, name: &str) -> EmptyBuilder<'_>; fn add_child_empty(
&mut self,
name: &str,
parent: Entity
) -> EmptyBuilder<'_>; fn register_mesh<T>(&mut self, geom: Mesh<T>) -> GeometryRef
where
T: 'static + VertexFormat + Send + Clone + Copy + Debug; fn register_named_mesh<T>(
&mut self,
geom: Mesh<T>,
name: &str
) -> GeometryRef
where
T: 'static + VertexFormat + Send + Clone + Copy + Debug; fn add_ambient_light(
&mut self,
diffuse: Rgb<f32, LinearRgb>,
specular: Rgb<f32, LinearRgb>
) -> Entity; fn add_directional_light<'e>(
&'e mut self,
name: &'e str
) -> DirectionalLightBuilder<'e, Self>
where
Self: Sized; fn add_area_light<'e>(
&'e mut self,
name: &'e str
) -> AreaLightBuilder<'e, Self>
where
Self: Sized; fn add_spot_light<'e>(
&'e mut self,
name: &'e str
) -> SpotLightBuilder<'e, Self>
where
Self: Sized; fn add_point_light<'e>(
&'e mut self,
name: &'e str
) -> PointLightBuilder<'e, Self>
where
Self: Sized; fn update_all_transformations(&mut self); fn add_image_based_light<'e>(
&'e mut self,
name: &'e str
) -> ImageBasedLightBuilder<'e, Self>
where
Self: Sized; fn register_material<M: FullMaterial + 'static>(
&mut self,
name: &str,
material: M
) -> MaterialRef; fn register_shadow_material<M: FullMaterial + 'static>(
&mut self,
name: &str,
material: M
) -> ShadowMaterialRef; 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,
creation_flags: TextureCreationFlags,
data: &[T]
) -> Result<TextureRef, Error>; fn register_image<I: Image + Clone>(
&mut self,
img: &I,
creation_flags: TextureCreationFlags
) -> Result<TextureRef, Error>; fn register_named_texture_from_data_format<T: 'static>(
&mut self,
name: &str,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T]
) -> Result<TextureRef, Error>; fn register_named_image<I: Image + Clone>(
&mut self,
name: &str,
img: &I,
creation_flags: TextureCreationFlags
) -> Result<TextureRef, Error>; fn register_sampler(&mut self, sampler: Sampler) -> SamplerRef; fn register_named_sampler(
&mut self,
name: &str,
sampler: Sampler
) -> SamplerRef; fn register_cubemap(&mut self, cubemap: CubeMap) -> CubemapRef; fn register_named_cubemap(
&mut self,
name: &str,
cubemap: CubeMap
) -> CubemapRef; fn find_named_texture(&self, name: &str) -> Option<TextureRef>; fn find_named_cubemap(&self, name: &str) -> Option<CubemapRef>; fn find_named_sampler(&self, name: &str) -> Option<SamplerRef>; fn load_image<P>(
&mut self,
path: P,
flags: TextureCreationFlags
) -> Result<TextureRef>
where
P: AsRef<Path>; fn load_cubemap<P>(
&mut self,
path: P,
flags: TextureCreationFlags
) -> Result<CubemapRef>
where
P: AsRef<Path>; fn load_equirectangular_cubemap<P>(
&mut self,
path: P,
flags: TextureCreationFlags,
color_format: ColorFormat
) -> Result<CubemapRef>
where
P: AsRef<Path>; fn load_equirectangular_levels_cubemap<P>(
&mut self,
paths: &[P],
flags: TextureCreationFlags,
color_format: ColorFormat
) -> Result<CubemapRef>
where
P: AsRef<Path>; fn register_vertex_type<T>(&mut self)
where
T: 'static + VertexFormat + Send + Clone + Copy + Debug;
Required methods
fn add<'e, B: Builder<'e>>(
&'e mut self,
settings: <B as Builder<'e>>::Settings
) -> B where
Self: Sized,
[src]
&'e mut self,
settings: <B as Builder<'e>>::Settings
) -> B where
Self: Sized,
fn add_model(&mut self, name: &str) -> ModelBuilder<'_>
[src]
fn add_child_model(&mut self, name: &str, parent: Entity) -> ModelBuilder<'_>
[src]
fn add_empty(&mut self, name: &str) -> EmptyBuilder<'_>
[src]
fn add_child_empty(&mut self, name: &str, parent: Entity) -> EmptyBuilder<'_>
[src]
fn register_mesh<T>(&mut self, geom: Mesh<T>) -> GeometryRef where
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
[src]
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
fn register_named_mesh<T>(&mut self, geom: Mesh<T>, name: &str) -> GeometryRef where
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
[src]
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
fn add_ambient_light(
&mut self,
diffuse: Rgb<f32, LinearRgb>,
specular: Rgb<f32, LinearRgb>
) -> Entity
[src]
&mut self,
diffuse: Rgb<f32, LinearRgb>,
specular: Rgb<f32, LinearRgb>
) -> Entity
fn add_directional_light<'e>(
&'e mut self,
name: &'e str
) -> DirectionalLightBuilder<'e, Self> where
Self: Sized,
[src]
&'e mut self,
name: &'e str
) -> DirectionalLightBuilder<'e, Self> where
Self: Sized,
fn add_area_light<'e>(&'e mut self, name: &'e str) -> AreaLightBuilder<'e, Self> where
Self: Sized,
[src]
Self: Sized,
fn add_spot_light<'e>(&'e mut self, name: &'e str) -> SpotLightBuilder<'e, Self> where
Self: Sized,
[src]
Self: Sized,
fn add_point_light<'e>(
&'e mut self,
name: &'e str
) -> PointLightBuilder<'e, Self> where
Self: Sized,
[src]
&'e mut self,
name: &'e str
) -> PointLightBuilder<'e, Self> where
Self: Sized,
fn update_all_transformations(&mut self)
[src]
fn add_image_based_light<'e>(
&'e mut self,
name: &'e str
) -> ImageBasedLightBuilder<'e, Self> where
Self: Sized,
[src]
&'e mut self,
name: &'e str
) -> ImageBasedLightBuilder<'e, Self> where
Self: Sized,
fn register_material<M: FullMaterial + 'static>(
&mut self,
name: &str,
material: M
) -> MaterialRef
[src]
&mut self,
name: &str,
material: M
) -> MaterialRef
fn register_shadow_material<M: FullMaterial + 'static>(
&mut self,
name: &str,
material: M
) -> ShadowMaterialRef
[src]
&mut self,
name: &str,
material: M
) -> ShadowMaterialRef
fn find_material(&self, name: &str) -> Option<MaterialRef>
[src]
fn register_texture(&mut self, texture: Texture) -> TextureRef
[src]
fn register_texture_from_data_format<T: 'static>(
&mut self,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T]
) -> Result<TextureRef, Error>
[src]
&mut self,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T]
) -> Result<TextureRef, Error>
fn register_image<I: Image + Clone>(
&mut self,
img: &I,
creation_flags: TextureCreationFlags
) -> Result<TextureRef, Error>
[src]
&mut self,
img: &I,
creation_flags: TextureCreationFlags
) -> Result<TextureRef, Error>
fn register_named_texture_from_data_format<T: 'static>(
&mut self,
name: &str,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T]
) -> Result<TextureRef, Error>
[src]
&mut self,
name: &str,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T]
) -> Result<TextureRef, Error>
fn register_named_image<I: Image + Clone>(
&mut self,
name: &str,
img: &I,
creation_flags: TextureCreationFlags
) -> Result<TextureRef, Error>
[src]
&mut self,
name: &str,
img: &I,
creation_flags: TextureCreationFlags
) -> Result<TextureRef, Error>
fn register_sampler(&mut self, sampler: Sampler) -> SamplerRef
[src]
fn register_named_sampler(&mut self, name: &str, sampler: Sampler) -> SamplerRef
[src]
fn register_cubemap(&mut self, cubemap: CubeMap) -> CubemapRef
[src]
fn register_named_cubemap(&mut self, name: &str, cubemap: CubeMap) -> CubemapRef
[src]
fn find_named_texture(&self, name: &str) -> Option<TextureRef>
[src]
fn find_named_cubemap(&self, name: &str) -> Option<CubemapRef>
[src]
fn find_named_sampler(&self, name: &str) -> Option<SamplerRef>
[src]
fn load_image<P>(
&mut self,
path: P,
flags: TextureCreationFlags
) -> Result<TextureRef> where
P: AsRef<Path>,
[src]
&mut self,
path: P,
flags: TextureCreationFlags
) -> Result<TextureRef> where
P: AsRef<Path>,
fn load_cubemap<P>(
&mut self,
path: P,
flags: TextureCreationFlags
) -> Result<CubemapRef> where
P: AsRef<Path>,
[src]
&mut self,
path: P,
flags: TextureCreationFlags
) -> Result<CubemapRef> where
P: AsRef<Path>,
fn load_equirectangular_cubemap<P>(
&mut self,
path: P,
flags: TextureCreationFlags,
color_format: ColorFormat
) -> Result<CubemapRef> where
P: AsRef<Path>,
[src]
&mut self,
path: P,
flags: TextureCreationFlags,
color_format: ColorFormat
) -> Result<CubemapRef> where
P: AsRef<Path>,
fn load_equirectangular_levels_cubemap<P>(
&mut self,
paths: &[P],
flags: TextureCreationFlags,
color_format: ColorFormat
) -> Result<CubemapRef> where
P: AsRef<Path>,
[src]
&mut self,
paths: &[P],
flags: TextureCreationFlags,
color_format: ColorFormat
) -> Result<CubemapRef> where
P: AsRef<Path>,
fn register_vertex_type<T>(&mut self) where
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
[src]
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
Implementors
impl<'a, C: CreationContextExt<'a> + EntitiesExt<'a> + ResourcesExt + ResourcesThreadLocalExt> CreationContext<'a> for C
[src]
impl<'a, C: CreationContextExt<'a> + EntitiesExt<'a> + ResourcesExt + ResourcesThreadLocalExt> CreationContext<'a> for C
[src]fn add<'e, B: Builder<'e>>(
&'e mut self,
settings: <B as Builder<'e>>::Settings
) -> B
[src]
&'e mut self,
settings: <B as Builder<'e>>::Settings
) -> B
fn add_model(&mut self, name: &str) -> ModelBuilder<'_>
[src]
fn add_child_model(&mut self, name: &str, parent: Entity) -> ModelBuilder<'_>
[src]
fn add_empty(&mut self, name: &str) -> EmptyBuilder<'_>
[src]
fn add_child_empty(&mut self, name: &str, parent: Entity) -> EmptyBuilder<'_>
[src]
fn register_mesh<T>(&mut self, geom: Mesh<T>) -> GeometryRef where
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
[src]
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
fn register_named_mesh<T>(&mut self, geom: Mesh<T>, name: &str) -> GeometryRef where
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
[src]
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
fn add_ambient_light(
&mut self,
diffuse: Rgb<f32, LinearRgb>,
specular: Rgb<f32, LinearRgb>
) -> Entity
[src]
&mut self,
diffuse: Rgb<f32, LinearRgb>,
specular: Rgb<f32, LinearRgb>
) -> Entity
fn add_directional_light<'e>(
&'e mut self,
name: &'e str
) -> DirectionalLightBuilder<'e, Self> where
Self: Sized,
[src]
&'e mut self,
name: &'e str
) -> DirectionalLightBuilder<'e, Self> where
Self: Sized,
fn add_area_light<'e>(&'e mut self, name: &'e str) -> AreaLightBuilder<'e, Self> where
Self: Sized,
[src]
Self: Sized,
fn add_spot_light<'e>(&'e mut self, name: &'e str) -> SpotLightBuilder<'e, Self> where
Self: Sized,
[src]
Self: Sized,
fn add_point_light<'e>(
&'e mut self,
name: &'e str
) -> PointLightBuilder<'e, Self> where
Self: Sized,
[src]
&'e mut self,
name: &'e str
) -> PointLightBuilder<'e, Self> where
Self: Sized,
fn update_all_transformations(&mut self)
[src]
fn add_image_based_light<'e>(
&'e mut self,
name: &'e str
) -> ImageBasedLightBuilder<'e, Self> where
Self: Sized,
[src]
&'e mut self,
name: &'e str
) -> ImageBasedLightBuilder<'e, Self> where
Self: Sized,
fn register_material<M: FullMaterial + 'static>(
&mut self,
name: &str,
material: M
) -> MaterialRef
[src]
&mut self,
name: &str,
material: M
) -> MaterialRef
fn register_shadow_material<M: FullMaterial + 'static>(
&mut self,
name: &str,
material: M
) -> ShadowMaterialRef
[src]
&mut self,
name: &str,
material: M
) -> ShadowMaterialRef
fn find_material(&self, name: &str) -> Option<MaterialRef>
[src]
fn register_texture(&mut self, texture: Texture) -> TextureRef
[src]
fn register_texture_from_data_format<T: 'static>(
&mut self,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T]
) -> Result<TextureRef, Error>
[src]
&mut self,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T]
) -> Result<TextureRef, Error>
fn register_image<I: Image + Clone>(
&mut self,
img: &I,
creation_flags: TextureCreationFlags
) -> Result<TextureRef, Error>
[src]
&mut self,
img: &I,
creation_flags: TextureCreationFlags
) -> Result<TextureRef, Error>
fn register_named_texture_from_data_format<T: 'static>(
&mut self,
name: &str,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T]
) -> Result<TextureRef, Error>
[src]
&mut self,
name: &str,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T]
) -> Result<TextureRef, Error>
fn register_named_image<I: Image + Clone>(
&mut self,
name: &str,
img: &I,
creation_flags: TextureCreationFlags
) -> Result<TextureRef, Error>
[src]
&mut self,
name: &str,
img: &I,
creation_flags: TextureCreationFlags
) -> Result<TextureRef, Error>
fn register_sampler(&mut self, sampler: Sampler) -> SamplerRef
[src]
fn register_named_sampler(&mut self, name: &str, sampler: Sampler) -> SamplerRef
[src]
fn register_cubemap(&mut self, cubemap: CubeMap) -> CubemapRef
[src]
fn register_named_cubemap(&mut self, name: &str, cubemap: CubeMap) -> CubemapRef
[src]
fn find_named_texture(&self, name: &str) -> Option<TextureRef>
[src]
fn find_named_cubemap(&self, name: &str) -> Option<CubemapRef>
[src]
fn find_named_sampler(&self, name: &str) -> Option<SamplerRef>
[src]
fn load_image<P>(
&mut self,
path: P,
flags: TextureCreationFlags
) -> Result<TextureRef> where
P: AsRef<Path>,
[src]
&mut self,
path: P,
flags: TextureCreationFlags
) -> Result<TextureRef> where
P: AsRef<Path>,
fn load_cubemap<P>(
&mut self,
path: P,
flags: TextureCreationFlags
) -> Result<CubemapRef> where
P: AsRef<Path>,
[src]
&mut self,
path: P,
flags: TextureCreationFlags
) -> Result<CubemapRef> where
P: AsRef<Path>,
fn load_equirectangular_cubemap<P>(
&mut self,
path: P,
flags: TextureCreationFlags,
color_format: ColorFormat
) -> Result<CubemapRef> where
P: AsRef<Path>,
[src]
&mut self,
path: P,
flags: TextureCreationFlags,
color_format: ColorFormat
) -> Result<CubemapRef> where
P: AsRef<Path>,
fn load_equirectangular_levels_cubemap<P>(
&mut self,
paths: &[P],
flags: TextureCreationFlags,
color_format: ColorFormat
) -> Result<CubemapRef> where
P: AsRef<Path>,
[src]
&mut self,
paths: &[P],
flags: TextureCreationFlags,
color_format: ColorFormat
) -> Result<CubemapRef> where
P: AsRef<Path>,
fn register_vertex_type<T>(&mut self) where
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
[src]
T: 'static + VertexFormat + Send + Clone + Copy + Debug,