53 |
53 |
54 template<int extent> |
54 template<int extent> |
55 constexpr auto calcGridData() |
55 constexpr auto calcGridData() |
56 { |
56 { |
57 std::array<glm::vec2, 8 * extent + 4> result; |
57 std::array<glm::vec2, 8 * extent + 4> result; |
58 int ix = 0; |
58 std::size_t ix = 0; |
59 for (int i = -extent; i <= extent; i += 1) { |
59 for (int i = -extent; i <= extent; i += 1) { |
60 result[ix++] = {i, -extent}; |
60 result[ix++] = {i, -extent}; |
61 result[ix++] = {i, extent}; |
61 result[ix++] = {i, extent}; |
62 } |
62 } |
63 for (int i = -extent; i <= extent; i += 1) { |
63 for (int i = -extent; i <= extent; i += 1) { |