Mesh.h

Add struct Vertex and Texture before class Mesh

#include <assimp/material.h>

// added in LabA07
struct Vertex {
    glm::vec3 pos;
    glm::vec3 normal;
    glm::vec2 texCoord;
};

// added in LabA07
struct Texture {
    GLuint id;
    std::string type;
    //std::string path;
};

Changes in class Mesh

Change the vertex list from vector< glm::vec3 > to vector< Vertex >

Add the texture list

Add two member methods for loading textures

The revised Mesh.h

Last updated