+ | Real material shared system + parsing

This commit is contained in:
TheRedShip
2024-12-27 11:11:01 +01:00
parent 8941169f4a
commit ea3dd738f8
9 changed files with 105 additions and 63 deletions

View File

@ -10,8 +10,8 @@
/* */
/* ************************************************************************** */
#ifndef RT_SceneParser__HPP
# define RT_SceneParser__HPP
#ifndef RT_SCENEPARSER__HPP
# define RT_SCENEPARSER__HPP
# include "RT.hpp"
@ -23,7 +23,10 @@ class SceneParser
bool parseLine(const std::string &line);
private:
Scene *_scene;
void parseMaterial(std::stringstream &line);
Scene *_scene;
std::map<std::string, std::function<Object *(std::stringstream &)>> object_parsers;
};