summaryrefslogtreecommitdiff
path: root/examples/square.rs
blob: 394d3ca97a3b9989e6dd52e6e6704f2c07722176 (plain)
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

use std::num::NonZeroU32;

use alligator_render::{Instance, RenderWindowConfig, Renderer};
use winit::event_loop::EventLoop;

fn main() {
	// configure the render window
	let config = RenderWindowConfig {
		title: "Pokemon: Black and White (New Edition)".into(),
		instance_capacity: 1,
		default_width: NonZeroU32::new(480).unwrap(),
		default_height: NonZeroU32::new(480).unwrap(),
		..Default::default()
	};

	let event_loop = EventLoop::new();
	let mut renderer = Renderer::new(&config, &event_loop).unwrap();
	renderer.push_instance(Instance::default());

	renderer.run(event_loop);
}