viewport - further documentation
This commit is contained in:
@@ -140,7 +140,7 @@ f32 func_8029B33C(void){
|
||||
f32 sp1C[3];
|
||||
|
||||
_player_getPosition(sp1C);
|
||||
return viewport_func_8024DDD8(sp1C, func_8029B2F4());
|
||||
return viewport_adjustAngleToRight(sp1C, func_8029B2F4());
|
||||
}
|
||||
|
||||
s32 func_8029B370(void){
|
||||
|
@@ -142,8 +142,8 @@ bool func_8028AE10(void) {
|
||||
|
||||
_player_getPosition(sp1C);
|
||||
ideal_yaw = yaw_getIdeal();
|
||||
sp2C = viewport_func_8024DDD8(sp1C, 90.0f);
|
||||
sp28 = viewport_func_8024DDD8(sp1C, 270.0f);
|
||||
sp2C = viewport_adjustAngleToRight(sp1C, 90.0f);
|
||||
sp28 = viewport_adjustAngleToRight(sp1C, 270.0f);
|
||||
if (sp28 < sp2C) {
|
||||
return (sp2C < ideal_yaw) || (ideal_yaw < sp28);
|
||||
}
|
||||
|
@@ -191,7 +191,7 @@ void fxcommon3score_draw(enum item_e item_id, void *arg1, Gfx **gfx, Mtx **mtx,
|
||||
a1->value_string[0] = '\0';
|
||||
strIToA(a1->value_string, itemPrint_getValue(item_id));
|
||||
print_bold_spaced(a1->unk30 + a1->unk40, sp40 + a1->unk44, a1->value_string);
|
||||
sp3C = viewport_func_8024DE1C(a1->unk30, sp40, sp5C, sp68);
|
||||
sp3C = viewport_transformCoordinate(a1->unk30, sp40, sp5C, sp68);
|
||||
|
||||
sp44[0] = 0.0f;
|
||||
sp44[1] = a1->unk38;
|
||||
|
@@ -1209,7 +1209,7 @@ void __gcpausemenu_drawSprite(Gfx** gdl, Mtx** mptr, Vtx** vptr, BKSprite* sprit
|
||||
func_8033837C(0);
|
||||
viewport_getPosition_vec3f(sp50);
|
||||
|
||||
sp34 = viewport_func_8024DE1C(x, y, sp5C, sp44);
|
||||
sp34 = viewport_transformCoordinate(x, y, sp5C, sp44);
|
||||
mlMtxIdent(); //matrix_stack_identity
|
||||
sp38[0] = sp5C[0] - sp50[0];
|
||||
sp38[1] = sp5C[1] - sp50[1];
|
||||
|
@@ -822,7 +822,7 @@ void func_803163A8(GcZoombox *this, Gfx **gfx, Mtx **mtx) {
|
||||
f32 sp38[3];
|
||||
f32 sp34;
|
||||
|
||||
sp34 = viewport_func_8024DE1C(this->unk170, this->unk172, sp50, sp5C);
|
||||
sp34 = viewport_transformCoordinate(this->unk170, this->unk172, sp50, sp5C);
|
||||
if (this->unk1A4_24) {
|
||||
sp5C[1] += 180.0f;
|
||||
sp5C[0] -= 2*sp5C[0];
|
||||
|
Reference in New Issue
Block a user