mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-09 04:30:49 -04:00
f_op_actor_mng split & started decomp (#112)
* fop-actor-mng * rodata * more actor mng progress * actor mng progress * format * cleanup * fix Mtx function signatures * PR suggestion Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#ifndef JSYSTEM_J3DUCLIPPER_H_
|
||||
#define JSYSTEM_J3DUCLIPPER_H_
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include "mtx_vec.h"
|
||||
|
||||
class J3DUClipper {
|
||||
private:
|
||||
void* vtable;
|
||||
Vec _4;
|
||||
Vec _10;
|
||||
Vec _1C;
|
||||
Vec _28;
|
||||
u8 _34[0x4C - 0x34];
|
||||
f32 mFovY;
|
||||
f32 mAspect;
|
||||
f32 mNear;
|
||||
f32 mFar;
|
||||
|
||||
public:
|
||||
u32 clip(const Mtx, Vec*, f32) const;
|
||||
u32 clip(const Mtx, Vec*, Vec*) const;
|
||||
};
|
||||
|
||||
extern J3DUClipper lbl_803DD8E4;
|
||||
|
||||
extern "C" {
|
||||
u32 J3DUClipper_NS_clip(const J3DUClipper*, const Mtx, Vec*, f32);
|
||||
u32 J3DUClipper_NS_clip_X1_(const J3DUClipper*, const Mtx, Vec*, Vec*);
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,21 @@
|
||||
#ifndef JSYSTEM_JMATH_H_
|
||||
#define JSYSTEM_JMATH_H_
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct sinCosTableEntry {
|
||||
f32 sin;
|
||||
f32 cos;
|
||||
};
|
||||
|
||||
extern sinCosTableEntry lbl_80439A20[0x2000]; // JMath::JMath::sincosTable_
|
||||
|
||||
inline f32 cM_scos(s16 s) {
|
||||
return lbl_80439A20[static_cast<u16>(s) >> 3].cos;
|
||||
}
|
||||
|
||||
inline f32 cM_ssin(s16 s) {
|
||||
return lbl_80439A20[static_cast<u16>(s) >> 3].sin;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user