mirror of
https://github.com/blawar/GLideN64.git
synced 2024-06-25 22:09:35 +00:00
16 lines
391 B
C++
16 lines
391 B
C++
#include "RSP.h"
|
|
#include "3DMath.h"
|
|
|
|
void RSP_LoadMatrix( f32 mtx[4][4], u32 address )
|
|
{
|
|
struct _N64Matrix
|
|
{
|
|
s16 integer[4][4];
|
|
u16 fraction[4][4];
|
|
} *n64Mat = (struct _N64Matrix *)&RDRAM[address];
|
|
|
|
for (u32 i = 0; i < 4; i++)
|
|
for (u32 j = 0; j < 4; j++)
|
|
mtx[i][j] = GetFloatMatrixElement(n64Mat->integer[i][j ^ 1], n64Mat->fraction[i][j ^ 1]);
|
|
}
|