libneofx: Fixed some warnings with -Wall
This commit is contained in:
parent
2664e16406
commit
da5b329d8a
2 changed files with 5 additions and 5 deletions
8
math.c
8
math.c
|
@ -76,22 +76,22 @@ int VectorEqual(VECTOR v1, VECTOR v2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
MATRIX MatrixIdentity() {
|
MATRIX MatrixIdentity() {
|
||||||
MATRIX m = {
|
MATRIX m = {.f = {
|
||||||
1.0, 0.0, 0.0, 0.0,
|
1.0, 0.0, 0.0, 0.0,
|
||||||
0.0, 1.0, 0.0, 0.0,
|
0.0, 1.0, 0.0, 0.0,
|
||||||
0.0, 0.0, 1.0, 0.0,
|
0.0, 0.0, 1.0, 0.0,
|
||||||
0.0, 0.0, 0.0, 1.0
|
0.0, 0.0, 0.0, 1.0
|
||||||
};
|
}};
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
MATRIX MatrixMul(MATRIX m1, MATRIX m2) {
|
MATRIX MatrixMul(MATRIX m1, MATRIX m2) {
|
||||||
MATRIX m = {
|
MATRIX m = {.f = {
|
||||||
0.0, 0.0, 0.0, 0.0,
|
0.0, 0.0, 0.0, 0.0,
|
||||||
0.0, 0.0, 0.0, 0.0,
|
0.0, 0.0, 0.0, 0.0,
|
||||||
0.0, 0.0, 0.0, 0.0,
|
0.0, 0.0, 0.0, 0.0,
|
||||||
0.0, 0.0, 0.0, 0.0
|
0.0, 0.0, 0.0, 0.0
|
||||||
};
|
}};
|
||||||
short i, j, k;
|
short i, j, k;
|
||||||
|
|
||||||
for(i = 0; i < 4; i++)
|
for(i = 0; i < 4; i++)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include <neofx/math.h>
|
#include <neofx/math.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
static VECTOR gravitation = {0, -9.8, 0};
|
static VECTOR gravitation = {{0, -9.8, 0}};
|
||||||
|
|
||||||
|
|
||||||
void SetGravitation(VECTOR v) {
|
void SetGravitation(VECTOR v) {
|
||||||
|
|
Reference in a new issue