diff -r e2080ac44039 -r 488d0ba6070b src/main.cpp --- a/src/main.cpp Fri Sep 17 22:43:22 2021 +0300 +++ b/src/main.cpp Tue Sep 21 16:00:15 2021 +0300 @@ -37,3 +37,12 @@ mainwindow.show(); return app.exec(); } + +QDataStream& operator<<(QDataStream& stream, const glm::vec3& vec) +{ + return stream << vec.x << vec.y << vec.z; +} +QDataStream& operator>>(QDataStream& stream, glm::vec3& vec) +{ + return stream >> vec.x >> vec.y >> vec.z; +}