Struct rin_scene::scene::CreationProxy [−][src]
pub struct CreationProxy<'a> { /* fields omitted */ }
Implementations
impl<'a> CreationProxy<'a>
[src]
impl<'a> CreationProxy<'a>
[src]pub fn new(
entities: EntitiesCreation<'a>,
resources: ResourcesCreation<'a>
) -> CreationProxy<'a>
[src]
entities: EntitiesCreation<'a>,
resources: ResourcesCreation<'a>
) -> CreationProxy<'a>
pub fn clone(&mut self) -> CreationProxy<'_>
[src]
pub fn as_storages(&mut self) -> CreationStorages<'_>
[src]
Trait Implementations
impl<'a> CreationContextExt<'a> for CreationProxy<'a>
[src]
impl<'a> CreationContextExt<'a> for CreationProxy<'a>
[src]fn with_entities_and_resources_creation<'e, F, R>(&'e mut self, f: F) -> R where
F: FnOnce(EntitiesCreation<'e>, ResourcesCreation<'e>) -> R,
[src]
F: FnOnce(EntitiesCreation<'e>, ResourcesCreation<'e>) -> R,
impl<'a> EntitiesCreationExt<'a> for CreationProxy<'a>
[src]
impl<'a> EntitiesCreationExt<'a> for CreationProxy<'a>
[src]fn with_entities_creation<'e, F, R>(&'e mut self, f: F) -> R where
F: FnOnce(EntitiesCreation<'e>) -> R,
[src]
F: FnOnce(EntitiesCreation<'e>) -> R,
fn new_entity(&mut self) -> EntityBuilder<'_>
[src]
fn creation_storage<C: Component>(&mut self) -> CreationSto<'_, C>
[src]
pub fn add_component_to<'r, C>(&mut self, entity: &Entity, component: C) where
C: ComponentSend,
<C as Component>::Storage: for<'s> Storage<'s, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
[src]
C: ComponentSend,
<C as Component>::Storage: for<'s> Storage<'s, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
pub fn add_component_to_thread_local<'r, C>(
&mut self,
entity: &Entity,
component: C
) where
C: ComponentThreadLocal,
<C as Component>::Storage: for<'s> Storage<'s, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
[src]
&mut self,
entity: &Entity,
component: C
) where
C: ComponentThreadLocal,
<C as Component>::Storage: for<'s> Storage<'s, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
pub fn add_tag_to<C>(&mut self, entity: &Entity) where
C: 'static,
[src]
C: 'static,
pub fn add_child_component_to<'r, C>(
&mut self,
parent: &Entity,
entity: &Entity,
component: C
) where
C: ComponentSend,
<C as Component>::Storage: for<'b> HierarchicalStorage<'b, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
[src]
&mut self,
parent: &Entity,
entity: &Entity,
component: C
) where
C: ComponentSend,
<C as Component>::Storage: for<'b> HierarchicalStorage<'b, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
pub fn add_child_component_to_thread_local<'r, C>(
&mut self,
parent: &Entity,
entity: &Entity,
component: C
) where
C: ComponentThreadLocal,
<C as Component>::Storage: for<'b> HierarchicalStorage<'b, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
[src]
&mut self,
parent: &Entity,
entity: &Entity,
component: C
) where
C: ComponentThreadLocal,
<C as Component>::Storage: for<'b> HierarchicalStorage<'b, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
pub fn add_slice_component_to<'r, C, I>(
&mut self,
entity: &Entity,
component: I
) where
C: OneToNComponentSend,
I: IntoIterator<Item = C>,
<C as Component>::Storage: for<'s> OneToNStorage<'s, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
[src]
&mut self,
entity: &Entity,
component: I
) where
C: OneToNComponentSend,
I: IntoIterator<Item = C>,
<C as Component>::Storage: for<'s> OneToNStorage<'s, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
pub fn add_slice_component_to_thread_local<'r, C, I>(
&mut self,
entity: &Entity,
component: I
) where
C: OneToNComponentThreadLocal,
I: IntoIterator<Item = C>,
<C as Component>::Storage: for<'s> OneToNStorage<'s, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
[src]
&mut self,
entity: &Entity,
component: I
) where
C: OneToNComponentThreadLocal,
I: IntoIterator<Item = C>,
<C as Component>::Storage: for<'s> OneToNStorage<'s, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
pub fn remove_component_from<'r, C>(&mut self, entity: &Entity) where
C: Component,
<C as Component>::Storage: for<'s> Storage<'s, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
[src]
C: Component,
<C as Component>::Storage: for<'s> Storage<'s, C>,
<<C as Component>::Storage as Storage<'r, C>>::Get: DebugParameter,
pub fn remove_entity(&mut self, entity: &Entity)
[src]
impl<'a> EntitiesExt<'a> for CreationProxy<'a>
[src]
impl<'a> EntitiesExt<'a> for CreationProxy<'a>
[src]fn iter_for<'e, S: UnorderedDataSend<'e> + ReadOnlyOp<'e>>(&'e self) -> S::Iter
[src]
fn iter_for_mut<'e, S: UnorderedDataSend<'e>>(&'e mut self) -> S::IterMut
[src]
fn ordered_iter_for<'e, S: OrderedDataSend<'e> + ReadOnlyOrderedOp<'e>>(
&'e self
) -> S::Iter
[src]
&'e self
) -> S::Iter
fn ordered_iter_for_mut<'e, S: OrderedDataSend<'e>>(&'e mut self) -> S::Iter
[src]
fn entity_components<'r, S>(
&'r self,
entity: &Entity
) -> Option<S::ComponentsRef> where
S: UnorderedDataSend<'r> + ReadOnlyOp<'r> + 'r,
S::Storage: StorageRef<'r, Component = S::ComponentsRef>,
[src]
&'r self,
entity: &Entity
) -> Option<S::ComponentsRef> where
S: UnorderedDataSend<'r> + ReadOnlyOp<'r> + 'r,
S::Storage: StorageRef<'r, Component = S::ComponentsRef>,
fn entity_components_mut<'r, S>(
&'r mut self,
entity: &Entity
) -> Option<S::ComponentsRef> where
S: UnorderedDataSend<'r> + 'r,
S::Storage: StorageRef<'r, Component = S::ComponentsRef>,
[src]
&'r mut self,
entity: &Entity
) -> Option<S::ComponentsRef> where
S: UnorderedDataSend<'r> + 'r,
S::Storage: StorageRef<'r, Component = S::ComponentsRef>,
fn iter_for_entities<'e, U, E>(&'e self, entities: E) -> E::IntoEntitiesIter where
E: IntoEntitiesIterator<'e, U::Storage>,
U: UnorderedDataSend<'e>,
U::Storage: ReadOnlyStorage,
[src]
E: IntoEntitiesIterator<'e, U::Storage>,
U: UnorderedDataSend<'e>,
U::Storage: ReadOnlyStorage,
fn iter_for_entities_mut<'e, U, E>(
&'e mut self,
entities: E
) -> E::IntoEntitiesIterMut where
E: IntoEntitiesIterator<'e, U::Storage>,
U: UnorderedDataSend<'e>,
[src]
&'e mut self,
entities: E
) -> E::IntoEntitiesIterMut where
E: IntoEntitiesIterator<'e, U::Storage>,
U: UnorderedDataSend<'e>,
fn iter_for_entities_opt<'e, U, E>(
&'e self,
entities: E
) -> E::IntoEntitiesOptIter where
E: IntoEntitiesIterator<'e, U::Storage>,
U: UnorderedDataSend<'e>,
U::Storage: ReadOnlyStorage,
[src]
&'e self,
entities: E
) -> E::IntoEntitiesOptIter where
E: IntoEntitiesIterator<'e, U::Storage>,
U: UnorderedDataSend<'e>,
U::Storage: ReadOnlyStorage,
fn iter_for_entities_opt_mut<'e, U, E>(
&'e mut self,
entities: E
) -> E::IntoEntitiesOptIterMut where
E: IntoEntitiesIterator<'e, U::Storage>,
U: UnorderedDataSend<'e>,
[src]
&'e mut self,
entities: E
) -> E::IntoEntitiesOptIterMut where
E: IntoEntitiesIterator<'e, U::Storage>,
U: UnorderedDataSend<'e>,
fn component_for<C: ComponentSend>(&self, entity: &Entity) -> Option<Ptr<'_, C>> where
C::Storage: Storage<'s, C>,
[src]
C::Storage: Storage<'s, C>,
fn component_for_mut<C: ComponentSend>(
&self,
entity: &Entity
) -> Option<PtrMut<'_, C>> where
C::Storage: Storage<'s, C>,
[src]
&self,
entity: &Entity
) -> Option<PtrMut<'_, C>> where
C::Storage: Storage<'s, C>,
fn has_component<C: 'static>(&self, entity: &Entity) -> bool
[src]
fn tree_node_for<C: ComponentSend>(
&self,
entity: &Entity
) -> Option<NodePtr<'_, C>> where
C::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
entity: &Entity
) -> Option<NodePtr<'_, C>> where
C::Storage: HierarchicalStorage<'b, C>,
fn tree_node_for_mut<C: ComponentSend>(
&self,
entity: &Entity
) -> Option<NodePtrMut<'_, C>> where
C::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
entity: &Entity
) -> Option<NodePtrMut<'_, C>> where
C::Storage: HierarchicalStorage<'b, C>,
fn changed_iter_for<'r, S>(
&'r self
) -> EntitiesComponentIter<'r, S::ChangedIter, S::Storage> where
S: ChangedDataSend<'r> + EntitiesData + ReadOnlyOp<'r> + 'r,
S::Storage: StorageRef<'r>,
[src]
&'r self
) -> EntitiesComponentIter<'r, S::ChangedIter, S::Storage> where
S: ChangedDataSend<'r> + EntitiesData + ReadOnlyOp<'r> + 'r,
S::Storage: StorageRef<'r>,
fn changed_iter_for_mut<'r, S>(
&'r mut self
) -> EntitiesComponentIter<'r, S::ChangedIter, S::Storage> where
S: ChangedDataSend<'r> + EntitiesData + 'r,
S::Storage: StorageRef<'r>,
[src]
&'r mut self
) -> EntitiesComponentIter<'r, S::ChangedIter, S::Storage> where
S: ChangedDataSend<'r> + EntitiesData + 'r,
S::Storage: StorageRef<'r>,
fn storage_for<'r, S>(&'r self) -> Sto<'r, S> where
S: UnorderedDataSend<'r> + ReadOnlyOp<'r>,
[src]
S: UnorderedDataSend<'r> + ReadOnlyOp<'r>,
fn storage_for_mut<'r, S>(&'r mut self) -> Sto<'r, S> where
S: UnorderedDataSend<'r>,
[src]
S: UnorderedDataSend<'r>,
impl<'a> ResourcesCreationExt for CreationProxy<'a>
[src]
impl<'a> ResourcesCreationExt for CreationProxy<'a>
[src]fn with_resources_creation<F, R>(&mut self, f: F) -> R where
F: FnOnce(ResourcesCreation<'_>) -> R,
[src]
F: FnOnce(ResourcesCreation<'_>) -> R,
pub fn add_resource<T>(&mut self, resource: T) where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn remove_resource<T>(&mut self) -> Option<T> where
T: 'static,
[src]
T: 'static,
pub fn add_resource_thread_local<T>(&mut self, resource: T) where
T: 'static,
[src]
T: 'static,
pub fn add_resource_as_trait<T, U, F, FMut>(&mut self, resource: (T, F, FMut)) where
T: 'static + Send,
F: Fn(&T) -> &U + 'static,
U: 'static + Send + ?Sized,
FMut: Fn(&mut T) -> &mut U + 'static,
[src]
T: 'static + Send,
F: Fn(&T) -> &U + 'static,
U: 'static + Send + ?Sized,
FMut: Fn(&mut T) -> &mut U + 'static,
pub fn add_resource_as_trait_thread_local<T, U, F, FMut>(
&mut self,
resource: (T, F, FMut)
) where
T: 'static,
F: Fn(&T) -> &U + 'static,
U: 'static + ?Sized,
FMut: Fn(&mut T) -> &mut U + 'static,
[src]
&mut self,
resource: (T, F, FMut)
) where
T: 'static,
F: Fn(&T) -> &U + 'static,
U: 'static + ?Sized,
FMut: Fn(&mut T) -> &mut U + 'static,
impl<'a> ResourcesExt for CreationProxy<'a>
[src]
impl<'a> ResourcesExt for CreationProxy<'a>
[src]fn resource<T: 'static + Send>(&self) -> Option<ReadGuardRef<'_, T>>
[src]
fn resource_mut<T: 'static + Send>(&self) -> Option<WriteGuardRef<'_, T>>
[src]
fn resource_as_trait<T: 'static + Send + ?Sized>(
&self
) -> Option<ReadGuardRef<'_, T>>
[src]
&self
) -> Option<ReadGuardRef<'_, T>>
fn resource_as_trait_mut<T: 'static + Send + ?Sized>(
&self
) -> Option<WriteGuardRef<'_, T>>
[src]
&self
) -> Option<WriteGuardRef<'_, T>>
impl<'a> ResourcesThreadLocalExt for CreationProxy<'a>
[src]
impl<'a> ResourcesThreadLocalExt for CreationProxy<'a>
[src]fn resource_thread_local<T: 'static>(&self) -> Option<ReadGuardRef<'_, T>>
[src]
fn resource_thread_local_mut<T: 'static>(&self) -> Option<WriteGuardRef<'_, T>>
[src]
fn resource_as_trait_thread_local<T: 'static + ?Sized>(
&self
) -> Option<ReadGuardRef<'_, T>>
[src]
&self
) -> Option<ReadGuardRef<'_, T>>
fn resource_as_trait_thread_local_mut<T: 'static + ?Sized>(
&self
) -> Option<WriteGuardRef<'_, T>>
[src]
&self
) -> Option<WriteGuardRef<'_, T>>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CreationProxy<'a>
impl<'a> !Send for CreationProxy<'a>
impl<'a> !Sync for CreationProxy<'a>
impl<'a> Unpin for CreationProxy<'a>
impl<'a> !UnwindSafe for CreationProxy<'a>
Blanket Implementations
impl<'a, C> CreationContext<'a> for C where
C: CreationContextExt<'a> + EntitiesExt<'a> + ResourcesExt + ResourcesThreadLocalExt,
[src]
impl<'a, C> CreationContext<'a> for C where
C: CreationContextExt<'a> + EntitiesExt<'a> + ResourcesExt + ResourcesThreadLocalExt,
[src]pub fn add<'e, B>(&'e mut Self, <B as Builder<'e>>::Settings) -> B where
B: Builder<'e>,
[src]
B: Builder<'e>,
pub fn add_model(&mut Self, &str) -> ModelBuilder<'_>
[src]
pub fn add_child_model(&mut Self, &str, Entity) -> ModelBuilder<'_>
[src]
pub fn add_empty(&mut Self, &str) -> EmptyBuilder<'_>
[src]
pub fn add_child_empty(&mut Self, &str, Entity) -> EmptyBuilder<'_>
[src]
pub fn register_mesh<T>(&mut Self, Mesh<T>) -> GeometryRef where
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
[src]
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
pub fn register_named_mesh<T>(&mut Self, Mesh<T>, &str) -> GeometryRef where
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
[src]
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
pub fn add_ambient_light(
&mut Self,
Rgb<f32, LinearRgb>,
Rgb<f32, LinearRgb>
) -> Entity
[src]
&mut Self,
Rgb<f32, LinearRgb>,
Rgb<f32, LinearRgb>
) -> Entity
pub fn add_directional_light(
&'e mut Self,
&'e str
) -> DirectionalLightBuilder<'e, C>
[src]
&'e mut Self,
&'e str
) -> DirectionalLightBuilder<'e, C>
pub fn add_area_light(&'e mut Self, &'e str) -> AreaLightBuilder<'e, C>
[src]
pub fn add_spot_light(&'e mut Self, &'e str) -> SpotLightBuilder<'e, C>
[src]
pub fn add_point_light(&'e mut Self, &'e str) -> PointLightBuilder<'e, C>
[src]
pub fn update_all_transformations(&mut Self)
[src]
pub fn add_image_based_light(
&'e mut Self,
&'e str
) -> ImageBasedLightBuilder<'e, C>
[src]
&'e mut Self,
&'e str
) -> ImageBasedLightBuilder<'e, C>
pub fn register_material<M>(&mut Self, &str, M) -> MaterialRef where
M: 'static + FullMaterial,
[src]
M: 'static + FullMaterial,
pub fn register_shadow_material<M>(&mut Self, &str, M) -> ShadowMaterialRef where
M: 'static + FullMaterial,
[src]
M: 'static + FullMaterial,
pub fn find_material(&Self, &str) -> Option<MaterialRef>
[src]
pub fn register_texture(&mut Self, Texture) -> TextureRef
[src]
pub fn register_texture_from_data_format<T>(
&mut Self,
LoadDataFormat,
TextureCreationFlags,
&[T]
) -> Result<TextureRef, Error> where
T: 'static,
[src]
&mut Self,
LoadDataFormat,
TextureCreationFlags,
&[T]
) -> Result<TextureRef, Error> where
T: 'static,
pub fn register_image<I>(
&mut Self,
&I,
TextureCreationFlags
) -> Result<TextureRef, Error> where
I: Image + Clone,
[src]
&mut Self,
&I,
TextureCreationFlags
) -> Result<TextureRef, Error> where
I: Image + Clone,
pub fn register_named_texture_from_data_format<T>(
&mut Self,
&str,
LoadDataFormat,
TextureCreationFlags,
&[T]
) -> Result<TextureRef, Error> where
T: 'static,
[src]
&mut Self,
&str,
LoadDataFormat,
TextureCreationFlags,
&[T]
) -> Result<TextureRef, Error> where
T: 'static,
pub fn register_named_image<I>(
&mut Self,
&str,
&I,
TextureCreationFlags
) -> Result<TextureRef, Error> where
I: Image + Clone,
[src]
&mut Self,
&str,
&I,
TextureCreationFlags
) -> Result<TextureRef, Error> where
I: Image + Clone,
pub fn register_sampler(&mut Self, Sampler) -> SamplerRef
[src]
pub fn register_named_sampler(&mut Self, &str, Sampler) -> SamplerRef
[src]
pub fn register_cubemap(&mut Self, CubeMap) -> CubemapRef
[src]
pub fn register_named_cubemap(&mut Self, &str, CubeMap) -> CubemapRef
[src]
pub fn find_named_texture(&Self, &str) -> Option<TextureRef>
[src]
pub fn find_named_cubemap(&Self, &str) -> Option<CubemapRef>
[src]
pub fn find_named_sampler(&Self, &str) -> Option<SamplerRef>
[src]
pub fn load_image<P>(
&mut Self,
P,
TextureCreationFlags
) -> Result<TextureRef, Error> where
P: AsRef<Path>,
[src]
&mut Self,
P,
TextureCreationFlags
) -> Result<TextureRef, Error> where
P: AsRef<Path>,
pub fn load_cubemap<P>(
&mut Self,
P,
TextureCreationFlags
) -> Result<CubemapRef, Error> where
P: AsRef<Path>,
[src]
&mut Self,
P,
TextureCreationFlags
) -> Result<CubemapRef, Error> where
P: AsRef<Path>,
pub fn load_equirectangular_cubemap<P>(
&mut Self,
P,
TextureCreationFlags,
ColorFormat
) -> Result<CubemapRef, Error> where
P: AsRef<Path>,
[src]
&mut Self,
P,
TextureCreationFlags,
ColorFormat
) -> Result<CubemapRef, Error> where
P: AsRef<Path>,
pub fn load_equirectangular_levels_cubemap<P>(
&mut Self,
&[P],
TextureCreationFlags,
ColorFormat
) -> Result<CubemapRef, Error> where
P: AsRef<Path>,
[src]
&mut Self,
&[P],
TextureCreationFlags,
ColorFormat
) -> Result<CubemapRef, Error> where
P: AsRef<Path>,
pub fn register_vertex_type<T>(&mut Self) where
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
[src]
T: 'static + VertexFormat + Send + Clone + Copy + Debug,
impl<'a, C> PathFollowerBuilderExt<C> for C where
C: CreationContext<'a>,
[src]
impl<'a, C> PathFollowerBuilderExt<C> for C where
C: CreationContext<'a>,
[src]pub fn add_path_follower(&mut Self, &Entity) -> PathFollowerBuilder<'_, C>
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]