text example

This commit is contained in:
Jorijn van der Graaf 2026-01-27 21:33:44 +01:00
commit 4b34eb3972
5 changed files with 82 additions and 369 deletions

View file

@ -0,0 +1,32 @@
# HelloWindow Example
## Description
This example demonstrates how to draw pixels to a window.
## Expected Result
A window with a green and blue colored square, when clicking on the square it logs the coordinates relative to the square.
## Highlighted Code Snippet
```cpp
UiElement& element = window.elements.emplace_back(
0.5,
0.5,
2,
1,
0.5f,
0.5f,
0.5,
0.5,
0,
false
);
```
## How to Run
```bash
crafter-build build executable -r
```