test color rectangle
parent
26c659fc3f
commit
a071406138
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue