Skip to main content

Module prelude

Module prelude 

Source
Expand description

The types most callers of the multi-world model need.

Re-exports§

pub use crate::audio::AudioChunk;
pub use crate::audio::AudioConfig;
pub use crate::audio::AudioFillOrder;
pub use crate::audio::AudioFormat;
pub use crate::audio::AudioOutputMode;
pub use crate::audio::AudioOutputOpen;
pub use crate::audio::AudioOutputRequest;
pub use crate::audio::GlobalAudioGain;
pub use crate::audio::OnAudioFill;
pub use crate::audio::dispatch_audio_fill;
pub use crate::audio::request_audio_output;
pub use crate::audio::spawn_audio_world_with;
pub use crate::gpu::Gpu;
pub use crate::gpu::request_gpu;
pub use crate::mcp::serve_mcp;
pub use crate::physics::BodyDesc;
pub use crate::physics::BodyShape;
pub use crate::physics::PHYSICS_HZ;
pub use crate::physics::Physics;
pub use crate::physics::PhysicsConfig;
pub use crate::physics::PhysicsContacts;
pub use crate::physics::despawn_body;
pub use crate::physics::init_physics_world;
pub use crate::physics::spawn_body;
pub use crate::physics::spawn_fixed_cuboid;
pub use crate::physics::spawn_physics_world_with;
pub use crate::physics::step_once;
pub use crate::present::draw_presented;
pub use crate::present::pump_presented;
pub use crate::present::setup_presenter;
pub use crate::record::RecordingFormat;
pub use crate::synth::MidiEvent;
pub use crate::synth::MidiEventKind;
pub use crate::synth::MidiSequencer;
pub use crate::synth::SynthVoice;
pub use crate::synth::VoiceError;
pub use crate::synth::load_midi_file_with_loop_type;
pub use crate::synth::load_soundfont;
pub use crate::synth::midi_file;
pub use crate::synth::midi_job;
pub use crate::FRAME_SECONDS;
pub use crate::channel::publish_collected;
pub use crate::executor::LocalTasks;
pub use crate::handle::WorldHandle;
pub use crate::host::drain_sub_world;
pub use crate::host::spawn_sub_world;
pub use crate::job::Job;
pub use crate::job::JobSender;
pub use crate::job::SendError;
pub use crate::request::Pending;
pub use crate::request::Settled;
pub use crate::thread::FixedClock;
pub use crate::thread::MAX_CATCH_UP_STEPS;
pub use crate::thread::ThreadControl;
pub use crate::thread::WorldState;
pub use crate::thread::WorldThread;
pub use crate::thread::fixed_steps;
pub use crate::world::StepError;
pub use crate::world::StepOutcome;
pub use crate::world::Stepped;
pub use crate::world::Threaded;
pub use crate::world::WorldName;
pub use crate::world::WorldRunner;
pub use crate::world::spawn_stepped_world_with_init;
pub use crate::world::spawn_threaded_world;
pub use crate::world::spawn_threaded_world_with_init;
pub use crate::world::step_stepped_world;
pub use crate::world::with_stepped_world;
pub use crate::world::with_stepped_world_mut;

Structs§

LocalPool
A single-threaded task pool for polling futures to completion.
Presenter
Everything needed to render a frame and present it.
RigidBodyHandle
The unique handle of a rigid body added to a RigidBodySet.
Snapshot
The producing end of a Snapshot: keeps the newest value for however many readers are subscribed.
SnapshotReader
The reading end of a Snapshot: always the newest published value.
Stream
The producing end of a Stream: publishes every value to every reader.
StreamReader
The reading end of a Stream: one queue per reader, folded into the reader’s tick.

Enums§

PresenterError
Why the presentation path could not be built, or a frame could not be presented.

Constants§

BLIT_PASS_ORDER
The order the offscreen path’s copying pass records at: after the scene’s own, so the target it samples holds this frame’s picture.
SCENE_PASS_ORDER
The order a scene’s own pass records at, ahead of the copying pass.

Traits§

LocalSpawnExt
Extension trait for LocalSpawn.

Functions§

resize_presented
The resize behaviour: match the presenter to the window’s new size, skipping the degenerate zero size windows report on minimize.