modelRender.c documentation

This commit is contained in:
Banjo Kazooie
2022-12-01 00:21:11 -06:00
parent 0ffe8f35a2
commit b74c76a430
69 changed files with 296 additions and 326 deletions

View File

@@ -3,9 +3,9 @@
#include "variables.h"
#include "prop.h"
#include "core2/modelRender.h"
void func_80335A24(void *, u32, f32, f32);
void set_model_render_mode(u32);
Actor *chvile_draw(ActorMarker*, Gfx **, Mtx **, Vtx **);
void chvile_update(Actor *);
void func_8038BB40(ActorMarker *);
@@ -240,8 +240,8 @@ Actor *chvile_draw(ActorMarker *marker, Gfx **gfx, Mtx** mtx, Vtx **vtx){
) {
func_8034A174(func_80329934(), 5, &sp34);
sp34[1] -= 30.0f;
set_model_render_mode(1);
func_803391A4(gfx, mtx, &sp34, 0, local->unk14, 0, local->unk4);
modelRender_setDepthMode(MODEL_RENDER_DEPTH_FULL);
modelRender_draw(gfx, mtx, &sp34, 0, local->unk14, 0, local->unk4);
}
return this;
}

View File

@@ -118,10 +118,10 @@ Actor *chyumblie_draw(ActorMarker *this, Gfx **gfx, Mtx** mtx, Vtx **vtx){
sp38[1] = thisActor->yaw;
sp38[2] = thisActor->roll;
if(sp40->unk4 && sp40->game_marker){
func_803391A4(gfx, mtx, sp44, sp38, 1.0f, NULL, chvilegame_get_grumblie_model(sp40->game_marker));
modelRender_draw(gfx, mtx, sp44, sp38, 1.0f, NULL, chvilegame_get_grumblie_model(sp40->game_marker));
}
else{
func_803391A4(gfx, mtx, sp44, sp38, 1.0f, NULL, func_80330B1C(this));
modelRender_draw(gfx, mtx, sp44, sp38, 1.0f, NULL, func_80330B1C(this));
}
return thisActor;
}

View File

@@ -118,7 +118,7 @@ void chpinkegg_update(Actor *this){
if(animctrl_isStopped(this->animctrl)){
func_80326310(this);
if(this->alpha_124_19 < 0x60){
this->unk124_9 = 0x2;
this->depth_mode = 0x2;
}
}
break;