mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-28 16:00:40 -04:00
c9e2a73dda
* typedef for cPhs_Step * make sdk includes consistent * d_menu_quit / d_msg_scrn_explain debug * d_a_obj_testcube mostly done * d_debug_pad mostly done * jstudio tool library headers * some JStudioCameraEditor headers * d_jcam_editor mostly done * try fixing some shield regressions * d_bg_parts mostly done * fix merge errors * debug fix
32 lines
756 B
C++
32 lines
756 B
C++
#ifndef JPADRAWINFO_H
|
|
#define JPADRAWINFO_H
|
|
|
|
#include <dolphin/mtx.h>
|
|
|
|
/**
|
|
* @ingroup jsystem-jparticle
|
|
*
|
|
*/
|
|
class JPADrawInfo {
|
|
public:
|
|
JPADrawInfo(const 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(const 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); }
|
|
|
|
void setPrjMtx(const Mtx src) { MTXCopy(src, mPrjMtx); }
|
|
};
|
|
|
|
#endif
|