render: Export specific items outside of prelude (#473)

It's a preference of some people to not use prelude modules at all in
order to make their imports more explicit. Currently, items like
`Camera3dComponent` are only exported in a prelude module, making an
explicit import look like

`use bevy::prelude::Camera3dComponent`

which feels a bit hackish. This change doesn't remove such components
from the prelude, but just re-exports them at the crate's
(`bevy_render` in this case) root.
This commit is contained in:
Logan Magee 2020-09-11 15:23:21 -08:00 committed by GitHub
parent e7d254517e
commit 3bc5e4cb1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ pub mod batch;
pub mod camera;
pub mod color;
pub mod draw;
pub mod entity;
pub mod mesh;
pub mod pass;
pub mod pipeline;
@ -10,7 +11,6 @@ pub mod renderer;
pub mod shader;
pub mod texture;
mod entity;
pub use once_cell;
pub mod prelude {