re-added grid-rendering to the editor

rebuild grid/navMesh 3D data only if needed
This commit is contained in:
k-a-z-u
2018-07-03 10:53:03 +02:00
parent 37b3011e5d
commit 2f37baf497
9 changed files with 262 additions and 203 deletions

View File

@@ -59,6 +59,17 @@ public:
}
void addPoint(Point3 p, const float r, const float g, const float b, const float a) {
vertices.insert(vertices.end(), {p.x, p.y, p.z});
rgba.insert(rgba.end(), {r,g,b,a});
}
bool empty() const {
return vertices.empty();
}
void clear() {
vertices.clear();
normals.clear();