Demonstrate adding shader effects easily.
This commit is contained in:
parent
f8b9c88e2c
commit
313a9aec83
1 changed files with 1 additions and 0 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue