port: make matrices work with GBI_FLOATS

add GBI_FLOATS=1 to DEFINES to enable it

not enabling by default yet because not sure if it'll break anything
This commit is contained in:
fgsfds committed 2023-08-26 13:49:23 +02:00
1 parent 85e914c129
commit 2b27c2dc6a
3 files changed
+14 -1

No files matched your search

+5
View File
@@ -1049,7 +1049,12 @@ typedef struct {
* First 8 words are integer portion of the 4x4 matrix
* Last 8 words are the fraction portion of the 4x4 matrix
*/
#ifdef GBI_FLOATS
// 4x4 float matrix
typedef float Mtx_t[4][4];
#else
typedef long Mtx_t[4][4];
#endif
typedef union {
Mtx_t m;