bevy/src/prelude.rs
2020-07-16 17:11:52 -07:00

50 lines
1.9 KiB
Rust

pub use crate::{
app::{
schedule_runner::ScheduleRunnerPlugin, stage, App, AppBuilder, AppPlugin, DynamicAppPlugin,
EventReader, Events,
},
asset::{AddAsset, AssetEvent, AssetServer, Assets, Handle},
audio::{AudioOutput, AudioSource},
core::{
time::{Time, Timer},
},
diagnostic::DiagnosticsPlugin,
ecs::{
Bundle, Commands, Component, Entity, FromResources, IntoForEachSystem, IntoQuerySystem,
IntoThreadLocalSystem, Local, Query, Ref, RefMut, Res, ResMut, Resource, Resources, System,
World, WorldBuilderSource,
},
input::{keyboard::KeyCode, mouse::MouseButton, Input},
math::{self, Mat3, Mat4, Quat, Vec2, Vec3, Vec4, FaceToward},
pbr::{entity::*, light::Light, material::StandardMaterial},
property::{DynamicProperties, Properties, PropertiesVal, Property, PropertyVal},
render::{
draw::Draw,
entity::*,
mesh::{shape, Mesh},
pass::ClearColor,
pipeline::{PipelineDescriptor, RenderPipelines},
render_graph::{
nodes::{
AssetRenderResourcesNode, CameraNode, PassNode, RenderResourcesNode,
WindowSwapChainNode, WindowTextureNode,
},
RenderGraph,
},
render_resource::RenderResources,
shader::{Shader, ShaderDefs, ShaderStage, ShaderStages},
texture::Texture,
Camera, Color, ColorSource, OrthographicProjection, PerspectiveProjection, VisibleEntities,
},
scene::{Scene, SceneSpawner},
sprite::{
entity::{SpriteComponents, SpriteSheetComponents},
ColorMaterial, Sprite, TextureAtlas, TextureAtlasSprite,
},
text::{Font, TextStyle},
transform::prelude::*,
type_registry::RegisterType,
ui::{entity::*, widget::Label, Anchors, Margins, Node},
window::{Window, WindowDescriptor, WindowPlugin, Windows},
AddDefaultPlugins,
};