dotzuki_engine/render_config.rs
1//! Render configuration for the engine.
2//!
3//! Defines screen dimensions and other renderer settings that can be
4//! customized per-game. Each game must provide its own dimensions —
5//! there is no default resolution.
6
7/// Configuration for the rendering pipeline.
8///
9/// Stores screen dimensions and any other renderer-level settings.
10/// Each game must construct this with its own resolution via
11/// [`RenderConfig::new`].
12#[derive(Debug, Clone, Copy, PartialEq, Eq)]
13pub struct RenderConfig {
14 /// Width of the screen in pixels.
15 pub screen_width: u32,
16 /// Height of the screen in pixels.
17 pub screen_height: u32,
18}
19
20impl RenderConfig {
21 /// Create a new render config with the given dimensions.
22 pub const fn new(screen_width: u32, screen_height: u32) -> Self {
23 Self {
24 screen_width,
25 screen_height,
26 }
27 }
28}