/
lib.rs
42 lines (39 loc) · 1.37 KB
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Skia + Vulkan = Skulpin
//!
//! This crate provides an easy option for drawing hardware-accelerated 2D by combining vulkan and
//! skia.
//!
//! Two windowing backends are supported out of the box - winit and sdl2.
//!
//! Currently there are two ways to use this library.
//!
//! # skulpin::App
//!
//! Implement the AppHandler trait and launch the app. It's simple but not as flexible as using
//! the renderer directly and handling the window manually.
//!
//! Utility classes are provided that make handling input and measuring time easier.
//!
//! # skulpin::Renderer
//!
//! You manage the window and event loop yourself. Then add the renderer to draw to it.
//!
//! This is the most flexible way to use the library
//!
//!
// Export these crates so that downstream crates can easily use the same version of them as we do
pub use skulpin_renderer::rafx;
pub use skulpin_renderer::skia_safe;
pub use skulpin_renderer::skia_bindings;
pub use skulpin_renderer::RendererBuilder;
pub use skulpin_renderer::Renderer;
pub use skulpin_renderer::CoordinateSystemHelper;
pub use skulpin_renderer::CoordinateSystem;
pub use skulpin_renderer::ValidationMode;
pub use skulpin_renderer::Size;
pub use skulpin_renderer::LogicalSize;
pub use skulpin_renderer::PhysicalSize;
#[cfg(feature = "winit-app")]
pub use skulpin_app_winit as app;
#[cfg(feature = "winit-app")]
pub use skulpin_app_winit::winit;