67 int compareTo(
const QSGTransform &other)
const
70 if (m_matrixPtr != other.m_matrixPtr) {
71 if (m_matrixPtr.isNull()) {
73 }
else if (other.m_matrixPtr.isNull()) {
76 const float *ptr1 = m_matrixPtr->constData();
77 const float *ptr2 = other.m_matrixPtr->constData();
78 for (
int i = 0; i < 16 && !diff; i++) {
79 float d = ptr1[i] - ptr2[i];
81 diff = (d > 0) ? 1 : -1;