src/gl/common.h

changeset 218
63125c36de73
parent 217
6d95c1a41e6e
child 231
a9bf6bab5ea2
--- a/src/gl/common.h	Tue Jun 14 17:55:50 2022 +0300
+++ b/src/gl/common.h	Tue Jun 14 19:50:31 2022 +0300
@@ -135,3 +135,15 @@
 		bool drawAxes = true;
 	};
 }
+
+Q_DECLARE_METATYPE(gl::RenderStyle)
+
+inline QDataStream &operator<<(QDataStream& stream, const gl::RenderStyle style)
+{
+	return stream << enum_value_cast(style);
+}
+
+inline QDataStream &operator>>(QDataStream& stream, gl::RenderStyle& style)
+{
+	return stream >> enum_value_cast(style);
+}

mercurial