diff options
| author | raysan5 <[email protected]> | 2021-07-30 12:54:54 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-07-30 12:54:54 +0200 |
| commit | aeb1a0da84adc9e6987e1436431ea9cf495c8802 (patch) | |
| tree | 063ba13a2a0153eea2def09496e461a00f2193c6 /src/utils.c | |
| parent | 71373ee52468871e464e07000f8a602f373e906b (diff) | |
| download | raylib-aeb1a0da84adc9e6987e1436431ea9cf495c8802.tar.gz raylib-aeb1a0da84adc9e6987e1436431ea9cf495c8802.zip | |
REVERTED: Removed the need for `rlMatrix`
Now rlgl uses the `Matrix` type, just make sure it has been previously defined somewhere... I don't like this approach but it's probably the easier one for the users... still looking for a better solution... maybe using something like
`#define MATRIX_TYPE`, so it can be checked in other modules.
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/utils.c b/src/utils.c index 4cb09594..dbf4b3bb 100644 --- a/src/utils.c +++ b/src/utils.c @@ -99,29 +99,6 @@ static int android_close(void *cookie); //---------------------------------------------------------------------------------- // Module Functions Definition - Utilities //---------------------------------------------------------------------------------- -rlMatrix rlMatrixFromMatrix(Matrix mat) -{ - rlMatrix result = { - mat.m0, mat.m4, mat.m8, mat.m12, // Matrix first row (4 comat.mponents) - mat.m1, mat.m5, mat.m9, mat.m13, // Matrix second row (4 comat.mponents) - mat.m2, mat.m6, mat.m10, mat.m14, // Matrix third row (4 comat.mponents) - mat.m3, mat.m7, mat.m11, mat.m15, // Matrix fourth row (4 comat.mponents) - }; - - return result; -} - -Matrix rlMatrixToMatrix(rlMatrix mat) -{ - Matrix result = { - mat.m0, mat.m4, mat.m8, mat.m12, // Matrix first row (4 comat.mponents) - mat.m1, mat.m5, mat.m9, mat.m13, // Matrix second row (4 comat.mponents) - mat.m2, mat.m6, mat.m10, mat.m14, // Matrix third row (4 comat.mponents) - mat.m3, mat.m7, mat.m11, mat.m15, // Matrix fourth row (4 comat.mponents) - }; - - return result; -} // Set the current threshold (minimum) log level void SetTraceLogLevel(int logType) { logTypeLevel = logType; } |
