Added GUI draw cache

This commit is contained in:
Yousef Khadadeh 2026-04-08 17:34:50 +03:00
parent caaad67c42
commit d709acb094
30 changed files with 547 additions and 246 deletions

View file

@ -3,6 +3,10 @@
#include <chrono>
namespace GUIStuff {
SCollision::AABB<float> clay_bounding_box_to_aabb(const Clay_BoundingBox& bb) {
return {{bb.x, bb.y}, {bb.x + bb.width, bb.y + bb.height}};
}
SkFont get_setup_skfont() {
SkFont font;
font.setLinearMetrics(true);