make input coordinates respect the viewport

This commit is contained in:
veclavtalica
2024-12-24 10:24:50 +03:00
parent 190eb1f107
commit dc2535358e
4 changed files with 34 additions and 21 deletions

View File

@ -30,6 +30,8 @@ typedef struct EngineContext {
char *base_dir;
Vec2 window_dims;
Rect viewport_rect;
float viewport_scale;
/* configuration */
toml_table_t *config_table;