mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
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:
1 parent
85e914c129
commit
2b27c2dc6a
3 files changed
+14
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user