feat: adding all the textures

This commit is contained in:
Raphael 2024-12-05 16:34:12 +01:00
parent 954c5f76d6
commit badd6534f4
11 changed files with 276 additions and 13 deletions

View file

@ -6,7 +6,7 @@
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2024/11/28 09:20:29 by bgoulard ### ########.fr #
# Updated: 2024/12/02 17:42:23 by rparodi ### ########.fr #
# #
# **************************************************************************** #
@ -43,7 +43,7 @@ MLXFLAGS = -L$(MLX_DIR) -lX11 -lXext
# Add MLXFLAGS to the linker flags
LDFLAGS += $(MLXFLAGS)
SRC = test.c
SRC = test2.c
# Objects
OBJDIRNAME = ./build

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/27 12:09:00 by rparodi #+# #+# */
/* Updated: 2024/11/28 12:09:36 by bgoulard ### ########.fr */
/* Updated: 2024/12/02 17:42:10 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -62,10 +62,8 @@ double deg2rad(int deg)
void rotate_plane(t_2dpoint *plane, double angle)
{
double old_plane_x;
double old_plane_y;
old_plane_x = (*plane).x;
old_plane_y = (*plane).y;
plane->x = plane->x * cos(angle) - plane->y * sin(angle);
plane->y = old_plane_x * sin(angle) + plane->y * cos(angle);
}