src/gl/common.h

changeset 218
63125c36de73
parent 217
6d95c1a41e6e
child 231
a9bf6bab5ea2
equal deleted inserted replaced
217:6d95c1a41e6e 218:63125c36de73
133 GLfloat lineThickness = 2.0f; 133 GLfloat lineThickness = 2.0f;
134 bool lineAntiAliasing = true; 134 bool lineAntiAliasing = true;
135 bool drawAxes = true; 135 bool drawAxes = true;
136 }; 136 };
137 } 137 }
138
139 Q_DECLARE_METATYPE(gl::RenderStyle)
140
141 inline QDataStream &operator<<(QDataStream& stream, const gl::RenderStyle style)
142 {
143 return stream << enum_value_cast(style);
144 }
145
146 inline QDataStream &operator>>(QDataStream& stream, gl::RenderStyle& style)
147 {
148 return stream >> enum_value_cast(style);
149 }

mercurial