71 #endif |
70 #endif |
72 |
71 |
73 /* |
72 /* |
74 * Returns a matrix that causes a flip on the given dimension. |
73 * Returns a matrix that causes a flip on the given dimension. |
75 */ |
74 */ |
76 Matrix4x4 math::flipmatrix(const Axis dimension) |
75 glm::mat4 math::flipmatrix(const Axis dimension) |
77 { |
76 { |
78 Matrix4x4 result = identity4x4; |
77 glm::mat4 result = glm::mat4(); |
79 result(static_cast<int>(dimension), static_cast<int>(dimension)) = -1; |
78 const int k = static_cast<int>(dimension); |
|
79 result[k][k] = -1; |
80 return result; |
80 return result; |
81 } |
81 } |
82 |
82 |
83 #if 0 |
83 #if 0 |
84 /* |
84 /* |