mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
introduce Mesh class with subgroup context
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user