/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* SceneParser.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: TheRed +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/12/26 21:37:37 by TheRed #+# #+# */ /* Updated: 2025/02/04 01:21:28 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef RT_SCENEPARSER__HPP # define RT_SCENEPARSER__HPP # include "RT.hpp" class SceneParser { public: SceneParser(Scene *scene, std::string filename); bool parseLine(const std::string &line); private: void parseMaterial(std::stringstream &line); void parseTexture(std::stringstream &line); void parseCamera(std::stringstream &line); void parseObj(std::stringstream &line); Scene *_scene; std::string _filename; std::map> object_parsers; }; #endif