From a071406138afe47d4df9d9da4333046583e4acc0 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Tue, 2 Jan 2024 02:51:06 -0500 Subject: [PATCH] test color rectangle --- tests/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/src/main.cpp b/tests/src/main.cpp index c21ac9b..4066a1d 100644 --- a/tests/src/main.cpp +++ b/tests/src/main.cpp @@ -74,6 +74,7 @@ void update(std::int32_t width, std::int32_t height) renderer_2d.drawRectangle("ibuythat", blt::gfx::rectangle_t(width/2.0, height/2.0, width, height, 90)); renderer_2d.drawRectangle("niko", {bx, by, w, h}); + renderer_2d.drawRectangle({bx / width, ((bx / width) + (bx / height)) / 2.0f, by / height}, {bx + w, by + h, w, h}); bx += mx * blt::gfx::getFrameDeltaSeconds() * cf; by += my * blt::gfx::getFrameDeltaSeconds() * cf;