mirror of
https://github.com/zeldaret/tp
synced 2026-05-24 15:21:08 -04:00
a61e3491f7
* initial freezard actor struct + setActionMode OK * daE_FZ_Draw * setReflectAngle * mBoundSoundset * daE_FZ_Execute & execute * demoDelete * daE_FZ_Delete & _delete * CreateHeap * useHeapInit * cc_set * mtx_set * action WIP * way_gake_check * executeRollMove * executeMove * draw WIP * executeDamage * checkpoint * create * checkpoint * daE_FZ_c::executeWait * checkpoint * daE_FZ_c::damage_check almost done * rm asm * rm headers * setup_profile WIP + doxygen update * fix merge issues * docs fix? * fix2 * doxygen updates * setup g_profile_E_FZ, profile setup script WIP * update github actions * update progress.md
29 lines
685 B
C++
29 lines
685 B
C++
#ifndef JPADRAWINFO_H
|
|
#define JPADRAWINFO_H
|
|
|
|
#include "dolphin/mtx.h"
|
|
|
|
/**
|
|
* @ingroup jsystem-jparticle
|
|
*
|
|
*/
|
|
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 |