diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2023-07-07 18:06:12 +0300 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2023-07-07 18:07:58 +0300 |
| commit | a368ff7a6dcfb31d6ddb888fc8423c25013b9610 (patch) | |
| tree | e0a16a200e20e8795b5acce89d6caf005830e182 /include | |
| parent | c59ac1f2e9593aaf31a3394777a122e5678c963b (diff) | |
Work on m_Do_graphic
Diffstat (limited to 'include')
| -rw-r--r-- | include/d/kankyo/d_kankyo.h | 2 | ||||
| -rw-r--r-- | include/f_op/f_op_camera_mng.h | 4 | ||||
| -rw-r--r-- | include/m_Do/m_Do_graphic.h | 9 |
3 files changed, 14 insertions, 1 deletions
diff --git a/include/d/kankyo/d_kankyo.h b/include/d/kankyo/d_kankyo.h index a1655a0773..24f7e67cb0 100644 --- a/include/d/kankyo/d_kankyo.h +++ b/include/d/kankyo/d_kankyo.h @@ -525,7 +525,7 @@ public: /* 0x12F4 */ dKy_color_data_struct* mResColorDataTbl; /* 0x12F8 */ s8 mFogDensity; /* 0x12F9 */ u8 field_0x12f9; - /* 0x12FA */ u8 field_0x12fa; + /* 0x12FA */ u8 mIsBlure; /* 0x12FB */ u8 field_0x12fb; /* 0x12FC */ s8 field_0x12fc; /* 0x12FD */ u8 mDarktimeWeek; diff --git a/include/f_op/f_op_camera_mng.h b/include/f_op/f_op_camera_mng.h index d022417bad..37ee8dfcbe 100644 --- a/include/f_op/f_op_camera_mng.h +++ b/include/f_op/f_op_camera_mng.h @@ -62,6 +62,10 @@ inline s16 fopCamM_GetAngleY(camera_class* i_camera) { return i_camera->mAngle.y; } +inline f32 fopCamM_GetFovy(camera_class* i_camera) { + return i_camera->mFovy; +} + u32 fopCamM_Create(int i_cameraIdx, s16 pProcName, void* param_3); void fopCamM_Management(void); u32 fopCamM_GetParam(camera_class* pCamera); diff --git a/include/m_Do/m_Do_graphic.h b/include/m_Do/m_Do_graphic.h index 1c24974dc5..d6884266fa 100644 --- a/include/m_Do/m_Do_graphic.h +++ b/include/m_Do/m_Do_graphic.h @@ -62,7 +62,11 @@ public: static void offFade() { mFade = 0; } static u8 isFade() { return mFade; } static void offBlure() { mBlureFlag = false; } + static bool isBlure() { return mBlureFlag; } + static u8 getBlureRate() { return mBlureRate; } + static MtxP getBlureMtx() { return mBlureMtx; } static void offAutoForcus() { data_80450BE7 = 0; } + static bool isAutoForcus() { return data_80450BE7; } static void setTickRate(u32 rate) { JFWDisplay::getManager()->setTickRate(rate); } static void waitBlanking(int wait) { JFWDisplay::getManager()->waitBlanking(wait); } static f32 getWidthF() { return 608.0f; } @@ -81,12 +85,16 @@ public: static ResTIMG* getFrameBufferTimg() { return mFrameBufferTimg; } static ResTIMG* getZbufferTimg() { return mZbufferTimg; } static void* getFrameBufferTex() { return mFrameBufferTex; } + static void* getZbufferTex() { return mZbufferTex; } static void setFadeRate(f32 rate) { mFadeRate = rate; } static f32 getFadeRate() { return mFadeRate; } static bloom_c* getBloom() { return &m_bloom; } static GXColor& getFadeColor() { return mFadeColor; } static GXColor& getBackColor() { return mBackColor; } static void endRender() { JFWDisplay::getManager()->endRender(); } + static GXTexObj* getZbufferTexObj() { return &mZbufferTexObj; } + static GXTexObj* getFrameBufferTexObj() { return &mFrameBufferTexObj; } + static f32 getInvScale() { return 1.0f; } static GXTexObj mFrameBufferTexObj; static GXTexObj mZbufferTexObj; @@ -102,6 +110,7 @@ public: static f32 mFadeRate; static f32 mFadeSpeed; static bool mBlureFlag; + static u8 mBlureRate; static u8 mFade; }; |
