Skip to content

Commit

Permalink
add: config file outline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jabolol committed May 6, 2024
1 parent d6164ce commit fb40177
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/config/Camera.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef __CFG_CAMERA_HPP__
#define __CFG_CAMERA_HPP__

namespace RayTracer::Config
{
class Camera {};
} // namespace RayTracer::Config

#endif /* __CFG_CAMERA_HPP__ */
9 changes: 9 additions & 0 deletions include/config/Effects.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef __CFG_EFFECTS_HPP__
#define __CFG_EFFECTS_HPP__

namespace RayTracer::Config
{
class Effects {};
} // namespace RayTracer::Config

#endif /* __CFG_EFFECTS_HPP__ */
17 changes: 17 additions & 0 deletions include/config/Manager.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <libconfig.hh>

#ifndef __CFG_MANAGER_HPP__
#define __CFG_MANAGER_HPP__

namespace RayTracer::Config
{
class Manager {
private:
libconfig::Config config;

public:
void parse(std::string_view path);
};
} // namespace RayTracer::Config

#endif /* __CFG_MANAGER_HPP__ */
9 changes: 9 additions & 0 deletions include/config/Materials.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef __CFG_MATERIALS_HPP__
#define __CFG_MATERIALS_HPP__

namespace RayTracer::Config
{
class Materials {};
} // namespace RayTracer::Config

#endif /* __CFG_MATERIALS_HPP__ */
9 changes: 9 additions & 0 deletions include/config/Scene.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef __CFG_SCENE_HPP__
#define __CFG_SCENE_HPP__

namespace RayTracer::Config
{
class Scene {};
} // namespace RayTracer::Config

#endif /* __CFG_SCENE_HPP__ */
9 changes: 9 additions & 0 deletions include/config/Shapes.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef __CFG_SHAPES_HPP__
#define __CFG_SHAPES_HPP__

namespace RayTracer::Config
{
class Shapes {};
} // namespace RayTracer::Config

#endif /* __CFG_SHAPES_HPP__ */
9 changes: 9 additions & 0 deletions include/config/Textures.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef __CFG_TEXTURES_HPP__
#define __CFG_TEXTURES_HPP__

namespace RayTracer::Config
{
class Textures {};
} // namespace RayTracer::Config

#endif /* __CFG_TEXTURES_HPP__ */

0 comments on commit fb40177

Please sign in to comment.