Open source Star Ruler 2 source code!

This commit is contained in:
Lucas de Vries
2018-07-17 14:15:37 +02:00
commit cc307720ff
4342 changed files with 2365070 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include "vertex.h"
#include "vec4.h"
#include "color.h"
#include <vector>
struct Mesh {
public:
struct Face {
unsigned short a, b, c;
Face() : a(0), b(0), c(0) {};
Face(unsigned short A, unsigned short B, unsigned short C)
: a(A), b(B), c(C) {};
Face(const Face& other) {
a = other.a;
b = other.b;
c = other.c;
};
};
std::vector<Vertex> vertices;
std::vector<Face> faces;
std::vector<vec4f> tangents;
std::vector<Colorf> colors;
std::vector<vec4f> uvs2;
};