29 lines
615 B
C++
29 lines
615 B
C++
//
|
|
// Created by Epagris on 2020. 03. 14..
|
|
//
|
|
|
|
#ifndef VERTEX
|
|
#define VERTEX
|
|
|
|
#include <DirectXMath.h>
|
|
#include <initializer_list>
|
|
|
|
namespace eg3d {
|
|
|
|
struct Vertex {
|
|
public:
|
|
float x, y, z; // koordináták
|
|
float nx, ny, nz; // normálvektor koordinátái
|
|
// float nx, ny, nz; // normálvektorok TODO
|
|
|
|
Vertex(); // default konstruktor
|
|
Vertex(const DirectX::XMFLOAT3 xmf3); // betöltés XMFLOAT3-ból
|
|
Vertex(std::initializer_list<float> initList); // konstruktor struktúraszerû inicializációval
|
|
Vertex(const Vertex& other); // másolókonstruktor
|
|
};
|
|
|
|
}
|
|
|
|
|
|
#endif //VERTEX
|