modelRender.c documentation
This commit is contained in:
@@ -1357,9 +1357,9 @@ void gcpausemenu_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx) {
|
||||
func_8033A45C(var_s0_2 + 1, 0);
|
||||
}
|
||||
func_8033A45C(i, 1);
|
||||
set_model_render_mode(0);
|
||||
modelRender_setDepthMode(MODEL_RENDER_DEPTH_NONE);
|
||||
func_8033A410(D_80383010.sns_alpha);
|
||||
func_803391A4(gfx, mtx, &sp98, &sp8C, 0.8f, &sp80, D_80383010.sns_egg_model);
|
||||
modelRender_draw(gfx, mtx, &sp98, &sp8C, 0.8f, &sp80, D_80383010.sns_egg_model);
|
||||
func_8024E2FC();
|
||||
func_8024C904(gfx, mtx);
|
||||
}
|
||||
@@ -1398,9 +1398,9 @@ void gcpausemenu_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx) {
|
||||
sp80[0] = 0.0f;
|
||||
sp80[1] = 120.0f;
|
||||
sp80[2] = 0.0f;
|
||||
set_model_render_mode(0);
|
||||
modelRender_setDepthMode(MODEL_RENDER_DEPTH_NONE);
|
||||
func_8033A410(D_80383010.sns_alpha);
|
||||
func_803391A4(gfx, mtx, sp98, sp8C, 0.8f, sp80, D_80383010.ice_key_model);
|
||||
modelRender_draw(gfx, mtx, sp98, sp8C, 0.8f, sp80, D_80383010.ice_key_model);
|
||||
func_8024E2FC();
|
||||
func_8024C904(gfx, mtx);
|
||||
}
|
||||
|
@@ -85,7 +85,7 @@ void sky_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){
|
||||
rotation[0] = 0.0f;
|
||||
rotation[1] = gcSky.sky_info->sky_list[i].rotation_speed * gcSky.timer;
|
||||
rotation[2] = 0.0f;
|
||||
func_803391A4(gfx, mtx, position, rotation, gcSky.sky_info->sky_list[i].scale, NULL, iAsset);
|
||||
modelRender_draw(gfx, mtx, position, rotation, gcSky.sky_info->sky_list[i].scale, NULL, iAsset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -223,10 +223,10 @@ void gctransition_draw(Gfx **gdl, Mtx **mptr, Vtx **vptr){
|
||||
gDPSetTextureFilter((*gdl)++, G_TF_POINT);
|
||||
gDPSetColorDither((*gdl)++, G_CD_DISABLE);
|
||||
func_8028781C(D_80382430.animctrl, sp58, 1);
|
||||
set_model_render_mode(1);
|
||||
modelRender_setDepthMode(MODEL_RENDER_DEPTH_FULL);
|
||||
}
|
||||
if(D_80382430.unk8 == 1 || D_80382430.unk8 == 6){
|
||||
func_803391A4(gdl, mptr, sp58, sp68, 1.0f, 0, D_80382430.unkC);
|
||||
modelRender_draw(gdl, mptr, sp58, sp68, 1.0f, 0, D_80382430.unkC);
|
||||
if(D_80382430.animctrl != NULL){
|
||||
gDPSetTextureFilter((*gdl)++, G_TF_BILERP);
|
||||
gDPSetColorDither((*gdl)++, G_CD_MAGICSQ);
|
||||
@@ -244,7 +244,7 @@ void gctransition_draw(Gfx **gdl, Mtx **mptr, Vtx **vptr){
|
||||
sp68[2] = D_80382430.rotation - 90.0f*sp64;
|
||||
tmp = sp64*D_80382430.unk4->unk10 + 0.1;
|
||||
}
|
||||
func_803391A4(gdl, mptr, sp58, sp68, tmp, 0, D_80382430.unkC);
|
||||
modelRender_draw(gdl, mptr, sp58, sp68, tmp, 0, D_80382430.unkC);
|
||||
}
|
||||
else if(D_80382430.unk8 == 5){//L8030B9EC
|
||||
switch (D_80382430.unk4->uid)
|
||||
@@ -262,10 +262,10 @@ void gctransition_draw(Gfx **gdl, Mtx **mptr, Vtx **vptr){
|
||||
break;
|
||||
}
|
||||
if(!(D_80382430.unk1C < 3) || D_80382430.unk4->uid != 0x11){
|
||||
func_803391A4(gdl, mptr, sp58, sp68, tmp, 0, D_80382430.unkC);
|
||||
modelRender_draw(gdl, mptr, sp58, sp68, tmp, 0, D_80382430.unkC);
|
||||
}
|
||||
else{
|
||||
func_80338390();
|
||||
modelRender_reset();
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -841,11 +841,11 @@ void func_803163A8(gczoombox_t *this, Gfx **gfx, Mtx **mtx) {
|
||||
sp38[0] = 0.0f; sp38[1] = 0.0f; sp38[2] = 0.0f;
|
||||
sp44[0] = 0.0f; sp44[1] = 0.0f; sp44[2] = 0.0f;
|
||||
func_8033A308(sp44);
|
||||
set_model_render_mode(0);
|
||||
modelRender_setDepthMode(MODEL_RENDER_DEPTH_NONE);
|
||||
if (this->anim_ctrl != NULL) {
|
||||
func_8028781C(this->anim_ctrl, sp50, 1);
|
||||
}
|
||||
func_803391A4(gfx, mtx, sp50, sp5C, this->unk198 * sp34, &sp38, this->unkF0);
|
||||
modelRender_draw(gfx, mtx, sp50, sp5C, this->unk198 * sp34, &sp38, this->unkF0);
|
||||
}
|
||||
|
||||
void func_803164B0(gczoombox_t *this, Gfx **gfx, Mtx **mtx, s32 arg3, s32 arg4, s32 arg5, f32 arg6) {
|
||||
@@ -874,7 +874,7 @@ void func_803164B0(gczoombox_t *this, Gfx **gfx, Mtx **mtx, s32 arg3, s32 arg4,
|
||||
mlMtxScale_xyz(temp_f12, temp_f12, 1.0f);
|
||||
mlMtxApply(*mtx);
|
||||
gSPMatrix((*gfx)++, (*mtx)++, G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
set_model_render_mode(0);
|
||||
modelRender_setDepthMode(MODEL_RENDER_DEPTH_NONE);
|
||||
func_80344090(arg5, this->unk186, gfx);
|
||||
func_8033687C(gfx);
|
||||
func_8024C904(gfx, mtx);
|
||||
|
Reference in New Issue
Block a user