Skip to main content

dotzuki_renderer/
lib.rs

1// dotzuki-renderer: General-purpose JRPG rendering library built from
2// Game Boy tile rendering principles.
3//
4// This is NOT a Game Boy hardware emulator. It provides a higher-level
5// rendering API that draws into a 160×144 pixel framebuffer and displays
6// it via a scaled window using the `pixels` crate.
7
8pub mod battle_anim;
9pub mod battle_scene;
10pub mod battle_transition;
11pub mod charmap;
12pub mod embedded_font;
13pub mod indexed_framebuffer;
14pub mod layer_renderer;
15pub mod input;
16pub mod icon;
17pub mod layout;
18pub mod layout_engine;
19pub mod menu;
20#[cfg(feature = "gpu")]
21pub mod mon_icon;
22pub mod palette;
23pub mod asset_provider;
24#[cfg(feature = "gpu")]
25pub mod party_hp_bar;
26pub mod sprite;
27pub mod text_renderer;
28pub mod textbox;
29pub mod walk_sprite;
30pub mod tile;
31pub mod tilemap;
32pub mod title;
33pub mod transition;
34#[cfg(all(feature = "gpu", not(target_arch = "wasm32")))]
35pub mod window;
36pub mod window_layer;
37
38pub use indexed_framebuffer::{
39    DefaultPalette, FbSurface, IndexedFrameBuffer, RgbaIndexedFrameBuffer, SCREEN_HEIGHT,
40    SCREEN_WIDTH, index_bits, packed_len, quantize,
41};
42pub use dotzuki_engine::render::{DirtyRegion, FrameBuffer, Rgba, BYTES_PER_PIXEL, TILE_SIZE};
43pub use dotzuki_engine::render_config::RenderConfig;
44
45#[cfg(test)]
46mod tests;