src/basics.h

branch
experimental
changeset 885
9c4fc9b433ae
parent 868
6e03c68c81ba
child 890
903ec1e46298
equal deleted inserted replaced
884:d820588bf4f1 885:9c4fc9b433ae
54 X, 54 X,
55 Y, 55 Y,
56 Z 56 Z
57 }; 57 };
58 58
59 enum class Winding
60 {
61 CW,
62 CCW,
63 None
64 };
65
66 inline void invertWinding (Winding& winding)
67 {
68 if (winding == Winding::CW)
69 winding = Winding::CCW;
70 elif (winding == Winding::CCW)
71 winding = Winding::CW;
72 }
73
59 // 74 //
60 // Derivative of QVector3D: this class is used for the vertices. 75 // Derivative of QVector3D: this class is used for the vertices.
61 // 76 //
62 class Vertex : public QVector3D 77 class Vertex : public QVector3D
63 { 78 {

mercurial