aboutsummaryrefslogtreecommitdiffstats
path: root/renderer.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-02-16 11:56:02 -0500
committerSam Anthony <sam@samanthony.xyz>2025-02-16 11:56:02 -0500
commit8f34f26cdc7634cb5968755e9a5cf39090ca8279 (patch)
tree19a315a05a1c842bbc4ddd2450fba48c21fc9b36 /renderer.h
parent4ba873caba1d725aa72a135e4bd5fc69a9b7ef64 (diff)
downloadvolute-8f34f26cdc7634cb5968755e9a5cf39090ca8279.zip
microui renderer
Diffstat (limited to 'renderer.h')
-rw-r--r--renderer.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/renderer.h b/renderer.h
new file mode 100644
index 0000000..3914138
--- /dev/null
+++ b/renderer.h
@@ -0,0 +1,17 @@
+#ifndef RENDERER_H
+#define RENDERER_H
+
+#include "microui.h"
+
+void r_init(void);
+void r_draw_rect(mu_Rect rect, mu_Color color);
+void r_draw_text(const char *text, mu_Vec2 pos, mu_Color color);
+void r_draw_icon(int id, mu_Rect rect, mu_Color color);
+ int r_get_text_width(const char *text, int len);
+ int r_get_text_height(void);
+void r_set_clip_rect(mu_Rect rect);
+void r_clear(mu_Color color);
+void r_present(void);
+
+#endif
+