integer math

This commit is contained in:
Jorijn van der Graaf 2025-11-23 04:04:53 +01:00
commit 5ff43e240c
27 changed files with 922 additions and 1011 deletions

View file

@ -24,8 +24,8 @@ Make sure that the window has focus.
## Highlighted Code Snippet
```cpp
EventListener<MousePoint> clickListener(&window.onMouseLeftClick, [](MousePoint point){
std::cout << std::format("Clicked on X:{} Y:{}!", point.x, point.y);
EventListener<MousePoint> clickListener(&window.onMouseLeftClick, [&window](MousePoint point){
std::cout << std::format("Clicked on X:{} Y:{}!", MappedToPixel(point.x, window.width), MappedToPixel(point.y, window.height));
});
EventListener<void> keyAListener(&window.onKeyDown['a'], [](){