introduce Mesh class with subgroup context

This commit is contained in:
David Allemang
2020-10-13 22:44:46 -04:00
committed by David Allemang
parent 6ff09dc375
commit 9ce626ee64
5 changed files with 183 additions and 155 deletions

View File

@@ -47,8 +47,9 @@ public:
template<class T>
Slice(const tc::Group &g, T all_sg_gens, const std::vector<std::vector<int>> &exclude) : group(g) {
const auto &data = merge<N>(hull<N>(g, all_sg_gens, exclude));
ibo.put(data);
auto mesh = merge(hull<N>(g, exclude));
ibo.put(mesh);
vao.ipointer(0, ibo, 4, GL_UNSIGNED_INT);
}