From e40b6bfe346bb93a2d3b38745b8fddba40e759c6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 5 Feb 2021 18:53:45 +0000 Subject: Initial commit adding curved rail pieces --- utility/stream_support.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'utility/stream_support.hpp') 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 std::ostream & -operator<<(std::ostream & s, glm::mat & m) +operator<<(std::ostream & s, const glm::mat & m) { for (int y = 0; y < m.length(); y++) { const auto & col = m[y]; @@ -17,4 +17,14 @@ operator<<(std::ostream & s, glm::mat & m) return s; } +template +std::ostream & +operator<<(std::ostream & s, const glm::vec & v) +{ + for (int x = 0; x < L; x++) { + s << v[x] << ", "; + } + return s; +} + #endif -- cgit v1.2.3