1#![warn(missing_docs)]
34
35pub mod window;
36pub mod renderer;
37pub mod plugin;
38
39pub mod prelude {
43 pub use crate::window::{RenderApp, WindowConfig};
44 pub use crate::renderer::{RenderDevice, RenderSurface, PbrVertex};
45 pub use crate::plugin::{RenderPlugin, CameraComponent};
46
47 pub use crate::renderer::assets::{MeshHandle, MaterialHandle, PipelineHandle, RenderAssets};
49 pub use crate::renderer::draw::{ActiveCamera, Aabb, DrawCommandList, Frustum, InstanceData, SceneLights, DirectionalLight, PointLight, SpotLight, MaterialParams};
50 pub use crate::renderer::state::{RenderState, PbrSceneUniform, GpuLight, MAX_LIGHTS};
51
52 pub use wgpu::{
54 Device, Queue, Surface, SurfaceConfiguration, TextureFormat,
55 RenderPipeline, RenderPass, CommandEncoder, Buffer, Texture,
56 BindGroup, BindGroupLayout, PipelineLayout,
57 };
58
59 pub use winit::{
60 event::{WindowEvent, DeviceEvent},
61 event_loop::{EventLoop, ActiveEventLoop},
62 window::{Window, WindowId},
63 application::ApplicationHandler,
64 };
65
66 pub use anvilkit_core::prelude::*;
68 pub use anvilkit_ecs::prelude::*;
69}
70
71#[cfg(test)]
72mod tests {
73 #[test]
74 fn test_version_info() {
75 assert_eq!(env!("CARGO_PKG_NAME"), "anvilkit-render");
76 assert_eq!(env!("CARGO_PKG_VERSION"), "0.1.0");
77 }
78}