Cleanup and tweaks for nanogui

- clean up main-gui.cpp
- Add Primitive constructor from vector
- move ubo bindbufferbase to correct location
This commit is contained in:
David Allemang
2020-10-11 18:00:38 -04:00
parent 7fb70dbae6
commit c164c319fc
3 changed files with 5 additions and 201 deletions

View File

@@ -26,6 +26,10 @@ struct Primitive {
inds[N - 1] = root;
}
explicit Primitive(const std::vector<unsigned> &values) {
std::copy(values.begin(), values.begin() + N, inds.begin());
}
~Primitive() = default;
void apply(const tc::Cosets &table, int gen) {