examples: cleanup imports

This commit is contained in:
Carter Anderson 2020-07-16 17:20:42 -07:00
parent 1110f9b877
commit 1db77b2435
5 changed files with 19 additions and 14 deletions

View file

@ -1,6 +1,8 @@
use bevy::prelude::*; use bevy::{
use bevy_asset::{HandleId, LoadState}; asset::{HandleId, LoadState},
use bevy_sprite::TextureAtlasBuilder; prelude::*,
sprite::TextureAtlasBuilder,
};
fn main() { fn main() {
App::build() App::build()

View file

@ -13,7 +13,6 @@ fn setup(
mut meshes: ResMut<Assets<Mesh>>, mut meshes: ResMut<Assets<Mesh>>,
mut materials: ResMut<Assets<StandardMaterial>>, mut materials: ResMut<Assets<StandardMaterial>>,
) { ) {
// create a cube and a plane mesh // create a cube and a plane mesh
let cube_handle = meshes.add(Mesh::from(shape::Cube { size: 1.0 })); let cube_handle = meshes.add(Mesh::from(shape::Cube { size: 1.0 }));
let plane_handle = meshes.add(Mesh::from(shape::Plane { size: 10.0 })); let plane_handle = meshes.add(Mesh::from(shape::Plane { size: 10.0 }));

View file

@ -1,7 +1,9 @@
use bevy::prelude::*; use bevy::{
use bevy_render::{ prelude::*,
render::{
base_render_graph, base_render_graph,
pipeline::{DynamicBinding, PipelineSpecialization, RenderPipeline}, pipeline::{DynamicBinding, PipelineSpecialization, RenderPipeline},
},
}; };
fn main() { fn main() {

View file

@ -1,7 +1,10 @@
use bevy::{prelude::*, render::shader}; use bevy::{
use bevy_render::{ prelude::*,
render::{
base_render_graph, base_render_graph,
pipeline::{DynamicBinding, PipelineSpecialization, RenderPipeline}, pipeline::{DynamicBinding, PipelineSpecialization, RenderPipeline},
shader,
},
}; };
fn main() { fn main() {

View file

@ -2,7 +2,7 @@ use bevy::{
prelude::*, prelude::*,
render::{ render::{
pass::{ pass::{
LoadOp, PassDescriptor, RenderPassColorAttachmentDescriptor, LoadOp, Operations, PassDescriptor, RenderPassColorAttachmentDescriptor,
RenderPassDepthStencilAttachmentDescriptor, TextureAttachment, RenderPassDepthStencilAttachmentDescriptor, TextureAttachment,
}, },
texture::{TextureDescriptor, TextureFormat, TextureUsage}, texture::{TextureDescriptor, TextureFormat, TextureUsage},
@ -10,7 +10,6 @@ use bevy::{
}, },
window::{CreateWindow, WindowId, WindowReference}, window::{CreateWindow, WindowId, WindowReference},
}; };
use bevy_render::pass::Operations;
fn main() { fn main() {
App::build() App::build()