Draws cubes instead of triangles now
This commit is contained in:
1 parent
2067d5c18c
commit
45e2a5f4cc
441 files changed
+67481
-78
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#ifndef OBJECT3D_H
|
||||
#define OBJECT3D_H
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
class Object3D {
|
||||
public:
|
||||
std::vector<float> vertices;
|
||||
std::vector<unsigned int> indices;
|
||||
std::vector<float> normals;
|
||||
|
||||
std::vector<unsigned int> EBO_buffer;
|
||||
std::vector<float> VBO_buffer;
|
||||
|
||||
Object3D();
|
||||
Object3D(const std::string &file_path);
|
||||
|
||||
bool loadFromOBJ(const std::string& file_path);
|
||||
std::vector<float> getVBOBuffer();
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif //OBJECT3D_H
|
||||
Reference in new issue
Block a user