From aeddacb8d88f41ba7bdf37d39de17d8cf3b6a258 Mon Sep 17 00:00:00 2001 From: Henrique Alves Date: Mon, 29 Apr 2024 10:23:52 +0300 Subject: Creating small evaluation prompt --- sources/rl/text.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sources/rl/text.h (limited to 'sources/rl/text.h') diff --git a/sources/rl/text.h b/sources/rl/text.h new file mode 100644 index 0000000..6fd53e2 --- /dev/null +++ b/sources/rl/text.h @@ -0,0 +1,20 @@ +#include "raylib.h" +#include "s7/s7.h" +#include +#include + +static s7_pointer rl_draw_text(s7_scheme *s7, s7_pointer args) { + Color *c = (Color *)s7_c_object_value(s7_car(s7_cddddr(args))); + + DrawText(s7_string(s7_car(args)), + s7_integer(s7_cadr(args)), + s7_integer(s7_caddr(args)), + s7_integer(s7_cadddr(args)), + *c); + + return(NULL); +} + +static void rl_text_define_methods(s7_scheme *s7) { + s7_define_function(s7, "rl-draw-text", rl_draw_text, 5, 0, false, "test"); +} -- cgit v1.2.3