summaryrefslogtreecommitdiff
path: root/gfx/models/vertex.hpp
blob: 64ec3d08baad165084ca77e96907383bf1fe4f36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <glm/glm.hpp>

class Vertex {
public:
#ifndef __cpp_aggregate_paren_init
	constexpr Vertex(glm::vec3 pos, glm::vec2 texCoord, glm::vec3 normal, glm::vec4 colour = {}) :
		pos {std::move(pos)}, texCoord {std::move(texCoord)}, normal {std::move(normal)}, colour {std::move(colour)}
	{
	}
#endif

	bool operator==(const Vertex &) const = default;

	glm::vec3 pos;
	glm::vec2 texCoord;
	glm::vec3 normal;
	glm::vec4 colour;
};