This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** Raytracer | RunTimeException | ||
** File description: | ||
** RunTimeException.hpp | ||
*/ | ||
|
||
#ifndef RAYTRACER_RUNTIME_EXCEPTION_HPP | ||
#define RAYTRACER_RUNTIME_EXCEPTION_HPP | ||
|
||
#include <iostream> | ||
|
||
namespace RayTracer { | ||
|
||
class RunTimeException : public std::exception | ||
{ | ||
public: | ||
explicit RunTimeException(std::string msg) : m_msg{std::move(msg)} {} | ||
~RunTimeException() override = default; | ||
|
||
RunTimeException(const RunTimeException &) = delete; | ||
RunTimeException &operator=(const RunTimeException &) = delete; | ||
RunTimeException(const RunTimeException &&) = delete; | ||
RunTimeException &operator=(const RunTimeException &&) = delete; | ||
|
||
[[nodiscard]] const char *what() const noexcept override { return m_msg.c_str(); }; | ||
|
||
private: | ||
std::string m_msg{0}; | ||
|
||
}; // RendererException | ||
} // namespace RayTracer | ||
|
||
#endif //RAYTRACER_RUNTIME_EXCEPTION_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** Raytracer | ||
** File description: | ||
** IRenderer.cpp | ||
*/ | ||
|
||
#ifndef RAYTRACER_ILIGHTS_HPP | ||
#define RAYTRACER_ILIGHTS_HPP | ||
|
||
namespace RayTracer { | ||
|
||
class IRenderer { | ||
|
||
public: | ||
virtual ~IRenderer() = default; | ||
|
||
}; // IRenderer | ||
|
||
} // namespace RayTracer | ||
|
||
#endif //RAYTRACER_IRENDERER_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** Raytracer | renderer | ||
** File description: | ||
** renderer.hpp | ||
*/ | ||
|
||
#ifndef RAYTRACER_RENDERER_HPP | ||
#define RAYTRACER_RENDERER_HPP | ||
|
||
#include "RayTracer/abstraction/IRenderer.hpp" | ||
|
||
namespace RayTracer { | ||
|
||
class Renderer : IRenderer { | ||
|
||
public: | ||
~Renderer() override = default; | ||
|
||
}; // Renderer | ||
|
||
} // namespace RayTracer | ||
|
||
#endif // RAYTRACER_RENDERER_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** Raytracer | renderer | ||
** File description: | ||
** renderer.cpp | ||
*/ | ||
|
||
#include "RayTracer/renderer.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.