summaryrefslogtreecommitdiff
path: root/include/Render
diff options
context:
space:
mode:
authorAetias <144526980+AetiasHax@users.noreply.github.com>2025-02-03 23:53:59 +0100
committerGitHub <noreply@github.com>2025-02-03 23:53:59 +0100
commit66fa3f0623820bc4fb099289a398453cd28e4ed9 (patch)
tree49de846e0516c9490ea31fd14a867cc14253f7e4 /include/Render
parent48bbd8bb7f008ac913cabb6f7faf4a47ad86878b (diff)
parent2bd1bbd10b1ba5a595372a3313e80e4274a4e912 (diff)
Merge pull request #59 from AetiasHax/ghidra-symbols
Import documentation from Ghidra server
Diffstat (limited to 'include/Render')
-rw-r--r--include/Render/FadeControl.hpp30
-rw-r--r--include/Render/FadeController.hpp33
-rw-r--r--include/Render/ModelRender.hpp11
3 files changed, 73 insertions, 1 deletions
diff --git a/include/Render/FadeControl.hpp b/include/Render/FadeControl.hpp
index 805cbcb7..8e9697ef 100644
--- a/include/Render/FadeControl.hpp
+++ b/include/Render/FadeControl.hpp
@@ -1,3 +1,31 @@
#pragma once
-struct FadeControl;
+#include "global.h"
+#include "types.h"
+
+struct FadeControl {
+ /* 00 */ unk32 mState;
+ /* 04 */ unk32 mUnk_04;
+ /* 08 */ s32 mCurrentBright;
+ /* 0c */ s32 mBrightA;
+ /* 10 */ s32 mBrightB;
+ /* 14 */ unk16 mCurrentFadeLength;
+ /* 16 */ unk16 mUnk_16;
+ /* 18 */ u16 mUnk_18;
+ /* 1a */ u16 mFadeLength;
+ /* 1c */ unk32 mFadeTimer;
+ /* 20 */ bool mUnk_20;
+ /* 20 */ bool mUnk_21;
+ /* 20 */ bool mUnk_22;
+ /* 23 */ unk8 mUnk_23;
+ /* 24 */
+
+ void Register();
+ void Unregister();
+ FadeControl();
+ void func_0202aba8(s32 fadeLength, unk32 param2, unk32 newState);
+ bool func_0202abdc(s32 fadeLength, unk32 param2);
+ bool func_0202abf4(s32 fadeLength, unk32 param2);
+ bool func_0202ac0c(s32 currentFadeLength, u16 param2, s32 fadeLength, unk32 param4);
+ void UpdateFade(s32 speed);
+};
diff --git a/include/Render/FadeController.hpp b/include/Render/FadeController.hpp
new file mode 100644
index 00000000..59a17e48
--- /dev/null
+++ b/include/Render/FadeController.hpp
@@ -0,0 +1,33 @@
+#pragma once
+
+#include "global.h"
+#include "types.h"
+
+#include "Render/FadeControl.hpp"
+
+#define FADE_CONTROL_COUNT 16
+
+struct FadeControlEntry {
+ /* 0 */ FadeControl *mControl;
+ /* 4 */ unk32 mUnk_4;
+ /* 8 */ unk32 mUnk_8;
+ /* c */
+};
+
+struct FadeController {
+ /* 00 */ s32 mLength;
+ /* 04 */ FadeControl (*mList)[FADE_CONTROL_COUNT];
+ /* 44 */ FadeControl *mCurrent;
+ /* 48 */
+
+ bool Has(FadeControl *control);
+ static bool Contains(FadeControlEntry *needle, s32 length, FadeControl **haystack);
+ bool AddIfAbsent(FadeControl *control, unk32 param2, unk32 param3);
+ static bool Add(FadeControlEntry *entry, s32 maxLength, s32 *length, FadeControl **list, bool allowDuplicates);
+ void RemoveFadeControl(FadeControl *control);
+ static bool Remove(FadeControlEntry *entry, s32 *length, FadeControl **list);
+ bool func_0202d77c(FadeControl *control);
+ bool func_0202d7ac();
+ void ProcessFade(s32 param1);
+ void SetScreenBrightness(s32 param1);
+};
diff --git a/include/Render/ModelRender.hpp b/include/Render/ModelRender.hpp
index e6c26635..a9242578 100644
--- a/include/Render/ModelRender.hpp
+++ b/include/Render/ModelRender.hpp
@@ -3,6 +3,8 @@
#include "global.h"
#include "types.h"
+#include <nds/math.h>
+
#include "System/SysNew.hpp"
class ItemModel;
@@ -37,4 +39,13 @@ public:
/* 38 */ virtual void vfunc_38();
/* 3c */ virtual void vfunc_3c();
/* 40 */
+
+ ModelRender();
+ void *func_ov000_020a9624(s32 param1);
+ void func_ov000_020a98e8(unk32 param1);
+ void func_ov000_020a990c(unk32 param1);
+ void func_ov000_020a9938(unk32 param1);
+ void func_ov000_020a9960(unk32 param1);
+ void func_ov000_020a9998(unk32 param1, unk32 param2);
+ void func_ov000_020a99c0();
};