diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-05 18:53:45 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-05 18:53:45 +0000 |
commit | e40b6bfe346bb93a2d3b38745b8fddba40e759c6 (patch) | |
tree | 1ad5746d5b49f12fe47e918e5c7d9c392c4e3e8d /utility | |
parent | Initial commit generating some basic rail network (diff) | |
download | ilt-e40b6bfe346bb93a2d3b38745b8fddba40e759c6.tar.bz2 ilt-e40b6bfe346bb93a2d3b38745b8fddba40e759c6.tar.xz ilt-e40b6bfe346bb93a2d3b38745b8fddba40e759c6.zip |
Initial commit adding curved rail pieces
Diffstat (limited to 'utility')
-rw-r--r-- | utility/stream_support.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/utility/stream_support.hpp b/utility/stream_support.hpp index 6ab1bd1..9561e58 100644 --- a/utility/stream_support.hpp +++ b/utility/stream_support.hpp @@ -5,7 +5,7 @@ template<glm::length_t L, glm::length_t R, typename T, glm::qualifier Q> std::ostream & -operator<<(std::ostream & s, glm::mat<L, R, T, Q> & m) +operator<<(std::ostream & s, const glm::mat<L, R, T, Q> & m) { for (int y = 0; y < m.length(); y++) { const auto & col = m[y]; @@ -17,4 +17,14 @@ operator<<(std::ostream & s, glm::mat<L, R, T, Q> & m) return s; } +template<glm::length_t L, typename T, glm::qualifier Q> +std::ostream & +operator<<(std::ostream & s, const glm::vec<L, T, Q> & v) +{ + for (int x = 0; x < L; x++) { + s << v[x] << ", "; + } + return s; +} + #endif |