Galactica/crates/render/src/lib.rs

25 lines
597 B
Rust
Raw Normal View History

2023-12-31 18:59:08 -08:00
#![warn(missing_docs)]
//! This crate contains all drawing logic and NO game logic.
//! It converts game state to a nice picture.
//!
//! [`GPUState`] is the main struct this crate provides,
//! and the only one external code should interact with.
//! (Excluding data structs, like [`ObjectSprite`])
2023-12-31 18:39:37 -08:00
mod consts;
mod globaldata;
mod gpustate;
mod pipeline;
mod sprite;
2024-01-01 09:45:27 -08:00
mod starfield;
2023-12-31 18:39:37 -08:00
mod texturearray;
mod vertexbuffer;
// TODO: remove
mod consts_main;
2023-12-31 18:48:35 -08:00
use galactica_content as content;
2023-12-31 18:39:37 -08:00
pub use gpustate::GPUState;
pub use sprite::{AnchoredUiPosition, ObjectSprite, ObjectSubSprite, UiSprite};