src/gl/gridprogram.cpp

changeset 250
2837b549e616
parent 243
959469a7e149
equal deleted inserted replaced
249:37d3c819cafa 250:2837b549e616
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) {

mercurial