diff options
author | Henrique Alves <henrique.alves@itsjungle.xyz> | 2024-04-22 10:32:24 +0300 |
---|---|---|
committer | Henrique Alves <henrique.alves@itsjungle.xyz> | 2024-04-22 10:32:24 +0300 |
commit | cef05d32d6a8e38d8d84a5a7efac4494b00f1ce9 (patch) | |
tree | c8275c6c573deca60efa14a96f26d7c7a37847d3 /sources/text.h | |
parent | a73b626d98e331605fdfd293ab4c006a84cfd8b8 (diff) | |
download | gamejam-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.h | 12 |
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); +} |