mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-05 01:26:17 -04:00
Merge remote-tracking branch 'origin/main' into 26-02-27-pjb-dev-2
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
#include <stdint.h>
|
||||
#include <dolphin/mtx.h>
|
||||
#include "JSystem/J3DGraphBase/J3DTransform.h"
|
||||
|
||||
// translated to C, should be correct, but not tested.
|
||||
|
||||
void J3DPSMtxArrayConcat(Mtx mA, Mtx mB, Mtx mAB, u32 count) {
|
||||
for (uint32_t i = 0; i < count; i++) {
|
||||
const float* b = (const float*)mB[i];
|
||||
float* res = (float*)mAB[i];
|
||||
|
||||
for (int row = 0; row < 3; row++) {
|
||||
float a0 = mA[row][0];
|
||||
float a1 = mA[row][1];
|
||||
float a2 = mA[row][2];
|
||||
float a3 = mA[row][3];
|
||||
|
||||
// Standard Matrix Multiply for 3x4 * 3x4 (with implicit 4th row [0,0,0,1])
|
||||
res[row * 4 + 0] = a0 * b[0] + a1 * b[4] + a2 * b[8];
|
||||
res[row * 4 + 1] = a0 * b[1] + a1 * b[5] + a2 * b[9];
|
||||
res[row * 4 + 2] = a0 * b[2] + a1 * b[6] + a2 * b[10];
|
||||
// The 4th column includes the translation
|
||||
res[row * 4 + 3] = a0 * b[3] + a1 * b[7] + a2 * b[11] + a3;
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
-1
@@ -692,7 +692,10 @@ void DSPSendMailToDSP(u32 mail) {
|
||||
}
|
||||
|
||||
#pragma mark Z2Audio
|
||||
#include <Z2AudioLib/Z2AudioCS.h>
|
||||
class Z2AudioCS {
|
||||
public:
|
||||
void extensionProcess(s32, s32);
|
||||
};
|
||||
void Z2AudioCS::extensionProcess(s32, s32) {
|
||||
puts("Z2AudioMgr::play is a stub");
|
||||
}
|
||||
@@ -1864,3 +1867,9 @@ u32 JHICommBufReader::Header::getReadableSize() const {
|
||||
puts("JHICommBufReader::Header::getReadableSize is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#pragma mark Decomp artifacts
|
||||
void stripFloat(f32) {}
|
||||
void stripDouble(f64) {}
|
||||
int getStripInt() { return 0; }
|
||||
void F(f32*) {}
|
||||
|
||||
Reference in New Issue
Block a user