pub mod window;
pub mod events;
pub use window::{WindowConfig, WindowState};
pub use events::{RenderApp, pack_lights, compute_light_space_matrix};
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_window_config_default() {
let config = WindowConfig::default();
assert_eq!(config.title, "AnvilKit Application");
assert_eq!(config.width, 1280);
assert_eq!(config.height, 720);
assert!(!config.fullscreen);
assert!(config.resizable);
assert!(config.visible);
}
#[test]
fn test_window_config_builder() {
let config = WindowConfig::new()
.with_title("Test Window")
.with_size(800, 600)
.with_fullscreen(true);
assert_eq!(config.title, "Test Window");
assert_eq!(config.width, 800);
assert_eq!(config.height, 600);
assert!(config.fullscreen);
}
}