loading obj files working.
All checks were successful
Verify build / verify_build (push) Successful in 1m0s

This commit is contained in:
k
2025-05-28 23:56:20 -04:00
parent a75360a8ef
commit 692fbf8196
7 changed files with 124 additions and 25 deletions

View File

@@ -11,6 +11,7 @@ public:
void addFPos(glm::vec3 pos);
void setRotate(float yaw, float pitch);
void addRotate(float yaw, float pitch);
glm::vec3 getPos();
glm::mat4 getView();
glm::mat4 getProjection();
float aspect;

View File

@@ -8,6 +8,7 @@
class Mesh {
public:
Mesh(Shader *s, unsigned int VAO, int count);
Mesh(Shader *s, std::string path);
~Mesh();
void draw(Camera *c);
void setPosition(glm::vec3 p);

4
headers/obj.hpp Normal file
View File

@@ -0,0 +1,4 @@
#include <glm/glm.hpp>
#include <vector>
unsigned int loadOBJ(const char *path, std::vector<float> *out_vertices);