2021-01-12 14:09:38 -06:00
|
|
|
#ifndef VERTEX_H
|
|
|
|
#define VERTEX_H
|
|
|
|
|
2021-01-13 10:42:57 -06:00
|
|
|
#include <vector>
|
|
|
|
|
2021-01-12 14:09:38 -06:00
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
struct Vertex {
|
2021-01-13 10:42:57 -06:00
|
|
|
Vertex();
|
|
|
|
Vertex(cfloat x, cfloat y, cfloat z);
|
2021-01-17 14:36:38 -06:00
|
|
|
Vertex(cfloat x, cfloat y, cfloat z, cfloat u, cfloat v);
|
2021-01-21 15:26:39 -06:00
|
|
|
Vertex(cfloat x, cfloat y, cfloat z,
|
|
|
|
cfloat nx, float ny, cfloat nz,
|
|
|
|
cfloat u, cfloat v);
|
2021-01-12 14:09:38 -06:00
|
|
|
cfloat x, y, z;
|
2021-01-21 15:26:39 -06:00
|
|
|
cfloat nx, ny, nz;
|
2021-01-17 14:36:38 -06:00
|
|
|
cfloat u, v;
|
2021-01-13 10:42:57 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::vector<Vertex> VertexList;
|
2021-01-12 14:09:38 -06:00
|
|
|
|
|
|
|
#endif /* VERTEX_H */
|