summaryrefslogtreecommitdiff
path: root/sources/text.h
diff options
context:
space:
mode:
authorHenrique Alves <henrique.alves@itsjungle.xyz>2024-04-22 10:32:24 +0300
committerHenrique Alves <henrique.alves@itsjungle.xyz>2024-04-22 10:32:24 +0300
commitcef05d32d6a8e38d8d84a5a7efac4494b00f1ce9 (patch)
treec8275c6c573deca60efa14a96f26d7c7a37847d3 /sources/text.h
parenta73b626d98e331605fdfd293ab4c006a84cfd8b8 (diff)
downloadgamejam-slgj-2024-cef05d32d6a8e38d8d84a5a7efac4494b00f1ce9.tar.gz
gamejam-slgj-2024-cef05d32d6a8e38d8d84a5a7efac4494b00f1ce9.tar.bz2
gamejam-slgj-2024-cef05d32d6a8e38d8d84a5a7efac4494b00f1ce9.zip
Testing texture API
Diffstat (limited to 'sources/text.h')
-rw-r--r--sources/text.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sources/text.h b/sources/text.h
new file mode 100644
index 0000000..2f2584a
--- /dev/null
+++ b/sources/text.h
@@ -0,0 +1,12 @@
+#include "raylib.h"
+#include <libguile.h>
+
+static void rl_draw_text(SCM text) {
+ scm_t_string_failed_conversion_handler handler;
+ char* str = scm_to_stringn(text, NULL, NULL, handler);
+ DrawText(str, 200, 80, 20, RED);
+}
+
+static void rl_text_define_methods() {
+ scm_c_define_gsubr ("rl-draw-text", 1, 0, 0, rl_draw_text);
+}