Demonstrate adding shader effects easily.

This commit is contained in:
Zed A. Shaw 2025-05-05 15:00:57 -04:00
parent f8b9c88e2c
commit 313a9aec83

View file

@ -27,6 +27,7 @@ struct Calculator {
for(auto& [name, cell] : $gui.cells()) {
auto id = $gui.entity(name);
$gui.set<guecs::Rectangle>(id, {});
$gui.set<guecs::Effect>(id, {});
$gui.set<guecs::Label>(id, {guecs::to_wstring(name)});
$gui.set<guecs::Clickable>(id, {
[=](auto, auto) { fmt::println("clicked {}", name); }