yupplemayham/YuppleMayham/include/graphics/mesh.h
Ethan Adams 3075a01b3d Sorted header files under include
made Script base class for AIScript and eventually WeaponScript
2024-06-22 23:01:50 -04:00

31 lines
No EOL
477 B
C++

#ifndef _H_MESH_H
#define _H_MESH_H
#include <vector>
#include <glad/glad.h>
#include <glm/glm.hpp>
typedef struct {
glm::vec3 vertex;
glm::vec2 texCoord;
}Vertex;
typedef std::vector<Vertex> VertexList;
typedef std::vector<unsigned> IndexList;
class Mesh
{
public:
Mesh(const VertexList&, const IndexList& indexList);
~Mesh();
void draw();
private:
// Vertex Array, Vertex Buffer, Element Buffer
unsigned VAO, VBO, EBO;
size_t indexSize;
};
#endif // _H_MESH_H