From cbada121ef35c800c673bb4f0dcf21ebc3e09c59 Mon Sep 17 00:00:00 2001 From: Takumi Hara <69781798+tacomeet@users.noreply.github.com> Date: Mon, 7 Nov 2022 19:57:53 +0900 Subject: [PATCH] chore: 42header --- include/camera.h | 12 ++++++++++++ include/color.h | 12 ++++++++++++ include/free.h | 12 ++++++++++++ include/image.h | 12 ++++++++++++ include/light.h | 12 ++++++++++++ include/material.h | 12 ++++++++++++ include/math.h | 12 ++++++++++++ include/miniRT.h | 12 ++++++++++++ include/mlx_hooks.h | 12 ++++++++++++ include/obj_info.h | 12 ++++++++++++ include/object.h | 12 ++++++++++++ include/private_object_method.h | 12 ++++++++++++ include/ray.h | 12 ++++++++++++ include/scene.h | 12 ++++++++++++ include/slice.h | 12 ++++++++++++ include/vector.h | 12 ++++++++++++ src/ambient.c | 12 ++++++++++++ src/bumpmap.c | 12 ++++++++++++ src/color.c | 12 ++++++++++++ src/color_utils.c | 12 ++++++++++++ src/cone.c | 12 ++++++++++++ src/cone_method.c | 12 ++++++++++++ src/create_image.c | 12 ++++++++++++ src/cylinder.c | 12 ++++++++++++ src/cylinder_method.c | 12 ++++++++++++ src/cylinder_method_helper.c | 12 ++++++++++++ src/debug.c | 12 ++++++++++++ src/free_utils.c | 12 ++++++++++++ src/image.c | 12 ++++++++++++ src/light.c | 12 ++++++++++++ src/main.c | 12 ++++++++++++ src/math.c | 12 ++++++++++++ src/mlx_hooks.c | 12 ++++++++++++ src/obj_info.c | 12 ++++++++++++ src/object.c | 12 ++++++++++++ src/object_method.c | 12 ++++++++++++ src/object_radiance.c | 12 ++++++++++++ src/plane.c | 12 ++++++++++++ src/plane_method.c | 12 ++++++++++++ src/read_rt_file.c | 12 ++++++++++++ src/rt_params.c | 12 ++++++++++++ src/rt_params_obj.c | 12 ++++++++++++ src/rt_params_obj_info.c | 12 ++++++++++++ src/scene.c | 12 ++++++++++++ src/slice.c | 12 ++++++++++++ src/slice_x.c | 12 ++++++++++++ src/sphere.c | 12 ++++++++++++ src/sphere_method.c | 12 ++++++++++++ src/vector.c | 12 ++++++++++++ src/vector_adv.c | 12 ++++++++++++ src/vector_utils.c | 12 ++++++++++++ utils/atoi_strict.c | 12 ++++++++++++ utils/count_2d_array.c | 12 ++++++++++++ utils/error.c | 12 ++++++++++++ utils/free_2d_array.c | 12 ++++++++++++ utils/ft_strtod.c | 12 ++++++++++++ utils/get_next_line.c | 12 ++++++++++++ utils/strappend.c | 12 ++++++++++++ wrapper/x_close.c | 12 ++++++++++++ wrapper/x_get_next_line.c | 12 ++++++++++++ wrapper/x_malloc.c | 12 ++++++++++++ wrapper/x_open.c | 12 ++++++++++++ wrapper/x_split.c | 12 ++++++++++++ 63 files changed, 756 insertions(+) diff --git a/include/camera.h b/include/camera.h index 68647fe..84fd99a 100644 --- a/include/camera.h +++ b/include/camera.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* camera.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef CAMERA_H # define CAMERA_H diff --git a/include/color.h b/include/color.h index 2a83ee0..e9eaae2 100644 --- a/include/color.h +++ b/include/color.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* color.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef COLOR_H # define COLOR_H diff --git a/include/free.h b/include/free.h index 35aea51..579f3c7 100644 --- a/include/free.h +++ b/include/free.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* free.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef FREE_H # define FREE_H diff --git a/include/image.h b/include/image.h index d2fccef..2dd55c2 100644 --- a/include/image.h +++ b/include/image.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* image.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef IMAGE_H # define IMAGE_H diff --git a/include/light.h b/include/light.h index 78ed542..244a0a2 100644 --- a/include/light.h +++ b/include/light.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* light.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef LIGHT_H # define LIGHT_H diff --git a/include/material.h b/include/material.h index 6d7995f..7c05ebb 100644 --- a/include/material.h +++ b/include/material.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* material.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef MATERIAL_H # define MATERIAL_H diff --git a/include/math.h b/include/math.h index d371a40..d10d505 100644 --- a/include/math.h +++ b/include/math.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* math.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef MATH_H # define MATH_H diff --git a/include/miniRT.h b/include/miniRT.h index 2cdb929..6ae9d50 100644 --- a/include/miniRT.h +++ b/include/miniRT.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* miniRT.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:24 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:12 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef MINIRT_H # define MINIRT_H diff --git a/include/mlx_hooks.h b/include/mlx_hooks.h index d32b28d..937db4b 100644 --- a/include/mlx_hooks.h +++ b/include/mlx_hooks.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* mlx_hooks.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:24 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:12 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef MLX_HOOKS_H # define MLX_HOOKS_H diff --git a/include/obj_info.h b/include/obj_info.h index e07ee66..5ff8ca9 100644 --- a/include/obj_info.h +++ b/include/obj_info.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* obj_info.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:24 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:12 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef OBJ_INFO_H # define OBJ_INFO_H diff --git a/include/object.h b/include/object.h index 0af0758..5515139 100644 --- a/include/object.h +++ b/include/object.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* object.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:24 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:12 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef OBJECT_H # define OBJECT_H diff --git a/include/private_object_method.h b/include/private_object_method.h index dc6e119..acb4494 100644 --- a/include/private_object_method.h +++ b/include/private_object_method.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* private_object_method.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:24 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:12 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef PRIVATE_OBJECT_METHOD_H # define PRIVATE_OBJECT_METHOD_H diff --git a/include/ray.h b/include/ray.h index c660cd0..01402c0 100644 --- a/include/ray.h +++ b/include/ray.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ray.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:24 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:12 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef RAY_H # define RAY_H diff --git a/include/scene.h b/include/scene.h index c1c12e4..218f008 100644 --- a/include/scene.h +++ b/include/scene.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* scene.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:24 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:12 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef SCENE_H # define SCENE_H diff --git a/include/slice.h b/include/slice.h index 241ab65..8613bd2 100644 --- a/include/slice.h +++ b/include/slice.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* slice.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:24 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:12 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef SLICE_H # define SLICE_H diff --git a/include/vector.h b/include/vector.h index 1f5aaa2..d857ef1 100644 --- a/include/vector.h +++ b/include/vector.h @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* vector.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:24 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:12 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #ifndef VECTOR_H # define VECTOR_H diff --git a/src/ambient.c b/src/ambient.c index 5b488a7..4375f59 100644 --- a/src/ambient.c +++ b/src/ambient.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ambient.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/color.h" #include "../include/light.h" diff --git a/src/bumpmap.c b/src/bumpmap.c index 38bc323..8c89c17 100644 --- a/src/bumpmap.c +++ b/src/bumpmap.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* bumpmap.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "math.h" #include "../include/miniRT.h" #include "../include/vector.h" diff --git a/src/color.c b/src/color.c index c423adf..514431c 100644 --- a/src/color.c +++ b/src/color.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* color.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/color.h" t_color color(double r, double g, double b) diff --git a/src/color_utils.c b/src/color_utils.c index 1faf1ce..7e7ddbc 100644 --- a/src/color_utils.c +++ b/src/color_utils.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* color_utils.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/color.h" #include "../utils/utils.h" #include "../include/math.h" diff --git a/src/cone.c b/src/cone.c index e10870b..bebeb8d 100644 --- a/src/cone.c +++ b/src/cone.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* cone.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/object.h" #include "../include/private_object_method.h" diff --git a/src/cone_method.c b/src/cone_method.c index 22cec08..ef6483d 100644 --- a/src/cone_method.c +++ b/src/cone_method.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* cone_method.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include "../include/color.h" diff --git a/src/create_image.c b/src/create_image.c index b63e42c..6ab7aac 100644 --- a/src/create_image.c +++ b/src/create_image.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* create_image.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include "../include/vector.h" diff --git a/src/cylinder.c b/src/cylinder.c index 4553e57..c0f166c 100644 --- a/src/cylinder.c +++ b/src/cylinder.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* cylinder.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/object.h" #include "../include/private_object_method.h" diff --git a/src/cylinder_method.c b/src/cylinder_method.c index 2729b98..b542b63 100644 --- a/src/cylinder_method.c +++ b/src/cylinder_method.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* cylinder_method.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include "../include/color.h" diff --git a/src/cylinder_method_helper.c b/src/cylinder_method_helper.c index 9f219ae..61a680d 100644 --- a/src/cylinder_method_helper.c +++ b/src/cylinder_method_helper.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* cylinder_method_helper.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include "../include/object.h" diff --git a/src/debug.c b/src/debug.c index 2186ff0..74d030c 100644 --- a/src/debug.c +++ b/src/debug.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* debug.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/vector.h" #include "../include/color.h" diff --git a/src/free_utils.c b/src/free_utils.c index bfaa43b..a3afdd5 100644 --- a/src/free_utils.c +++ b/src/free_utils.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* free_utils.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/free.h" #include "../minilibx-linux/mlx.h" diff --git a/src/image.c b/src/image.c index ed232c1..13b6092 100644 --- a/src/image.c +++ b/src/image.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* image.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/miniRT.h" #include "../include/math.h" #include "../minilibx-linux/mlx.h" diff --git a/src/light.c b/src/light.c index 7801c01..1469a3b 100644 --- a/src/light.c +++ b/src/light.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* light.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:21 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:21 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include diff --git a/src/main.c b/src/main.c index 7c9903f..de6aaca 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* main.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../minilibx-linux/mlx.h" #include "../include/vector.h" #include "../include/miniRT.h" diff --git a/src/math.c b/src/math.c index da927ef..7e9dd25 100644 --- a/src/math.c +++ b/src/math.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* math.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include double min(double a, double b) diff --git a/src/mlx_hooks.c b/src/mlx_hooks.c index 13a8aeb..60fe942 100644 --- a/src/mlx_hooks.c +++ b/src/mlx_hooks.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* mlx_hooks.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/mlx_hooks.h" #include "../include/free.h" diff --git a/src/obj_info.c b/src/obj_info.c index 76a7c7c..89c8928 100644 --- a/src/obj_info.c +++ b/src/obj_info.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* obj_info.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include "../include/color.h" #include "../include/obj_info.h" diff --git a/src/object.c b/src/object.c index 11f8b49..0852c54 100644 --- a/src/object.c +++ b/src/object.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* object.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include diff --git a/src/object_method.c b/src/object_method.c index d12886b..64a4a27 100644 --- a/src/object_method.c +++ b/src/object_method.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* object_method.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/object.h" double object_solve_ray_equation(t_object *const me, t_ray ray) diff --git a/src/object_radiance.c b/src/object_radiance.c index e94d6af..a3278e8 100644 --- a/src/object_radiance.c +++ b/src/object_radiance.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* object_radiance.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include "../include/color.h" #include "../include/vector.h" diff --git a/src/plane.c b/src/plane.c index 3526d5f..ac9b0bf 100644 --- a/src/plane.c +++ b/src/plane.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* plane.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/object.h" #include "../include/private_object_method.h" diff --git a/src/plane_method.c b/src/plane_method.c index 872b33a..ec15a4e 100644 --- a/src/plane_method.c +++ b/src/plane_method.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* plane_method.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/object.h" #include static t_uv plane_calc_uv(const t_plane *const me, t_vector cross_point); diff --git a/src/read_rt_file.c b/src/read_rt_file.c index 5823000..99db1dc 100644 --- a/src/read_rt_file.c +++ b/src/read_rt_file.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* read_rt_file.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/scene.h" #include "../include/free.h" #include "../minilibx-linux/mlx.h" diff --git a/src/rt_params.c b/src/rt_params.c index 68c3427..82ab780 100644 --- a/src/rt_params.c +++ b/src/rt_params.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* rt_params.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/scene.h" char *load_ambient(t_program *p, char **info) diff --git a/src/rt_params_obj.c b/src/rt_params_obj.c index fad7d63..2a03d5a 100644 --- a/src/rt_params_obj.c +++ b/src/rt_params_obj.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* rt_params_obj.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/scene.h" static t_vector normalize_object_normal_vector(t_vector normal); diff --git a/src/rt_params_obj_info.c b/src/rt_params_obj_info.c index 783e74e..8b0f622 100644 --- a/src/rt_params_obj_info.c +++ b/src/rt_params_obj_info.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* rt_params_obj_info.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:22 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:22 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/scene.h" #include "../minilibx-linux/mlx.h" diff --git a/src/scene.c b/src/scene.c index 711e185..77eab38 100644 --- a/src/scene.c +++ b/src/scene.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* scene.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:23 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/scene.h" #include "../include/free.h" #include "../minilibx-linux/mlx.h" diff --git a/src/slice.c b/src/slice.c index 44751c1..2eea9c6 100644 --- a/src/slice.c +++ b/src/slice.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* slice.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:23 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/slice.h" struct s_slice { diff --git a/src/slice_x.c b/src/slice_x.c index 3106369..f4cb3ec 100644 --- a/src/slice_x.c +++ b/src/slice_x.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* slice_x.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:23 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/slice.h" struct s_slice { diff --git a/src/sphere.c b/src/sphere.c index e1d9960..87edef5 100644 --- a/src/sphere.c +++ b/src/sphere.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* sphere.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:23 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/color.h" #include "../include/material.h" #include "../include/object.h" diff --git a/src/sphere_method.c b/src/sphere_method.c index 49e0986..4de82f1 100644 --- a/src/sphere_method.c +++ b/src/sphere_method.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* sphere_method.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:23 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include "../include/color.h" diff --git a/src/vector.c b/src/vector.c index 31fdcb8..d3c1612 100644 --- a/src/vector.c +++ b/src/vector.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* vector.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:23 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/vector.h" #include diff --git a/src/vector_adv.c b/src/vector_adv.c index 43855bf..835a007 100644 --- a/src/vector_adv.c +++ b/src/vector_adv.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* vector_adv.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:23 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/vector.h" #include diff --git a/src/vector_utils.c b/src/vector_utils.c index a4a4475..6baddea 100644 --- a/src/vector_utils.c +++ b/src/vector_utils.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* vector_utils.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 19:57:23 by takumihar #+# #+# */ +/* Updated: 2022/11/07 19:57:23 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../include/vector.h" #include "../utils/utils.h" #include "../wrapper/x.h" diff --git a/utils/atoi_strict.c b/utils/atoi_strict.c index 079203c..988cbd1 100644 --- a/utils/atoi_strict.c +++ b/utils/atoi_strict.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* atoi_strict.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:01:45 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:01:45 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include bool atoi_strict(char *str, int *dst) diff --git a/utils/count_2d_array.c b/utils/count_2d_array.c index 46f9a1d..adb252b 100644 --- a/utils/count_2d_array.c +++ b/utils/count_2d_array.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* count_2d_array.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:01:46 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:01:46 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "utils.h" size_t count_2d_array(void **array) diff --git a/utils/error.c b/utils/error.c index 79e8a8d..87c61ae 100644 --- a/utils/error.c +++ b/utils/error.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* error.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:01:46 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:01:46 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "utils.h" void exit_with_error_message(const char *msg) diff --git a/utils/free_2d_array.c b/utils/free_2d_array.c index 0f96bdb..c4e976f 100644 --- a/utils/free_2d_array.c +++ b/utils/free_2d_array.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* free_2d_array.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:01:46 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:01:46 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "utils.h" void free_2d_array(void ***array) diff --git a/utils/ft_strtod.c b/utils/ft_strtod.c index 334dc0d..687151f 100644 --- a/utils/ft_strtod.c +++ b/utils/ft_strtod.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_strtod.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:01:46 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:01:46 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "utils.h" bool ft_strtod(const char *s, double *val) diff --git a/utils/get_next_line.c b/utils/get_next_line.c index 6259863..820f3d7 100644 --- a/utils/get_next_line.c +++ b/utils/get_next_line.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* get_next_line.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:01:46 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:01:46 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "get_next_line.h" static t_gnl_status process_buffer(char *buff, char **line) diff --git a/utils/strappend.c b/utils/strappend.c index 22f0baf..a7eb3b7 100644 --- a/utils/strappend.c +++ b/utils/strappend.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* strappend.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:01:46 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:01:46 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "utils.h" char *strappend(char *dst, const char *src, size_t l) diff --git a/wrapper/x_close.c b/wrapper/x_close.c index f0c861e..9869671 100644 --- a/wrapper/x_close.c +++ b/wrapper/x_close.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* x_close.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:02:11 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "x.h" void x_close(int fd) diff --git a/wrapper/x_get_next_line.c b/wrapper/x_get_next_line.c index da67c22..90bffaf 100644 --- a/wrapper/x_get_next_line.c +++ b/wrapper/x_get_next_line.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* x_get_next_line.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:02:11 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "../utils/get_next_line.h" int x_get_next_line(int fd, char **line) diff --git a/wrapper/x_malloc.c b/wrapper/x_malloc.c index bff1c62..e44c114 100644 --- a/wrapper/x_malloc.c +++ b/wrapper/x_malloc.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* x_malloc.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:02:11 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "x.h" void *x_malloc(size_t size) diff --git a/wrapper/x_open.c b/wrapper/x_open.c index 320f362..4b94465 100644 --- a/wrapper/x_open.c +++ b/wrapper/x_open.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* x_open.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:02:11 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "x.h" int x_open(const char *path, int mode) diff --git a/wrapper/x_split.c b/wrapper/x_split.c index 254061f..5dc3c82 100644 --- a/wrapper/x_split.c +++ b/wrapper/x_split.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* x_split.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: takumihara +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/11/07 20:02:11 by takumihar #+# #+# */ +/* Updated: 2022/11/07 20:02:11 by takumihar ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "x.h" char **x_split(const char *s, char c)