mirror of
https://github.com/zeldaret/tp
synced 2026-05-24 07:11:06 -04:00
981cfe7283
* TRK full match * remove trk asm * ar done * cleanup some dolphin headers * more dolphin cleanup * cleanup / GD fully matched * almost all of GX fully matched * GX / Mtx full matched * most of OS done * pad done * most of VI * remove asm * forgot couple vec funcs * couple JUtility matches
25 lines
643 B
C++
25 lines
643 B
C++
#ifndef JPADRAWINFO_H
|
|
#define JPADRAWINFO_H
|
|
|
|
#include "dolphin/mtx.h"
|
|
|
|
class JPADrawInfo {
|
|
public:
|
|
JPADrawInfo(Mtx param_0, f32 fovY, f32 aspect) {
|
|
MTXCopy(param_0, mCamMtx);
|
|
C_MTXLightPerspective(mPrjMtx, fovY, aspect, 0.5f, -0.5f, 0.5f, 0.5f);
|
|
}
|
|
|
|
JPADrawInfo(Mtx param_0, f32 top, f32 bottom, f32 left, f32 right) {
|
|
MTXCopy(param_0, mCamMtx);
|
|
C_MTXLightOrtho(mPrjMtx, top, bottom, left, right, 0.5f, 0.5f, 0.5f, 0.5f);
|
|
}
|
|
|
|
Mtx mCamMtx;
|
|
Mtx mPrjMtx;
|
|
|
|
void getCamMtx(Mtx* dst) const { MTXCopy(mCamMtx, *dst); }
|
|
void getPrjMtx(Mtx* dst) const { MTXCopy(mPrjMtx, *dst); }
|
|
};
|
|
|
|
#endif |