test color rectangle

main
Brett 2024-01-02 02:51:06 -05:00
parent 26c659fc3f
commit a071406138
1 changed files with 1 additions and 0 deletions

View File

@ -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("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("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; bx += mx * blt::gfx::getFrameDeltaSeconds() * cf;
by += my * blt::gfx::getFrameDeltaSeconds() * cf; by += my * blt::gfx::getFrameDeltaSeconds() * cf;