23 lines
626 B
C++
23 lines
626 B
C++
#pragma once
|
|
|
|
#include "../Utils/3DMaths.hpp"
|
|
|
|
|
|
struct MeshVertex {
|
|
MeshVertex() = default;
|
|
|
|
MeshVertex(const MeshVertex&) = default;
|
|
MeshVertex& operator=(const MeshVertex&) = default;
|
|
MeshVertex(MeshVertex&&) = default;
|
|
MeshVertex& operator=(MeshVertex&&) = default;
|
|
|
|
MeshVertex(M3D_F3 const& _pos) noexcept : pos(_pos) {}
|
|
MeshVertex(const float _x, const float _y, const float _z) noexcept : pos(M3D_F3(_x,_y,_z)) {}
|
|
MeshVertex(M3D_VECTOR const _pos) noexcept {
|
|
M3D_V4StoreF3(&this->pos, _pos);
|
|
}
|
|
|
|
M3D_F3 pos = {0.0f, 0.0f, 0.0f};
|
|
M3D_F4 color = {255.0f, 255.0f, 255.0f, 255.f};
|
|
|
|
}; |