loading obj files working.
All checks were successful
Verify build / verify_build (push) Successful in 1m0s
All checks were successful
Verify build / verify_build (push) Successful in 1m0s
This commit is contained in:
parent
a75360a8ef
commit
692fbf8196
7 changed files with 124 additions and 25 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
4
headers/obj.hpp
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#include <glm/glm.hpp>
|
||||
#include <vector>
|
||||
|
||||
unsigned int loadOBJ(const char *path, std::vector<float> *out_vertices);
|
||||
Loading…
Add table
Add a link
Reference in a new issue