mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
separate vao for each kind of slice
This commit is contained in:
@@ -4,3 +4,5 @@ target_link_libraries(memo PRIVATE tc vis-util)
|
||||
add_executable(geom geomtest.cpp)
|
||||
target_link_libraries(geom PRIVATE tc vis-util)
|
||||
|
||||
add_executable(sub subtest.cpp)
|
||||
target_link_libraries(sub PRIVATE vis-util)
|
||||
|
||||
24
examples/subtest.cpp
Normal file
24
examples/subtest.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
#include <combo_iterator.hpp>
|
||||
#include <numeric>
|
||||
|
||||
template<class T>
|
||||
std::ostream &operator<<(std::ostream &o, const std::vector<T> &v) {
|
||||
for (const auto &e : v) o << e << " ";
|
||||
return o;
|
||||
}
|
||||
|
||||
int main() {
|
||||
std::vector<int> gens(5);
|
||||
std::iota(gens.begin(), gens.end(), 0);
|
||||
|
||||
const Combos<int> &combos = Combos(gens, 2);
|
||||
|
||||
for (const auto &e : combos) {
|
||||
std::cout << e << std::endl;
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user