Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
m_Do_lib.h
Go to the documentation of this file.
1#ifndef M_DO_M_DO_LIB_H
2#define M_DO_M_DO_LIB_H
3
5
6typedef struct _GXTexObj GXTexObj;
7typedef struct _GXTlutObj GXTlutObj;
8typedef struct Vec Vec;
9struct ResTIMG;
10
11struct mDoLib_clipper {
12 /* 8001528C */ static void setup(f32, f32, f32, f32);
13
14 static void changeFar(f32 far) {
15 mClipper.setFar(far);
16 mClipper.calcViewFrustum();
17 }
18
19 static int clip(const Mtx m, const Vec* param_1, const Vec* param_2) {
20 return mClipper.clip(m, (Vec*)param_1, (Vec*)param_2);
21 }
22
23 static int clip(const Mtx m, Vec param_1, f32 param_2) {
24 return mClipper.clip(m, param_1, param_2);
25 }
26
27 static f32 getFar() { return mSystemFar; }
28 static f32 getFovyRate() { return mFovyRate; }
29
30 static void resetFar() {
31 mClipper.setFar(mSystemFar);
32 mClipper.calcViewFrustum();
33 }
34
36 static f32 mSystemFar;
37 static f32 mFovyRate;
38};
39
40void mDoLib_project(Vec* src, Vec* dst);
43void mDoLib_pos2camera(Vec* src, Vec* dst);
44
45#endif /* M_DO_M_DO_LIB_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
int m
Definition e_atan2.c:62
void mDoLib_project(Vec *src, Vec *dst)
Definition m_Do_lib.cpp:61
void mDoLib_pos2camera(Vec *src, Vec *dst)
Definition m_Do_lib.cpp:118
u8 mDoLib_setResTimgObj(ResTIMG const *res, GXTexObj *o_texObj, u32 tlut_name, GXTlutObj *o_tlutObj)
Definition m_Do_lib.cpp:14
f32 Mtx[3][4]
Definition mtx.h:15
Definition d_a_ep.cpp:151
Image data header.
Definition d_menu_dmap_map.cpp:109
Definition d_a_hozelda.cpp:18
Definition d_a_ep.cpp:147
Definition GXStruct.h:53
Definition d_a_ep.cpp:14
static void resetFar()
Definition m_Do_lib.h:30
static void setup(f32, f32, f32, f32)
Definition m_Do_lib.cpp:47
static f32 mFovyRate
Definition m_Do_lib.h:37
static f32 getFar()
Definition m_Do_lib.h:27
static f32 mSystemFar
Definition d_a_ep.cpp:16
static u8 mClipper[92]
Definition d_a_ep.cpp:15
static f32 getFovyRate()
Definition m_Do_lib.h:28
static int clip(const Mtx m, const Vec *param_1, const Vec *param_2)
Definition m_Do_lib.h:19
static int clip(const Mtx m, Vec param_1, f32 param_2)
Definition m_Do_lib.h:23
static J3DUClipper mClipper
Definition m_Do_lib.h:35
static void changeFar(f32 far)
Definition m_Do_lib.h:14
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
unsigned char u8
Definition types.h:8