[FEAT] Reorganize the sources

This commit is contained in:
NADAL Jean-Baptiste
2024-02-27 18:47:49 +01:00
parent 6d55a9ab03
commit 20aa1e6423
32 changed files with 61 additions and 59 deletions

View File

@@ -7,23 +7,25 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_definitions(--coverage)
include_directories (src)
add_library(raytracing
src/camera.cpp
src/canvas.cpp
src/color.cpp
src/common.cpp
src/intersection-data.cpp
src/intersection.cpp
src/intersections.cpp
src/material.cpp
src/matrix.cpp
src/point-light.cpp
src/shape.cpp
src/ray.cpp
src/sphere.cpp
src/tuple.cpp
src/world.cpp
src/core/color.cpp
src/core/common.cpp
src/core/intersection-data.cpp
src/core/intersection.cpp
src/core/intersections.cpp
src/core/matrix.cpp
src/core/tuple.cpp
src/lights/point-light.cpp
src/renderer/camera.cpp
src/renderer/canvas.cpp
src/renderer/material.cpp
src/renderer/ray.cpp
src/renderer/world.cpp
src/shapes/shape.cpp
src/shapes/sphere.cpp
)
target_include_directories(${PROJECT_NAME}

View File

@@ -25,17 +25,17 @@
#pragma once
#include "camera.h"
#include "canvas.h"
#include "color.h"
#include "common.h"
#include "intersection-data.h"
#include "intersection.h"
#include "intersections.h"
#include "material.h"
#include "matrix.h"
#include "point-light.h"
#include "ray.h"
#include "sphere.h"
#include "tuple.h"
#include "world.h"
#include "core/color.h"
#include "core/common.h"
#include "core/intersection-data.h"
#include "core/intersection.h"
#include "core/intersections.h"
#include "core/matrix.h"
#include "core/tuple.h"
#include "lights/point-light.h"
#include "renderer/camera.h"
#include "renderer/canvas.h"
#include "renderer/material.h"
#include "renderer/ray.h"
#include "renderer/world.h"
#include "shapes/sphere.h"

View File

@@ -32,7 +32,7 @@
#include <cstdio>
#include "color.h"
#include "common.h"
#include "core/common.h"
using namespace Raytracer;

View File

@@ -28,8 +28,8 @@
/* ------------------------------------------------------------------------- */
#include "shape.h"
#include "tuple.h"
#include "core/tuple.h"
#include "shapes/shape.h"
/* ------------------------------------------------------------------------- */
namespace Raytracer

View File

@@ -28,7 +28,7 @@
/* ------------------------------------------------------------------------- */
#include "common.h"
#include "core/common.h"
#include "intersection.h"

View File

@@ -29,7 +29,7 @@
/* ------------------------------------------------------------------------- */
#include "intersection-data.h"
#include "shape.h"
#include "shapes/shape.h"
/* ------------------------------------------------------------------------- */

View File

@@ -28,7 +28,7 @@
/* ------------------------------------------------------------------------- */
#include "common.h"
#include "core/common.h"
#include "point-light.h"

View File

@@ -28,8 +28,8 @@
/* ------------------------------------------------------------------------- */
#include "color.h"
#include "tuple.h"
#include "core/color.h"
#include "core/tuple.h"
/* ------------------------------------------------------------------------- */

View File

@@ -31,7 +31,7 @@
#include <cstdint>
#include "canvas.h"
#include "matrix.h"
#include "core/matrix.h"
#include "ray.h"
#include "world.h"

View File

@@ -32,7 +32,7 @@
#include <unistd.h>
#include "canvas.h"
#include "common.h"
#include "core/common.h"
using namespace Raytracer;

View File

@@ -33,7 +33,7 @@
#include <string>
#include <vector>
#include "color.h"
#include "core/color.h"
/* ------------------------------------------------------------------------- */

View File

@@ -30,7 +30,7 @@
#include <cmath>
#include "common.h"
#include "core/common.h"
#include "material.h"

View File

@@ -28,9 +28,9 @@
/* ------------------------------------------------------------------------- */
#include "color.h"
#include "point-light.h"
#include "tuple.h"
#include "core/color.h"
#include "core/tuple.h"
#include "lights/point-light.h"
/* ------------------------------------------------------------------------- */

View File

@@ -29,7 +29,7 @@
/* ------------------------------------------------------------------------- */
#include "ray.h"
#include "common.h"
#include "core/common.h"
using namespace Raytracer;

View File

@@ -28,8 +28,8 @@
/* ------------------------------------------------------------------------- */
#include "matrix.h"
#include "tuple.h"
#include "core/matrix.h"
#include "core/tuple.h"
/* ------------------------------------------------------------------------- */

View File

@@ -28,8 +28,8 @@
/* ------------------------------------------------------------------------- */
#include "matrix.h"
#include "sphere.h"
#include "core/matrix.h"
#include "shapes/sphere.h"
#include "world.h"

View File

@@ -32,10 +32,10 @@
#include <vector>
#include "intersections.h"
#include "point-light.h"
#include "ray.h"
#include "shape.h"
#include "core/intersections.h"
#include "lights/point-light.h"
#include "renderer/ray.h"
#include "shapes/shape.h"
/* ------------------------------------------------------------------------- */

View File

@@ -28,7 +28,7 @@
/* ------------------------------------------------------------------------- */
#include "intersections.h"
#include "core/intersections.h"
#include "shape.h"

View File

@@ -30,9 +30,9 @@
#include <cstdint>
#include "material.h"
#include "matrix.h"
#include "ray.h"
#include "core/matrix.h"
#include "renderer/material.h"
#include "renderer/ray.h"
/* ------------------------------------------------------------------------- */

View File

@@ -30,8 +30,8 @@
#include <cmath>
#include "common.h"
#include "intersections.h"
#include "core/common.h"
#include "core/intersections.h"
#include "sphere.h"