mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Real material shared system + parsing
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user