Wait... There's bool used....
This commit is contained in:
parent
71b0af0350
commit
57db4eeeb0
@ -62,7 +62,7 @@ static inline void Mtx_Copy(C3D_Mtx* out, const C3D_Mtx* in)
|
|||||||
void Mtx_Identity(C3D_Mtx* out);
|
void Mtx_Identity(C3D_Mtx* out);
|
||||||
void Mtx_Multiply(C3D_Mtx* out, const C3D_Mtx* a, const C3D_Mtx* b);
|
void Mtx_Multiply(C3D_Mtx* out, const C3D_Mtx* a, const C3D_Mtx* b);
|
||||||
|
|
||||||
int Mtx_Inverse(C3D_Mtx* out);
|
bool Mtx_Inverse(C3D_Mtx* out);
|
||||||
|
|
||||||
void Mtx_Translate(C3D_Mtx* mtx, float x, float y, float z);
|
void Mtx_Translate(C3D_Mtx* mtx, float x, float y, float z);
|
||||||
void Mtx_Scale(C3D_Mtx* mtx, float x, float y, float z);
|
void Mtx_Scale(C3D_Mtx* mtx, float x, float y, float z);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include <c3d/maths.h>
|
#include <c3d/maths.h>
|
||||||
|
|
||||||
int Mtx_Inverse(C3D_Mtx* out)
|
bool Mtx_Inverse(C3D_Mtx* out)
|
||||||
{
|
{
|
||||||
float inv[16], det;
|
float inv[16], det;
|
||||||
int i;
|
int i;
|
||||||
@ -125,9 +125,9 @@ int Mtx_Inverse(C3D_Mtx* out)
|
|||||||
for (i = 0; i < 16; i++)
|
for (i = 0; i < 16; i++)
|
||||||
out->m[i] = inv[i] * det;
|
out->m[i] = inv[i] * det;
|
||||||
|
|
||||||
return 0;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user