1
0

🏗️」 wip(Merge): Merged raycasting

This commit is contained in:
2024-11-06 12:53:26 +01:00
26 changed files with 734 additions and 109 deletions

View File

@ -6,7 +6,7 @@
/* By: madumerg <madumerg@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/26 15:52:39 by madumerg #+# #+# */
/* Updated: 2024/02/02 14:25:22 by madumerg ### ########.fr */
/* Updated: 2024/10/17 01:28:48 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,7 +14,7 @@
int ft_putchar(char c)
{
write(1, &c, 1);
(void)write(1, &c, 1);
return (1);
}
@ -56,7 +56,7 @@ int ft_putstr(char *str)
return (ft_putstr("(null)"));
while (str[i] != '\0')
{
write(1, &str[i], 1);
(void)write(1, &str[i], 1);
i++;
}
return (i);

View File

@ -51,7 +51,7 @@ HEADERS = includes/
all : ${NAME}
${OBJS} :
@gcc -Wall -Wextra -Werror -I ${HEADERS} -c ${@:.o=.c} -o $@
@cc -Wall -Wextra -Werror -I ${HEADERS} -c ${@:.o=.c} -o $@
${NAME} : ${OBJS}
@ar rcs ${NAME} ${OBJS}

View File

@ -6,7 +6,7 @@
/* By: madumerg <madumerg@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/31 13:02:45 by madumerg #+# #+# */
/* Updated: 2024/09/04 16:24:48 by madumerg ### ########.fr */
/* Updated: 2024/10/16 20:58:23 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */

View File

@ -6,7 +6,7 @@
/* By: madumerg <madumerg@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/03 14:32:56 by madumerg #+# #+# */
/* Updated: 2023/11/03 14:52:19 by madumerg ### ########.fr */
/* Updated: 2024/10/17 01:13:30 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,5 +14,5 @@
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
(void)write(fd, &c, 1);
}

View File

@ -6,7 +6,7 @@
/* By: madumerg <madumerg@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/03 14:33:06 by madumerg #+# #+# */
/* Updated: 2024/04/04 17:11:24 by madumerg ### ########.fr */
/* Updated: 2024/10/17 01:28:14 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -21,8 +21,8 @@ void ft_putendl_fd(char *s, int fd)
return ;
while (s[i] != '\0')
{
write(fd, &s[i], 1);
(void)write(fd, &s[i], 1);
i++;
}
write(fd, "\n", 1);
(void)write(fd, "\n", 1);
}

View File

@ -6,7 +6,7 @@
/* By: madumerg <madumerg@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/03 14:33:15 by madumerg #+# #+# */
/* Updated: 2023/11/09 16:26:33 by madumerg ### ########.fr */
/* Updated: 2024/10/17 01:13:01 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,14 +14,5 @@
void ft_putstr_fd(char *s, int fd)
{
int i;
i = 0;
if (!s)
return ;
while (s[i] != '\0')
{
write(fd, &s[i], 1);
i++;
}
(void)write(fd, s, ft_strlen(s));
}