diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-02-16 15:02:48 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-02-16 15:02:48 -0500 |
| commit | c1fc9aec27c06ae3d6fd461d987d3cfed4ba551a (patch) | |
| tree | d3de128aa7a6cc18665c4aaa1db46dacb93eeb92 /renderer.c | |
| parent | 8f34f26cdc7634cb5968755e9a5cf39090ca8279 (diff) | |
| download | volute-c1fc9aec27c06ae3d6fd461d987d3cfed4ba551a.zip | |
create window
Diffstat (limited to 'renderer.c')
| -rw-r--r-- | renderer.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -166,6 +166,11 @@ int r_get_text_height(void) { } +void r_get_window_size(int *w, int *h) { + SDL_GetWindowSize(window, w, h); +} + + void r_set_clip_rect(mu_Rect rect) { flush(); glScissor(rect.x, height - (rect.y + rect.h), rect.w, rect.h); |