summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDerek Hensley <hensley.derek58@gmail.com>2024-02-15 09:07:20 -0800
committerGitHub <noreply@github.com>2024-02-15 10:07:20 -0700
commitc37305bb931ed27851978e394aed19ef395b2bee (patch)
tree9cdd3977d21885befed1508e1b1413c24a8c7de5 /include
parenta60184c64bd669bd31eeafd391c15ffd4a50741c (diff)
m_rcp OK (#145)
* ignore .venv * Start m_rcp * gfx_set_fog_position * gfx_set_fog_nosync * Data + func_800BD3EC_jp * func_800BD428_jp * func_800BD448_jp * func_800BD470_jp * func_800BD498_jp * func_800BD4C0_jp * _texture_z_light_fog_prim * _texture_z_light_fog_prim_shadow * func_800BD538_jp * _texture_z_light_fog_prim_xlu * _texture_z_light_fog_prim_light * _texture_z_light_fog_prim_npc * texture_z_light_fog_prim_bb_pal_opa * texture_z_light_fog_prim_bb_pal_xlu * texture_z_fog_lod_alpha_shadow * func_800BD6F8_jp * gfx_rect_moji * rect_moji * polygon_z_light_prim * gfx_softsprite_prim_xlu * gfx_tex_scroll2 * gfx_two_tex_scroll * func_800BD9D8_jp * func_800BD9FC_jp * tex_scroll2 * two_tex_scroll * DisplayList_initialize + bss * fade_rgba8888_draw * texture_z_light_prim_xlu_disp rename * func_800BE030_jp * fade_black_draw * func_800BE094_jp * func_800BE0E4_jp * gfx_gDPFillRectangleF * func_800BE184_jp * gfx_gSPTextureRectangle1 * func_800BE27C_jp * gfx_gSPScisTextureRectangle1 * func_800BE4F8_jp
Diffstat (limited to 'include')
-rw-r--r--include/6B3DC0.h4
-rw-r--r--include/code_variables.h17
-rw-r--r--include/gfxalloc.h2
-rw-r--r--include/m_rcp.h76
4 files changed, 43 insertions, 56 deletions
diff --git a/include/6B3DC0.h b/include/6B3DC0.h
index 2d8e90a..04d1df6 100644
--- a/include/6B3DC0.h
+++ b/include/6B3DC0.h
@@ -3,6 +3,8 @@
#include "ultra64.h"
+struct GraphicsContext;
+
// void func_80090120_jp();
// void func_80090130_jp();
// void func_80090140_jp();
@@ -29,7 +31,7 @@
// void func_80090E98_jp();
// void mFont_SetMatrix();
// void mFont_UnSetMatrix();
-// void func_80091074_jp();
+void func_80091074_jp(struct GraphicsContext* gfxCtx);
// void func_80091094_jp();
// void func_80091104_jp();
// void func_8009113C_jp();
diff --git a/include/code_variables.h b/include/code_variables.h
index e30a813..c9fde32 100644
--- a/include/code_variables.h
+++ b/include/code_variables.h
@@ -691,21 +691,6 @@ extern s32 CanLookGokiCount;
// extern UNK_TYPE D_8010C970_jp;
// extern UNK_TYPE D_8010C9D0_jp;
// extern UNK_TYPE D_8010CB20_jp;
-// extern UNK_TYPE D_8010CB30_jp;
-// extern UNK_TYPE D_8010CB90_jp;
-// extern UNK_TYPE D_8010CBC0_jp;
-// extern UNK_TYPE D_8010CBF0_jp;
-// extern UNK_TYPE D_8010CC20_jp;
-// extern UNK_TYPE D_8010CC50_jp;
-// extern UNK_TYPE D_8010CC80_jp;
-// extern UNK_TYPE D_8010CCB0_jp;
-// extern UNK_TYPE D_8010CD10_jp;
-// extern UNK_TYPE D_8010CD70_jp;
-// extern UNK_TYPE D_8010CDA0_jp;
-// extern UNK_TYPE D_8010CDD0_jp;
-// extern UNK_TYPE D_8010CE00_jp;
-// extern UNK_TYPE D_8010CE60_jp;
-// extern UNK_TYPE D_8010CE90_jp;
// extern UNK_TYPE D_8010CEC0_jp;
// extern UNK_TYPE D_8010D274_jp;
// extern UNK_TYPE D_8010D28C_jp;
@@ -1912,7 +1897,7 @@ extern u8 D_80113854_jp;
// extern UNK_TYPE B_80144624_jp;
// extern UNK_TYPE B_80144628_jp;
// extern UNK_TYPE B_8014462C_jp;
-// extern UNK_TYPE B_80144650_jp;
+
// extern UNK_TYPE B_80144660_jp;
// extern UNK_TYPE B_80144690_jp;
diff --git a/include/gfxalloc.h b/include/gfxalloc.h
index 81177a9..3fb27df 100644
--- a/include/gfxalloc.h
+++ b/include/gfxalloc.h
@@ -5,6 +5,6 @@
Gfx* gfxopen(Gfx* gfxHead);
Gfx* gfxclose(Gfx* gfxHead, Gfx* gfx);
-// void gfxalloc();
+void* gfxalloc(Gfx** gfxP, size_t size);
#endif
diff --git a/include/m_rcp.h b/include/m_rcp.h
index 93dd903..d34e6e4 100644
--- a/include/m_rcp.h
+++ b/include/m_rcp.h
@@ -6,46 +6,46 @@
struct GraphicsContext;
struct Game_Play;
-// void func_800BD2B0_jp();
-Gfx* gfx_set_fog_nosync(Gfx* gfx, u8 arg1, u8 arg2, u8 arg3, s32 arg4, s16 arg5, s16 arg6);
-// void func_800BD3EC_jp();
-// void func_800BD428_jp();
-// void func_800BD448_jp();
-// void func_800BD470_jp();
-// void func_800BD498_jp();
-// void func_800BD4C0_jp();
+extern Gfx RSP_RDP_clear_data[];
+
+Gfx* gfx_set_fog_nosync(Gfx* gfx, s32 r, s32 g, s32 b, s32 a, s32 near, s32 far);
+Gfx* func_800BD428_jp(Gfx* gfx, s32 i);
+Gfx* func_800BD448_jp(Gfx* gfx);
+void func_800BD470_jp(struct GraphicsContext* gfxCtx);
+void func_800BD498_jp(struct GraphicsContext* gfxCtx);
+void texture_z_light_prim_xlu_disp(struct GraphicsContext* gfxCtx);
void _texture_z_light_fog_prim(struct GraphicsContext *gfxCtx);
-void _texture_z_light_fog_prim_shadow(struct GraphicsContext*);
-// void func_800BD538_jp();
-void _texture_z_light_fog_prim_xlu(struct GraphicsContext *gfxCtx);
-void func_800BD5C0_jp(struct GraphicsContext* gfxCtx);
+void _texture_z_light_fog_prim_shadow(struct GraphicsContext* gfxCtx);
+void _texture_z_light_fog_prim_npc_shadow(struct GraphicsContext* gfxCtx);
+void _texture_z_light_fog_prim_xlu(struct GraphicsContext* gfxCtx);
+void _texture_z_light_fog_prim_light(struct GraphicsContext* gfxCtx);
void _texture_z_light_fog_prim_npc(struct GraphicsContext *gfxCtx);
-// void func_800BD648_jp();
-// void func_800BD68C_jp();
-// void func_800BD6D0_jp();
-// void func_800BD6F8_jp();
-Gfx* func_800BD720_jp(Gfx* gfx);
-void rect_moji(struct GraphicsContext*);
-// void func_800BD770_jp();
-// void func_800BD798_jp();
-Gfx* func_800BD7C0_jp(Gfx* gfx);
-// void func_800BD804_jp();
-// void func_800BD8A8_jp();
-// void func_800BD9D8_jp();
-// void func_800BD9FC_jp();
+Gfx* texture_z_light_fog_prim_bb_pal_opa(Gfx* gfx);
+Gfx* texture_z_light_fog_prim_bb_pal_xlu(Gfx* gfx);
+Gfx* texture_z_fog_lod_alpha_shadow(Gfx* gfx);
+void func_800BD6F8_jp(struct GraphicsContext* gfxCtx);
+Gfx* gfx_rect_moji(Gfx* gfx);
+void rect_moji(struct GraphicsContext* gfxCtx);
+void polygon_z_light_prim(struct GraphicsContext* gfxCtx);
+void softsprite_prim(struct GraphicsContext* gfxCtx);
+Gfx* gfx_softsprite_prim_xlu(Gfx* gfx);
+Gfx* gfx_tex_scroll2(Gfx** gfxP, u32 x, u32 y, s32 width, s32 height);
+Gfx* gfx_two_tex_scroll(Gfx** gfxP, s32 tile1, u32 x1, u32 y1, s32 width1, s32 height1, s32 tile2, u32 x2, u32 y2, s32 width2, s32 height2);
+Gfx* func_800BD9D8_jp(Gfx** gfxP, u32 x, u32 y);
+Gfx* func_800BD9FC_jp(struct GraphicsContext* gfxCtx, u32 x, u32 y);
Gfx* tex_scroll2(struct GraphicsContext* gfxCtx, u32 x, u32 y, s32 width, s32 height);
-extern Gfx* two_tex_scroll(struct GraphicsContext* gfxCtx, s32 tile1, s32 x1, s32 y1, s32 width1, s32 height1, s32 tile2, s32 x2, s32 y2, s32 width2, s32 height2);
-void DisplayList_initialize(struct GraphicsContext* gfxCtx, u8 arg1, u8 arg2, u8 arg3, struct Game_Play* game_play);
-void fade_rgba8888_draw(Gfx** gfx, s32 arg1);
-// void func_800BE030_jp();
-// void fade_black_draw();
-// void func_800BE094_jp();
-// void func_800BE0E4_jp();
-Gfx *func_800BE12C_jp(Gfx *gfx, s32 arg1, s32 arg2, s32 arg3, s32 arg4);
-// void func_800BE184_jp();
-// void func_800BE1D4_jp();
-// void func_800BE27C_jp();
-Gfx* func_800BE320_jp(Gfx*, s32, s32, s32, s32, s32, s32, s32, s32, s32);
-// void func_800BE4F8_jp();
+Gfx* two_tex_scroll(struct GraphicsContext* gfxCtx, s32 tile1, u32 x1, u32 y1, s32 width1, s32 height1, s32 tile2, u32 x2, u32 y2, s32 width2, s32 height2);
+void DisplayList_initialize(struct GraphicsContext* gfxCtx, u8 clearR, u8 clearG, u8 clearB, struct Game_Play* game_play);
+void fade_rgba8888_draw(Gfx** gfxP, u32 color);
+void func_800BE030_jp(Gfx** gfxP, u32 r, u32 g, u32 b, u32 a);
+void fade_black_draw(Gfx** gfxP, u32 color);
+Gfx* gfx_gDPFillRectangle1(Gfx* gfx, s32 ulx, s32 uly, s32 lrx, s32 lry);
+void func_800BE0E4_jp(Gfx** gfxP, s32 ulx, s32 uly, s32 lrx, s32 lry);
+Gfx* gfx_gDPFillRectangleF(Gfx* gfx, s32 ulx, s32 uly, s32 lrx, s32 lry);
+void func_800BE184_jp(Gfx** gfxP, s32 ulx, s32 uly, s32 lrx, s32 lry);
+Gfx* gfx_gSPTextureRectangle1(Gfx* gfx, s32 xl, s32 yl, s32 xh, s32 yh, s32 tile, s32 s, s32 t, s32 dsdx, s32 dtdy);
+Gfx* func_800BE27C_jp(Gfx* gfx, s32 xl, s32 yl, s32 xh, s32 yh, s32 tile, s32 s, s32 t);
+Gfx* gfx_gSPScisTextureRectangle1(Gfx* gfx, s32 xl, s32 yl, s32 xh, s32 yh, s32 tile, s32 s, s32 t, s32 dsdx, s32 dtdy);
+Gfx* func_800BE4F8_jp(Gfx* gfx, s32 xl, s32 yl, s32 xh, s32 yh, s32 tile, s32 s, s32 t);
#endif