MCPcopy Create free account
hub / github.com/AryanpurTech/BlueEngine / main

Function main

examples/utils/wireframe.rs:11–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9use blue_engine::{Engine, ObjectSettings, ShaderSettings, primitive_shapes::triangle, wgpu};
10
11pub fn main() -> Result<(), blue_engine::error::Error> {
12 let mut engine = Engine::new()?;
13
14 triangle(
15 "Triangle",
16 ObjectSettings {
17 shader_settings: ShaderSettings {
18 polygon_mode: wgpu::PolygonMode::Line,
19 ..Default::default()
20 },
21 ..Default::default()
22 },
23 &mut engine.renderer,
24 &mut engine.objects,
25 )?;
26
27 engine.update_loop(move |_| {})?;
28
29 Ok(())
30}

Callers

nothing calls this directly

Calls 2

triangleFunction · 0.85
update_loopMethod · 0.80

Tested by

no test coverage detected