Can now load models from file, kinda

This commit is contained in:
Robert 2021-01-22 13:37:57 +01:00
parent 4c3c1687ef
commit ac5bf9abdb
13 changed files with 10247 additions and 12 deletions

View file

@ -54,6 +54,15 @@ namespace oglu
*/
friend std::shared_ptr<AbstractVertexArray> OGLU_API MakeVertexArray(const GLfloat* vertices, size_t verticesSize, const GLuint* indices, size_t indicesSize, const VertexAttribute* topology, size_t topologySize);
/**
* @brief Constructs a new VAO.
*
* Reads an .obj file and converts it into a VAO
*
* @param[in] filepath Path to the .obj file
*/
friend std::shared_ptr<AbstractVertexArray> OGLU_API MakeVertexArray(const char* filepath);
/**
* @brief Copy constructor.
*