diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/black.rs | 4 | ||||
| -rw-r--r-- | examples/bmp.rs | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/black.rs b/examples/black.rs index fc53ab1..291fafb 100644 --- a/examples/black.rs +++ b/examples/black.rs @@ -7,9 +7,9 @@ fn main() { let start = std::time::Instant::now(); // configure the render window let config = RenderWindowConfig { - vsync: false, + //vsync: false, //mode: alligator_render::config::WindowMode::BorderlessFullscreen, - //title: "Black Screen.exe", + title: "Black Screen.exe", ..Default::default() }; diff --git a/examples/bmp.rs b/examples/bmp.rs index 566e098..98561ba 100644 --- a/examples/bmp.rs +++ b/examples/bmp.rs @@ -9,7 +9,7 @@ fn main() { // configure the render window let config = RenderWindowConfig { title: "Bumper Sticker", - instance_capacity: 1, + instance_capacity: 2, default_width: NonZeroU32::new(1280).unwrap(), default_height: NonZeroU32::new(720).unwrap(), //mode: alligator_render::config::WindowMode::BorderlessFullscreen, @@ -32,6 +32,7 @@ fn main() { renderer.push_instance(Instance { position: [-0.5, 0.0], + size: [0.75; 2], texture_size: [width, height], texture_coordinates: [x, y], ..Default::default() @@ -39,6 +40,7 @@ fn main() { renderer.push_instance(Instance { position: [0.5, 0.0], + size: [0.75; 2], texture_size: [width, height], texture_coordinates: [x, y], ..Default::default() |
