Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JPADrawInfo.h
Go to the documentation of this file.
1#ifndef JPADRAWINFO_H
2#define JPADRAWINFO_H
3
4#include "dolphin/mtx.h"
5
11public:
12 JPADrawInfo(const Mtx param_0, f32 fovY, f32 aspect) {
13 MTXCopy(param_0, mCamMtx);
14 C_MTXLightPerspective(mPrjMtx, fovY, aspect, 0.5f, -0.5f, 0.5f, 0.5f);
15 }
16
17 JPADrawInfo(const Mtx param_0, f32 top, f32 bottom, f32 left, f32 right) {
18 MTXCopy(param_0, mCamMtx);
19 C_MTXLightOrtho(mPrjMtx, top, bottom, left, right, 0.5f, 0.5f, 0.5f, 0.5f);
20 }
21
24
25 void getCamMtx(Mtx dst) const { MTXCopy(mCamMtx, dst); }
26 void getPrjMtx(Mtx dst) const { MTXCopy(mPrjMtx, dst); }
27
28 void setPrjMtx(const Mtx src) { MTXCopy(src, mPrjMtx); }
29};
30
31#endif
Definition JPADrawInfo.h:10
JPADrawInfo(const Mtx param_0, f32 top, f32 bottom, f32 left, f32 right)
Definition JPADrawInfo.h:17
Mtx mPrjMtx
Definition JPADrawInfo.h:23
JPADrawInfo(const Mtx param_0, f32 fovY, f32 aspect)
Definition JPADrawInfo.h:12
void setPrjMtx(const Mtx src)
Definition JPADrawInfo.h:28
void getCamMtx(Mtx dst) const
Definition JPADrawInfo.h:25
Mtx mCamMtx
Definition JPADrawInfo.h:22
void getPrjMtx(Mtx dst) const
Definition JPADrawInfo.h:26
void C_MTXLightPerspective(Mtx m, f32 fovY, f32 aspect, f32 scaleS, f32 scaleT, f32 transS, f32 transT)
Definition mtx.c:1152
void C_MTXLightOrtho(Mtx m, f32 t, f32 b, f32 l, f32 r, f32 scaleS, f32 scaleT, f32 transS, f32 transT)
Definition mtx.c:1177
f32 Mtx[3][4]
Definition mtx.h:25
const void * src
Definition __os.h:116
float f32
Definition types.h:25