fixed warnings
This commit is contained in:
parent
c77359146f
commit
892ded1f97
14
src/test.c
14
src/test.c
|
@ -314,7 +314,7 @@ void testScaling() {
|
||||||
|
|
||||||
scaling(&result, &test);
|
scaling(&result, &test);
|
||||||
|
|
||||||
printTest("Scaling", (sumDiffAny(&expectedResult, &result, 4, 4) < EPSILON));
|
printTest("Scaling", (sumDiffAny((GLfloat*)&expectedResult, (GLfloat*)&result, 4, 4) < EPSILON));
|
||||||
}
|
}
|
||||||
|
|
||||||
void testRotationZ() {
|
void testRotationZ() {
|
||||||
|
@ -338,7 +338,7 @@ void testRotationZ() {
|
||||||
|
|
||||||
rotationZ(&result, a);
|
rotationZ(&result, a);
|
||||||
|
|
||||||
printTest("RotationZ", (sumDiffAny(&expectedResult, &result, 4, 4) < EPSILON));
|
printTest("RotationZ", (sumDiffAny((GLfloat*)&expectedResult, (GLfloat*)&result, 4, 4) < EPSILON));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ void testRotationY() {
|
||||||
|
|
||||||
rotationY(&result, a);
|
rotationY(&result, a);
|
||||||
|
|
||||||
printTest("RotationY", (sumDiffAny(&expectedResult, &result, 4, 4) < EPSILON));
|
printTest("RotationY", (sumDiffAny((GLfloat*)&expectedResult, (GLfloat*)&result, 4, 4) < EPSILON));
|
||||||
}
|
}
|
||||||
|
|
||||||
void testRotationX() {
|
void testRotationX() {
|
||||||
|
@ -387,7 +387,7 @@ void testRotationX() {
|
||||||
|
|
||||||
rotationX(&result, a);
|
rotationX(&result, a);
|
||||||
|
|
||||||
printTest("RotationX", (sumDiffAny(&expectedResult, &result, 4, 4) < EPSILON));
|
printTest("RotationX", (sumDiffAny((GLfloat*)&expectedResult, (GLfloat*)&result, 4, 4) < EPSILON));
|
||||||
}
|
}
|
||||||
|
|
||||||
void testMultiplyAny() {
|
void testMultiplyAny() {
|
||||||
|
@ -404,7 +404,7 @@ void testMultiplyAny() {
|
||||||
GLfloat expectedResult[4] = {76, 100,
|
GLfloat expectedResult[4] = {76, 100,
|
||||||
103, 136};
|
103, 136};
|
||||||
|
|
||||||
multiplyAny(&result, &matrix1, &matrix2, 3, 2, 2);
|
multiplyAny((GLfloat*)&result, (GLfloat*)&matrix1, (GLfloat*)&matrix2, 3, 2, 2);
|
||||||
|
|
||||||
printTest("Multiply Any", sumDiffAny(result, expectedResult, 2, 2) < EPSILON);
|
printTest("Multiply Any", sumDiffAny(result, expectedResult, 2, 2) < EPSILON);
|
||||||
}
|
}
|
||||||
|
@ -414,9 +414,9 @@ void testAnyTranspose() {
|
||||||
mat3 M = {1, 2, 3, 4, 5, 6, 7, 8, 9};
|
mat3 M = {1, 2, 3, 4, 5, 6, 7, 8, 9};
|
||||||
mat3 target = {1, 4, 7, 2, 5, 8, 3, 6, 9};
|
mat3 target = {1, 4, 7, 2, 5, 8, 3, 6, 9};
|
||||||
|
|
||||||
transposeAny(&M, &M, 3, 3);
|
transposeAny((GLfloat*)&M, (GLfloat*)&M, 3, 3);
|
||||||
|
|
||||||
printTest("Transpose Any", mat3SumDiff(&M, &target) < EPSILON);
|
printTest("Transpose Any", mat3SumDiff((mat3*)&M, (mat3*)&target) < EPSILON);
|
||||||
}
|
}
|
||||||
|
|
||||||
void testTranslate() {
|
void testTranslate() {
|
||||||
|
|
Loading…
Reference in New Issue