identified/labeled camera functions

This commit is contained in:
Banjo Kazooie
2023-03-10 21:52:35 -06:00
parent 13728811aa
commit 7f3dd5aa12
164 changed files with 1583 additions and 1522 deletions

View File

@@ -356,8 +356,8 @@ void gcparade_init(void) {
var_s2 = FALSE;
D_803830F0.unk5 = 0;
if(D_803830F0.parade_element->exit >= 0) {
func_802BBC58(1);
set_camera_to_node(D_803830F0.parade_element->exit);
camera_setType(1);
ncStaticCamera_setToNode(D_803830F0.parade_element->exit);
if (D_803830F0.parade_element->unk8 > 0) {
temp_v0 = func_80304FC4(&D_8036DDAC, &D_80383100, 0x14);
for(var_s0 = 0;(var_s0 < temp_v0) && !var_s2; var_s0++ ){
@@ -369,7 +369,7 @@ void gcparade_init(void) {
}
}
if (!var_s2) {
func_802BAEF4(sp40);
ncStaticCamera_getPosition(sp40);
func_8028F85C(sp40);
}
}

View File

@@ -1218,7 +1218,7 @@ void __gcpausemenu_drawSprite(Gfx** gdl, Mtx** mptr, Vtx** vptr, BKSprite* sprit
func_80338338(0xFF, 0xFF, 0xFF);
func_803382FC(a);
func_8033837C(0);
func_8024C5CC(sp50);
viewport_getPosition(sp50);
sp34 = func_8024DE1C(x, y, sp5C, sp44);
mlMtxIdent(); //matrix_stack_identity
@@ -1337,9 +1337,9 @@ void gcpausemenu_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx) {
sp8C[0] = 0.0f;
sp8C[1] = 0.0f;
sp8C[2] = 0.0f;
func_8024CD88(sp98);
func_8024CE18(sp8C);
func_8024CFD4();
viewport_setPosition(sp98);
viewport_setRotation(sp8C);
viewport_update();
func_8024C904(gfx, mtx);
sp98[0] = 0.0f;
sp98[1] = 0.0f;
@@ -1382,9 +1382,9 @@ void gcpausemenu_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx) {
sp8C[1] = 0.0f;
sp8C[2] = 0.0f;
func_8024CD88(sp98);
func_8024CE18(sp8C);
func_8024CFD4();
viewport_setPosition(sp98);
viewport_setRotation(sp8C);
viewport_update();
func_8024C904(gfx, mtx);
sp98[0] = 0.0f;

View File

@@ -78,7 +78,7 @@ void sky_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){
if(gcSky.model_bins[0]){
func_80254084(gfx, 0, 0, (s32)(f32) framebuffer_width, (s32)(f32)framebuffer_height,0, 0, 0); //fill screen with black
func_8024C904(gfx, mtx);
func_8024C5CC(position);
viewport_getPosition(position);
for(i = 0; i < 3; i++){
iAsset = gcSky.model_bins[i];
if(iAsset){

View File

@@ -211,9 +211,9 @@ void gctransition_draw(Gfx **gdl, Mtx **mptr, Vtx **vptr){
sp68[1] = 0.0f;
sp68[2] = 0.0f;
func_8024CE60(D_8036C440, D_8036C444);
func_8024CD88(sp74); //camera_setPosition
func_8024CE18(sp68); //camera_setRotation
func_8024CFD4(); //camera_updateNormal
viewport_setPosition(sp74); //viewport_getPosition
viewport_setRotation(sp68); //viewport_getRotation
viewport_update(); //camera_updateNormal
func_8024C904(gdl, mptr);
sp58[0] = 0.0f;