cleanup build. add demo project. add timing features to sync. switch to more std::string and std::vector usage over custom, hacky Array template
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <glm/ext/matrix_float4x4.hpp>
|
||||
#include <glm/glm.hpp>
|
||||
#include <string>
|
||||
#include "util.hpp"
|
||||
|
||||
struct Body {
|
||||
@@ -11,11 +12,11 @@ struct Body {
|
||||
uint vao;
|
||||
uint vbo;
|
||||
uint shader;
|
||||
Array<float> verts;
|
||||
Array<int> faces;
|
||||
std::vector<float> verts;
|
||||
std::vector<int> faces;
|
||||
glm::vec4 color;
|
||||
};
|
||||
|
||||
bool load_body(Body* out_body, const char* obj_filepath);
|
||||
bool load_body(Body* out_body, std::string filepath);
|
||||
void draw_body(const Body& b);
|
||||
void create_new_sphere(Body* b, float scale=1.0f);
|
||||
|
||||
Reference in New Issue
Block a user