summaryrefslogtreecommitdiff
path: root/examples/bmp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bmp.rs')
-rw-r--r--examples/bmp.rs4
1 files changed, 3 insertions, 1 deletions
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()