summaryrefslogtreecommitdiff
path: root/sily_draw_text.c
blob: de4516a4faed18755b5422f3ed42124651f28047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
}