My game engine uses a one-dimensional array to store matrices (e.g. float m[16] or float m[9]). I was just looking at leveraging the matrix functions that ship with KOS to improve performance and I noted that matrix_t is a two-dimensional array.
I'm wondering if I'm still able to use the matrix functions (by casting to matrix_t*) or will this cause incorrect results?
Inline asm matrix functions (mat_trans_single3 etc.)
-
- Insane DCEmu
- Posts: 145
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Tue May 02, 2017 3:11 pm
- Has thanked: 3 times
- Been thanked: 34 times