Introduce cgl::Buffer::put<E> for Eigen matrices and other containers.

Make put(std::vector<T>) more generic by specializing the new put<E> method.
This commit is contained in:
2020-10-13 10:56:55 -04:00
parent 6b34694784
commit 49927568e4
2 changed files with 12 additions and 6 deletions

View File

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