aboutsummaryrefslogtreecommitdiffstats
path: root/renderer.c
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-02-16 15:02:48 -0500
committerSam Anthony <sam@samanthony.xyz>2025-02-16 15:02:48 -0500
commitc1fc9aec27c06ae3d6fd461d987d3cfed4ba551a (patch)
treed3de128aa7a6cc18665c4aaa1db46dacb93eeb92 /renderer.c
parent8f34f26cdc7634cb5968755e9a5cf39090ca8279 (diff)
downloadvolute-c1fc9aec27c06ae3d6fd461d987d3cfed4ba551a.zip
create window
Diffstat (limited to 'renderer.c')
-rw-r--r--renderer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/renderer.c b/renderer.c
index 487d92d..340de06 100644
--- a/renderer.c
+++ b/renderer.c
@@ -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);