d_menu_calibration done / J3DDrawBuffer done / more d_drawlist wip (#312)

* d_drawlist work / finish J3DDrawBuffer

* d_menu_calibration done

* remove asm
This commit is contained in:
TakaRikka
2023-03-28 04:11:41 -07:00
committed by GitHub
parent 721880831e
commit 92b88e83e8
52 changed files with 1057 additions and 2682 deletions
+3
View File
@@ -2,6 +2,9 @@
#define C_BG_S_CHK_H
#include "dolphin/types.h"
#include "dolphin/mtx/vec.h"
struct cBgD_Vtx_t : public Vec {};
class cBgS_GrpPassChk {
public:
+15
View File
@@ -71,6 +71,21 @@ inline T cLib_minMaxLimit(T val, T min, T max) {
return (T)ret;
}
template <typename T>
inline T cLib_maxLimit(T val, T max) {
T ret;
T var_r30;
if (val > max) {
var_r30 = max;
} else {
var_r30 = val;
}
ret = var_r30;
return (T)ret;
}
template <typename T>
T cLib_calcTimer(T* val);
+1
View File
@@ -26,6 +26,7 @@ public:
f32 getPlaneFunc(const Vec* pPoint) const { return mD + PSVECDotProduct(&mNormal, pPoint); }
const cXyz& GetNP() const { return mNormal; }
const cXyz& i_GetNP() const { return mNormal; }
f32 GetD() const { return mD; }
void SetupFrom3Vtx(const Vec* v1, const Vec* v2, const Vec* v3) {
cM3d_CalcPla(v1, v2, v3, &mNormal, &mD);