mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user