src/main.cpp

changeset 132
488d0ba6070b
parent 92
c438a7db7c52
child 148
e1ced2523cad
--- 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;
+}

mercurial