Nigel Barink
16b61986a1
* Added Texures to the two sample cubes * Modified mesh structure - mesh now contains indices and vertices - Vertices contain vertices and uv's (later on they will also contain normals) Solution definitely not perfect and needs improvement.
20 lines
262 B
C++
20 lines
262 B
C++
#pragma once
|
|
#include <vector>
|
|
#include <glm/glm.hpp>
|
|
|
|
namespace BarinkEngine{
|
|
|
|
|
|
struct Vertex {
|
|
glm::vec3 vertices;
|
|
glm::vec2 uv;
|
|
};
|
|
|
|
class Mesh {
|
|
public:
|
|
std::vector<Vertex> vertices;
|
|
std::vector<unsigned int > elements;
|
|
|
|
};
|
|
|
|
} |