blob: 293868f903d6e9121e1b0b69ee1721d5be7bd422 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
use std::error::Error;
use engine::object::Object;
use engine::{Engine, WindowSize};
const WINDOW_SIZE: WindowSize = WindowSize {
width: 500,
height: 600,
};
fn main() -> Result<(), Box<dyn Error>>
{
let engine = Engine::new(&WINDOW_SIZE, "Yaaay lmao")?;
let triangle = Object::new(&[-0.5, -0.5, 0.0, 0.5, -0.5, 0.0, 0.0, 0.5, 0.0])?;
engine.start(&[triangle], || {})?;
Ok(())
}
|