diff options
author | David Robillard <d@drobilla.net> | 2019-04-23 20:55:47 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-23 20:55:47 +0200 |
commit | 66f8ba7f06b9369276e6210f756b075591efa6fa (patch) | |
tree | 6c9601a60226a8e38dd1c227b10fb0e2f06e8d4b /bin | |
parent | 045128813d1a69a6483ff2f8f870562b96be0a65 (diff) | |
download | chilbert-66f8ba7f06b9369276e6210f756b075591efa6fa.tar.gz chilbert-66f8ba7f06b9369276e6210f756b075591efa6fa.tar.bz2 chilbert-66f8ba7f06b9369276e6210f756b075591efa6fa.zip |
Support using any array-like type for points
Diffstat (limited to 'bin')
-rw-r--r-- | bin/chilbert_obj.cpp | 2 | ||||
-rw-r--r-- | bin/chilbert_svg.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/chilbert_obj.cpp b/bin/chilbert_obj.cpp index 85fe95a..0f31fbd 100644 --- a/bin/chilbert_obj.cpp +++ b/bin/chilbert_obj.cpp @@ -39,7 +39,7 @@ main(int argc, char** argv) // Vertices for (uint64_t i = 0; i < num_points; ++i) { std::array<uint32_t, 3> point; - chilbert::index_to_coords(point.data(), 16, 3, i); + chilbert::index_to_coords(point, 16, 3, i); printf("v %u %u %u\n", point[0], point[1], point[2]); } diff --git a/bin/chilbert_svg.cpp b/bin/chilbert_svg.cpp index 1151a1a..dd4a3d4 100644 --- a/bin/chilbert_svg.cpp +++ b/bin/chilbert_svg.cpp @@ -52,7 +52,7 @@ main(int argc, char** argv) // One polyline through all vertices for (uint64_t i = 0; i <= num_points; ++i) { std::array<uint32_t, 2> point; - chilbert::index_to_coords(point.data(), 32, 2, i); + chilbert::index_to_coords(point, 32, 2, i); printf("%u,%u ", point[0], point[1]); } |