EHS
Loading...
Searching...
No Matches
Vertex.h
Go to the documentation of this file.
1#pragma once
2
3#include "ehs/EHS.h"
4#include "ehs/Vec4.h"
5#include "ehs/Vec3.h"
6#include "ehs/Vec2.h"
7#include "ehs/Color4.h"
8
9namespace ehs
10{
11 template<typename T = float>
12 class Vertex
13 {
14 public:
22
23 Vertex() = default;
24
26 : pos(pos), bones{0, 0, 0, 0}, weights{0.0f, 0.0f, 0.0f, 0.0f}
27 {
28 }
29
31 : pos(pos), normal(normal), bones{0, 0, 0, 0}, weights{0.0f, 0.0f, 0.0f, 0.0f}
32 {
33 }
34
35 Vertex(const Vec3<T>& pos, const Vec3<T>& normal, const Vec2<T>& uv)
36 : pos(pos), normal(normal), uv(uv), bones{0, 0, 0, 0}, weights{0.0f, 0.0f, 0.0f, 0.0f}
37 {
38 }
39
40 Vertex(const Vertex& vert)
41 : pos(vert.pos), normal(vert.normal), uv(vert.uv), bones(vert.bones), weights(vert.weights)
42 {
43 }
44
45 Vertex& operator=(const Vertex& vert) = default;
46 };
47
50}
Definition Vec2.h:13
Definition Vec3.h:14
Definition Vec4.h:15
Definition Vertex.h:13
Vertex()=default
Vertex(const Vec3< T > &pos, const Vec3< T > &normal)
Definition Vertex.h:30
Vec3< double > tan
Definition Vertex.h:18
Vertex & operator=(const Vertex &vert)=default
Vertex(const Vec3< T > &pos, const Vec3< T > &normal, const Vec2< T > &uv)
Definition Vertex.h:35
Vertex(const Vertex &vert)
Definition Vertex.h:40
Vec4< float > weights
Definition Vertex.h:21
Vertex(const Vec3< T > &pos)
Definition Vertex.h:25
Vec3< double > normal
Definition Vertex.h:16
Vec3< double > bTan
Definition Vertex.h:19
Vec2< double > uv
Definition Vertex.h:17
Vec4< UInt_8 > bones
Definition Vertex.h:20
Vec3< double > pos
Definition Vertex.h:15
Definition Anchor.h:6
Vertex< float > Vertex_f
Definition Vertex.h:49
Vertex< double > Vertex_d
Definition Vertex.h:48