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

@@ -62,11 +62,6 @@ namespace cgl {
put(data.data(), data.size(), usage);
}
template<>
void put<std::vector<T>>(const std::vector<T> &data, GLenum usage = GL_STATIC_DRAW) {
put(data.data, data.size(), usage);
}
void bound(GLenum target, const std::function<void()> &action) const {
glBindBuffer(target, id);
action();