Meshes and models

This commit is contained in:
Benjamin Kyd
2019-02-22 21:00:04 +00:00
parent 56320609db
commit 8efb410bcd
5 changed files with 132 additions and 3 deletions

View File

@@ -1,7 +1,33 @@
#include "mesh.h"
Mesh::Mesh() {
}
Mesh::Mesh(std::string objPath) {
}
Mesh::Mesh(objl::Mesh objMesh) {
}
void Mesh::loadFromObj(objl::Mesh objmesh) {
}
void Mesh::settup() {
}
void Mesh::bind() {
}
void Mesh::render(Shader& shader) {
}
void Mesh::unbind() {
}

View File

@@ -4,6 +4,8 @@
#include <string>
#include <vector>
#include <OBJLoader.h>
#include <glad/glad.hpp>
#include <glm/glm.hpp>
@@ -16,8 +18,9 @@ class Mesh {
public:
Mesh();
Mesh(std::string objPath);
Mesh(objl::Mesh objMesh);
void LoadFromObj(std::string objPath);
void loadFromObj(objl::Mesh objMesh);
void settup();
void bind();
@@ -31,7 +34,6 @@ public:
std::vector<glm::vec2> texCoords;
std::vector<glm::vec3> normals;
std::vector<GLuint> indices;
private:
GLuint vertexBuffer;
GLuint indexBuffer;

0
src/model.cpp Normal file
View File

0
src/model.h Normal file
View File