Struct rin_scene::scene::SceneBuilder[][src]

pub struct SceneBuilder { /* fields omitted */ }

Creates a new scene from a renderer and an events dispatcher

Also register the most basic components that are usually always used on any mutiny application and the main systems.

Implementations

impl SceneBuilder[src]

pub fn new(events_poll: EventsPoll) -> SceneBuilder[src]

pub fn add_resource<T: Send + 'static>(&mut self, resource: T)[src]

pub fn add_resource_thread_local<T: 'static>(&mut self, resource: T)[src]

pub fn add_resource_as_trait<T, U: ?Sized, F, FMut>(
    &mut self,
    resource: (T, F, FMut)
) where
    T: 'static + Send,
    U: 'static + Send,
    F: Fn(&T) -> &U + 'static,
    FMut: Fn(&mut T) -> &mut U + 'static, 
[src]

pub fn window_events<S>(&mut self, events: S) -> &mut SceneBuilder where
    S: StreamExt<'static, Event>, 
[src]

pub fn update_dynamic_transformations_only(&mut self) -> &mut SceneBuilder[src]

pub fn update_all_transformations(&mut self) -> &mut SceneBuilder[src]

pub fn add_bundle<B: Bundle + 'static>(&mut self, bundle: B) -> bool[src]

pub fn add_bundle_to_group<B: Bundle + 'static>(
    &mut self,
    bundle: B,
    group: &str
) -> bool
[src]

pub fn add_system<S>(&mut self, system: S) where
    S: System + 'static, 
[src]

Adds a Send System that will be run in the order it was added.

Send systems will run in parallel with other Send systems and with thread local systems added in between barriers.

pub fn add_system_thread_local<S>(&mut self, system: S) where
    S: SystemThreadLocal + 'static, 
[src]

Adds a non Send System that will be run in the order it was added.

SystemThreadLocal will always run in the main thread but can run in parallel with Send systems.

pub fn add_creation_system<S>(&mut self, system: S) where
    S: CreationSystem + 'static, 
[src]

Adds a CreationSystem that will be run in the order it was added.

CreationSystems run alone with no other system running in parallel.

pub fn add_debug_system<S>(&mut self, system: S) where
    S: SystemDebug + 'static, 
[src]

Adds a SystemDebug that will be run in the order it was added.

SystemDebug run alone with no other system running in parallel.

pub fn add_system_with<S>(&mut self, system: S) -> SystemBuilder<'_, '_, S> where
    S: System + 'static, 
[src]

Adds a Send System with a Builder that allows to set some of the system properties like the name it’ll show up with in stats, or run conditions.

Send systems will run in parallel with other Send systems and with thread local systems added in between barriers.

pub fn add_system_thread_local_with<S>(
    &mut self,
    system: S
) -> SystemBuilderThreadLocal<'_, '_, S> where
    S: SystemThreadLocal + 'static, 
[src]

Adds a SystemThreadLocal with a Builder that allows to set some of the system properties like the name it’ll show up with in stats, if it has gpu stats or it’s run conditions.

SystemThreadLocal will always run in the main thread but can run in parallel with Send systems.

pub fn add_creation_system_with<S>(
    &mut self,
    system: S
) -> SystemBuilderCreation<'_, '_, S> where
    S: CreationSystem + 'static, 
[src]

Adds a CreationSystem with a Builder that allows to set some of the system properties like the name it’ll show up with in stats, if it has gpu stats or it’s run conditions.

CreationSystems run alone with no other system running in parallel.

pub fn add_update_system<U>(&mut self, system: U) where
    U: UpdateSystem + 'static, 
[src]

pub fn add_update_system_thread_local<U>(&mut self, system: U) where
    U: UpdateSystemThreadLocal + 'static, 
[src]

pub fn add_render_system<R>(&mut self, system: R) where
    R: RenderSystem + 'static, 
[src]

pub fn add_barrier<B: Barrier + 'static>(&mut self)[src]

Delimits all the systems that will run in parallel.

Only systems between barriers (or creation and debug systems) will run in parallel with each other.

Barriers allow to create groups of systems that run in parallel including thread local systems that run one by one in the main thread but in parallel with Send systems.

pub fn send_stream<T: Clone + Debug + 'static>(
    &mut self
) -> (Sender<T>, Stream<'static, T>)
[src]

Creates an mpsc:::Sender, events::Stream pair

When sending data through the mpsc sender the stream will be notified

This allows to use the sender from any thread while using a stream that can be used from ringui or anything else that requires a stream or derivates like Property or similar

pub fn with_renderer<R: RendererBundle + 'static>(
    self,
    renderer: R
) -> SceneBuilderWithRenderer
[src]

Auto Trait Implementations

impl !RefUnwindSafe for SceneBuilder

impl !Send for SceneBuilder

impl !Sync for SceneBuilder

impl Unpin for SceneBuilder

impl !UnwindSafe for SceneBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]