diff options
Diffstat (limited to 'sily_draw_text.c')
-rw-r--r-- | sily_draw_text.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sily_draw_text.c b/sily_draw_text.c new file mode 100644 index 0000000..de4516a --- /dev/null +++ b/sily_draw_text.c @@ -0,0 +1,24 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* sily_draw_text.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: kdx <kdx @student.42angouleme.fr +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/10/14 03:11:27 by kdx #+# #+# */ +/* Updated: 2022/10/14 03:26:27 by kdx ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "sily.h" +#include "minilibx/mlx.h" + +void sily_erase_text(t_sily *sily, char *text, int x, int y) +{ + mlx_string_put(sily->ctx, sily->window, x, y, 0x004f397b, text); +} + +void sily_draw_text(t_sily *sily, char *text, int x, int y) +{ + mlx_string_put(sily->ctx, sily->window, x, y, 0x00ffffff, text); +} |