#[cfg(feature = "asset")] pub use crate::asset::{AddAsset, AssetEvent, AssetServer, Assets, Handle}; #[cfg(feature = "core")] pub use crate::core::{ time::Time, transform::{CommandBufferBuilderSource, WorldBuilder, WorldBuilderSource}, }; #[cfg(feature = "derive")] pub use crate::derive::*; #[cfg(feature = "diagnostic")] pub use crate::diagnostic::DiagnosticsPlugin; #[cfg(feature = "pbr")] pub use crate::pbr::{entity::*, light::Light, material::StandardMaterial}; #[cfg(feature = "render")] pub use crate::render::{ draw_target, entity::*, mesh::{shape, Mesh}, pipeline::PipelineDescriptor, render_graph::{ nodes::{ AssetUniformNode, Camera2dNode, CameraNode, PassNode, UniformNode, WindowSwapChainNode, WindowTextureNode, }, RenderGraph, }, render_resource::resource_name, shader::{Shader, ShaderDefSuffixProvider, ShaderStage, ShaderStages}, texture::{Texture, TextureType}, ActiveCamera, ActiveCamera2d, Camera, CameraType, Color, ColorSource, Renderable, }; #[cfg(feature = "text")] pub use crate::text::Font; #[cfg(feature = "transform")] pub use crate::transform::prelude::*; #[cfg(feature = "ui")] pub use crate::ui::{entity::*, Anchors, ColorMaterial, Margins, Node, Rect, Sprite}; #[cfg(feature = "window")] pub use crate::window::{Window, WindowDescriptor, WindowPlugin, Windows}; pub use crate::{ app::{ schedule_runner::ScheduleRunnerPlugin, stage, App, AppBuilder, AppPlugin, EntityArchetype, EventReader, Events, GetEventReader, System, }, math::{self, Mat3, Mat4, Quat, Vec2, Vec3, Vec4}, AddDefaultPlugins, }; pub use legion::{ borrow::{Ref as Com, RefMut as ComMut}, command::CommandBuffer, entity::Entity, event::Event as LegionEvent, filter::filter_fns::*, query::{IntoQuery, Query, Read, Tagged, TryRead, TryWrite, Write}, systems::{ bit_set::BitSet, resource::{ResourceSet, Resources}, schedule::{Executor, Runnable, Schedulable, Schedule}, IntoSystem, Res, ResMut, SubWorld, SystemBuilder, }, world::{Universe, World}, };