mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
add obj parser
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: TheRed <TheRed@students.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/12/26 21:37:37 by TheRed #+# #+# */
|
||||
/* Updated: 2024/12/26 21:37:37 by TheRed ### ########.fr */
|
||||
/* Updated: 2025/01/13 17:39:22 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -25,10 +25,14 @@ class SceneParser
|
||||
private:
|
||||
void parseMaterial(std::stringstream &line);
|
||||
void parseCamera(std::stringstream &line);
|
||||
void parseObj(std::stringstream &line);
|
||||
glm::vec3 getVertex(std::stringstream &line);
|
||||
Triangle *getFace(std::stringstream &line, std::vector<glm::vec3> &vertices);
|
||||
long int getVertexIndex(std::stringstream &line, size_t size);
|
||||
|
||||
Scene *_scene;
|
||||
|
||||
std::map<std::string, std::function<Object *(std::stringstream &)>> object_parsers;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user