mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Cleanup, and documenting (#583)
* Some amount of documenting in printf.c * Formatter, and do some mild cleanup and documentation in menu.c * Fix gSaveMenuObjectIndices * Use ObjectTransform in MenuAsset as it's what's being passed to cam_push_model_mtx * Fix warnings and format * Cleanup some objects.c code and it's usage of casting. * Add Object to Object_64 * Much better score for func_8000B750 * Match func_8000B750 * Update score * Do some naming * Sorry one more better documenting!
This commit is contained in:
+3
-3
@@ -59,11 +59,11 @@ Vp gViewportStack[20] = {
|
||||
};
|
||||
|
||||
ObjectTransform D_800DD288 = {
|
||||
{ { { 0, 0, 0 } } }, 0, 1.0f, 0.0f, 0.0f, -281.0f,
|
||||
{ { { 0, 0, 0 } } }, { 0 }, 1.0f, 0.0f, 0.0f, -281.0f,
|
||||
};
|
||||
|
||||
ObjectTransform D_800DD2A0 = {
|
||||
{ { { 0, 0, 0 } } }, 0, 1.0f, 0.0f, 0.0f, 0.0f,
|
||||
{ { { 0, 0, 0 } } }, { 0 }, 1.0f, 0.0f, 0.0f, 0.0f,
|
||||
};
|
||||
|
||||
Matrix gOrthoMatrixF = {
|
||||
@@ -950,7 +950,7 @@ void set_ortho_matrix_view(Gfx **dList, MatrixS **mtx) {
|
||||
void func_8006807C(Gfx **dList, MatrixS **mtx) {
|
||||
object_inverse_transform_to_matrix(gCurrentModelMatrixF, &D_800DD288);
|
||||
f32_matrix_mult(&gCurrentModelMatrixF, &gPerspectiveMatrixF, &gViewMatrixF);
|
||||
object_inverse_transform_to_matrix((float (*)[4]) gModelMatrixF[0], &D_800DD2A0);
|
||||
object_inverse_transform_to_matrix((float(*)[4]) gModelMatrixF[0], &D_800DD2A0);
|
||||
f32_matrix_mult(gModelMatrixF[0], &gViewMatrixF, &gCurrentModelMatrixF);
|
||||
f32_matrix_to_s16_matrix(&gCurrentModelMatrixF, *mtx);
|
||||
gSPMatrixDKR((*dList)++, OS_K0_TO_PHYSICAL((*mtx)++), G_MTX_DKR_INDEX_0);
|
||||
|
||||
Reference in New Issue
Block a user