Skip to content

Commit

Permalink
chore: 42header
Browse files Browse the repository at this point in the history
  • Loading branch information
takumihara committed Nov 7, 2022
1 parent 8da5ffd commit cbada12
Show file tree
Hide file tree
Showing 63 changed files with 756 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/camera.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* camera.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

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: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/free.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* free.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/image.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* image.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/light.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* light.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/material.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* material.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/math.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* math.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

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: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/mlx_hooks.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* mlx_hooks.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/obj_info.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* obj_info.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/object.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* object.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/private_object_method.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* private_object_method.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/ray.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ray.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

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: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/slice.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* slice.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions include/vector.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* vector.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

Expand Down
12 changes: 12 additions & 0 deletions src/ambient.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ambient.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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"

Expand Down
12 changes: 12 additions & 0 deletions src/bumpmap.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* bumpmap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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"
Expand Down
12 changes: 12 additions & 0 deletions src/color.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* color.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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)
Expand Down
12 changes: 12 additions & 0 deletions src/color_utils.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* color_utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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"
Expand Down
12 changes: 12 additions & 0 deletions src/cone.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cone.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: takumihara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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"

Expand Down
Loading

0 comments on commit cbada12

Please sign in to comment.