mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
change obj parsing to its own object and start polygon triangulation
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: 2025/01/15 12:34:11 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/01/16 15:02:01 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -25,11 +25,6 @@ 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, int mat);
|
||||
long int getVertexIndex(std::stringstream &line, size_t size);
|
||||
void parseMtl(std::stringstream &line, std::map<std::string, int> &materials);
|
||||
|
||||
Scene *_scene;
|
||||
|
||||
|
Reference in New Issue
Block a user