pool allocation. not working. not sure why. will travel back in time...
This commit is contained in:
12
inc/body.hpp
12
inc/body.hpp
@@ -5,16 +5,22 @@
|
||||
#include <string>
|
||||
#include "util.hpp"
|
||||
|
||||
struct ObjData {
|
||||
float* verts;
|
||||
int verts_len;
|
||||
int* faces;
|
||||
int faces_len;
|
||||
};
|
||||
|
||||
struct Body {
|
||||
glm::mat4 pose;
|
||||
glm::vec4 color;
|
||||
float scale;
|
||||
uint ebo;
|
||||
uint vao;
|
||||
uint vbo;
|
||||
uint shader;
|
||||
std::vector<float> verts;
|
||||
std::vector<int> faces;
|
||||
glm::vec4 color;
|
||||
ObjData data;
|
||||
};
|
||||
|
||||
bool load_body(Body* out_body, std::string filepath);
|
||||
|
||||
Reference in New Issue
Block a user