Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"fcntl.h": "c",
"scene.h": "c",
"structures.h": "c",
"utils.h": "c"
"utils.h": "c",
"object_utils.h": "c"
}
}
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ OBJS = $(MAIN_OBJS) $(PARSE_OBJS) $(VALID_OBJS) $(SCENE_OBJS) $(UTILS_OBJS) $(RA
all : $(NAME)

$(NAME): $(OBJS)
make bonus -C $(LIBFT)
make -C $(MLX)
make -j bonus -C $(LIBFT)
make -j -C $(MLX)
$(CC) $(CFLAGS) -I $(HEADER_DIR) $(OBJS) $(LIBFT_LIB) $(MLX_LIB) -o $@

clean :
Expand All @@ -93,7 +93,9 @@ clean :
fclean : clean
$(RM) $(NAME) $(LIBFT_LIB) $(MLX_LIB)

re: fclean all
re:
make fclean
make all

%.o: %.c
$(CC) ${CFLAGS} -c $< -o $@
Expand Down
12 changes: 12 additions & 0 deletions include/color.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* color.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:50:38 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:50:39 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef COLOR_H
# define COLOR_H

Expand Down
12 changes: 12 additions & 0 deletions include/key_code.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* key_code.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:50:42 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:50:43 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef KEY_CODE_H
# define KEY_CODE_H

Expand Down
12 changes: 12 additions & 0 deletions include/libft.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:50:45 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:50:45 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef LIBFT_H
# define LIBFT_H
# include <stdlib.h>
Expand Down
12 changes: 12 additions & 0 deletions include/minirt.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minirt.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:50:47 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:50:47 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef MINIRT_H
# define MINIRT_H

Expand Down
12 changes: 12 additions & 0 deletions include/object_utils.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* object_utils.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:50:52 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:50:52 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef OBJECT_UTILS_H
# define OBJECT_UTILS_H

Expand Down
12 changes: 12 additions & 0 deletions include/parse.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* parse.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:50:54 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:50:55 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef PARSE_H
# define PARSE_H

Expand Down
12 changes: 12 additions & 0 deletions include/print.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:50:58 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:50:59 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef PRINT_H
# define PRINT_H

Expand Down
12 changes: 12 additions & 0 deletions include/scene.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* scene.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:51:05 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:51:05 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef SCENE_H
# define SCENE_H

Expand Down
12 changes: 12 additions & 0 deletions include/structures.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* structures.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:51:07 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:51:07 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef STRUCTURES_H
# define STRUCTURES_H

Expand Down
12 changes: 12 additions & 0 deletions include/trace.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* trace.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:51:09 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:51:09 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef TRACE_H
# define TRACE_H

Expand Down
12 changes: 12 additions & 0 deletions include/utils.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* utils.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:51:12 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:51:12 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef UTILS_H
# define UTILS_H

Expand Down
12 changes: 12 additions & 0 deletions include/vector_utils.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* vector_utils.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:51:14 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:51:14 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef VECTOR_UTILS_H
# define VECTOR_UTILS_H

Expand Down
12 changes: 12 additions & 0 deletions include/window.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* window.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:51:16 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:51:16 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#ifndef WINDOW_H
# define WINDOW_H

Expand Down
12 changes: 12 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:54:46 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:57:29 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#include "../include/minirt.h"

int main(int argc, char **argv)
Expand Down
12 changes: 12 additions & 0 deletions src/parse/get_next_line.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:52:28 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:55:07 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#include "../../include/parse.h"

t_buffer *ft_bring_buffer(t_buffer *head, int fd)
Expand Down
12 changes: 12 additions & 0 deletions src/parse/get_next_line_utils.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line_utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:52:25 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:52:26 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#include "../../include/parse.h"

int init_string(t_string *t_str)
Expand Down
12 changes: 12 additions & 0 deletions src/parse/is_valid/is_rt_file.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* is_rt_file.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:51:46 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:51:47 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#include "../../../include/parse.h"

t_is_return is_rt_file(char *file_name)
Expand Down
12 changes: 12 additions & 0 deletions src/parse/is_valid/is_valid_elements_light.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* is_valid_elements_light.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:51:49 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:51:49 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#include "../../../include/parse.h"

t_is_return is_valid_a_element(char **elements)
Expand Down
12 changes: 12 additions & 0 deletions src/parse/is_valid/is_valid_elements_object.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* is_valid_elements_object.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:51:53 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:51:54 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#include "../../../include/parse.h"

t_is_return is_valid_c_element(char **elements)
Expand Down
12 changes: 12 additions & 0 deletions src/parse/is_valid/is_valid_elements_utils.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* is_valid_elements_utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seongyle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/20 16:52:20 by seongyle #+# #+# */
/* Updated: 2022/11/20 16:55:04 by seongyle ### ########seoul.kr */
/* */
/* ************************************************************************** */

#include "../../../include/parse.h"

t_is_return is_xyz_coordinate(char *str)
Expand Down
Loading