|
SSBM Decomp
|
#include "camera.h"#include <Runtime/platform.h>#include <melee/ft/forward.h>#include <sysdolphin/baselib/forward.h>#include <math.h>#include <placeholder.h>#include "forward.h"#include "types.h"#include <dolphin/mtx.h>#include <dolphin/pad.h>#include <dolphin/types.h>#include <melee/ft/ftlib.h>#include <melee/gm/gm_unsplit.h>#include <melee/gr/grcastle.h>#include <melee/gr/grcorneria.h>#include <melee/gr/grgarden.h>#include <melee/gr/grhomerun.h>#include <melee/gr/grkinokoroute.h>#include <melee/gr/grlib.h>#include <melee/gr/ground.h>#include <melee/gr/grzebes.h>#include <melee/gr/stage.h>#include <melee/lb/lb_00B0.h>#include <melee/lb/lbrefract.h>#include <melee/lb/lbshadow.h>#include <melee/lb/lbspdisplay.h>#include <melee/lb/lbvector.h>#include <melee/mp/mplib.h>#include <melee/pl/player.h>#include <sysdolphin/baselib/cobj.h>#include <sysdolphin/baselib/controller.h>#include <sysdolphin/baselib/displayfunc.h>#include <sysdolphin/baselib/fog.h>#include <sysdolphin/baselib/gobj.h>#include <sysdolphin/baselib/gobjgxlink.h>#include <sysdolphin/baselib/gobjobject.h>#include <sysdolphin/baselib/gobjplink.h>#include <sysdolphin/baselib/gobjproc.h>#include <sysdolphin/baselib/lobj.h>#include <sysdolphin/baselib/memory.h>#include <sysdolphin/baselib/random.h>#include <sysdolphin/baselib/wobj.h>Data Structures | |
| struct | CameraStaticData |
Variables | |
| static Camera | game_camera |
| The main camera used in game scenes. | |
| CameraDebugMode | cm_80453004 |
| static CameraModeCallbacks | cm_803BCB18 |
| static HSD_WObjDesc | cm_803BCB3C |
| static HSD_WObjDesc | cm_803BCB50 |
| static HSD_CameraDescPerspective | cm_803BCB64 |
| static float | cm_803BCB9C [] = { 0.0f, 1.5f, 1.32f, 1.16f, 1.0f } |
| CameraUnkGlobals | cm_803BCCA0 |
| static Vec3 const | cm_WorldForward = { 0.0f, 0.0f, -1.0f } |
| static Vec3 const | cm_803B73C4 = { 0.0f } |
| static Vec3 const | cm_WorldUp = { 0.0f, 1.0f, 0.0f } |
| static Vec3 const | cm_803B73DC = { 0.0f, 1.0f, 0.0f } |
| CmSubject * | cm_804D6468 |
| HSD_CObj * | cm_804D6464 |
| CmSubject * | cm_804D6460 |
| CmSubject * | cm_804D645C |
| CmSubject * | cm_804D6458 |
| static char | lbl_803BCC70 [0x16] = "rate>0.0F&&rate<=1.0F" |
| static char | lbl_803BCC88 [0x14] = "snapshot! ptr=%08x\n" |
| DATA char | gap_07_803BCC9C_data [4] = "" |
|
static |
|
inlinestatic |
|
inlinestatic |
| void Camera_Init | ( | int | n_subjects | ) |
| void Camera_80028F5C | ( | CmSubject * | subject, |
| CmSubjectState | state ) |
| CmSubject * Camera_80029020 | ( | void | ) |
| CmSubject * Camera_80029044 | ( | int | arg0 | ) |
| void Camera_800290D4 | ( | CmSubject * | subject | ) |
|
inlinestatic |
| void Camera_800293E0 | ( | void | ) |
| void Camera_8002958C | ( | CameraBounds * | bounds, |
| CameraTransformState * | transform ) |
|
inlinestatic |
|
inlinestatic |
| void Camera_80029BC4 | ( | CameraBounds * | bounds, |
| CameraTransformState * | transform ) |
| void Camera_80029C88 | ( | CameraBounds * | unused, |
| CameraTransformState * | transform, | ||
| f32 | arg_scale ) |
| void Camera_80029CF8 | ( | CameraBounds * | bounds, |
| CameraTransformState * | transform ) |
| void Camera_ApplyQuake | ( | CameraBounds * | bounds, |
| CameraTransformState * | state ) |
| void Camera_UpdateQuakes | ( | CameraBounds * | bounds | ) |
|
inlinestatic |
| void Camera_8002A4AC | ( | HSD_GObj * | gobj | ) |
| void Camera_8002A768 | ( | CameraTransformState * | transform, |
| s32 | arg1 ) |
arg1 is always 0
| void Camera_8002AF68 | ( | HSD_CObj * | cobj, |
| CameraTransformState * | transform ) |
| void Camera_8002B0E0 | ( | void | ) |
| void Camera_8002B1F8 | ( | CameraTransformState * | transform | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| void Camera_8002B3D4 | ( | void * | arg0 | ) |
update gameplay camera
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| void Camera_8002B694 | ( | CameraInputs * | inputs, |
| s32 | slot ) |
| void Camera_8002BAA8 | ( | f32 | zoom_amt | ) |
Camera_PauseZoom.
|
inlinestatic |
|
inlinestatic |
| void Camera_8002C1A8 | ( | void | ) |
|
inlinestatic |
| void Camera_8002C5B4 | ( | Camera_x2D0 * | arg0 | ) |
|
inlinestatic |
|
inlinestatic |
| void Camera_8002C908 | ( | void * | arg0 | ) |
| void Camera_8002CB0C | ( | CameraBounds * | bounds | ) |
Camera_PauseThink.
| void Camera_8002CDDC | ( | void * | unused | ) |
| void Camera_8002D318 | ( | void * | unused | ) |
| void Camera_8002D85C | ( | void * | unused | ) |
|
inlinestatic |
|
inlinestatic |
| void Camera_8002DDC4 | ( | void * | unused | ) |
| bool Camera_8002E234 | ( | void | ) |
|
inlinestatic |
| void Camera_8002E490 | ( | void * | unused | ) |
| void Camera_8002E6FC | ( | int | arg0 | ) |
| void Camera_8002E818 | ( | Vec3 * | pos | ) |
| void Camera_8002EA64 | ( | Vec * | arg0 | ) |
| void Camera_8002EB5C | ( | float | arg0 | ) |
| void Camera_8002EC7C | ( | float | arg0 | ) |
| void Camera_8002ED9C | ( | float | arg0 | ) |
| void Camera_8002EEC8 | ( | f32 | fov | ) |
| void Camera_8002EF14 | ( | void | ) |
| void Camera_8002F0E4 | ( | s32 | arg0 | ) |
| bool Camera_8002F260 | ( | void | ) |
| void Camera_8002F274 | ( | void | ) |
| void fn_8002F360 | ( | HSD_GObj * | x | ) |
|
inlinestatic |
| void Camera_8002F3AC | ( | void | ) |
| void Camera_SetModeToStandard | ( | void | ) |
Switches the camera to pause-camera mode.
Configures pause-camera bounds, eye offset, and zoom from stage data for the given pauser. Called when a match is paused (e.g. via gm_EnablePlayerPauseCamera or Camera_8002F760).
| [in] | pauserSlot | Player slot to center the pause camera on, or a special slot id. Valid player slots are 0-5; slots 0xA and 0xB are also accepted (0xB is used when no valid slot is available). Out-of-range values default to 0. |
| [in] | pauserId | Controller port / player id of the pauser. Valid ids are 0-3; ids 4-5 are also accepted. Out-of-range values default to 4. |
| [in] | arg2 | Initial zoom preset: 0 uses the stage's default pause distance; 1 uses the current minimum zoom. |
Switches the camera to pause-camera mode with default stage zoom.
Wrapper around Camera_SetUpPauseCamera with arg2 set to 0.
| void Camera_8002F7AC | ( | s8 | slot | ) |
| void Camera_SetModeToFixed | ( | void | ) |
| s32 fn_8002F908 | ( | HSD_RectF32 * | arg0 | ) |
| s32 fn_8002FBA0 | ( | HSD_RectF32 * | arg0 | ) |
| void Camera_8002FE38 | ( | void | ) |
| void Camera_8002FEEC | ( | s32 | arg0 | ) |
| void Camera_8003006C | ( | void | ) |
| void Camera_800300F0 | ( | void | ) |
| bool Camera_8003010C | ( | void | ) |
| bool Camera_80030130 | ( | void | ) |
| bool Camera_80030154 | ( | void | ) |
| bool Camera_80030178 | ( | void | ) |
| Vec3 * Camera_8003019C | ( | void | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| void Camera_800304E0 | ( | HSD_GObj * | gobj | ) |
| void Camera_Create | ( | void | ) |
| void Camera_80030730 | ( | f32 | arg8 | ) |
| r | The red component. |
| g | The green component. |
| b | The blue component. |
| GXColor Camera_GetBackgroundColor | ( | void | ) |
| void Camera_GetTransformPosition | ( | Vec3 * | arg0 | ) |
| void Camera_GetTransformInterest | ( | Vec * | arg0 | ) |
| HSD_GObj * Camera_80030A50 | ( | void | ) |
| void Camera_80030A60 | ( | bool | arg0 | ) |
| bool Camera_80030A78 | ( | void | ) |
| void Camera_80030A8C | ( | bool | arg0 | ) |
| void Camera_SetStageVisible | ( | int | arg0 | ) |
| bool Camera_80030AC4 | ( | void | ) |
| void Camera_80030AE0 | ( | bool | arg0 | ) |
| bool Camera_80030AF8 | ( | void | ) |
| void Camera_80030B0C | ( | bool | arg0 | ) |
| bool Camera_80030B24 | ( | void | ) |
| void Camera_80030B38 | ( | bool | arg0 | ) |
| bool Camera_80030B50 | ( | void | ) |
| void Camera_80030B64 | ( | bool | arg0 | ) |
| bool Camera_80030B7C | ( | void | ) |
| void Camera_80030B90 | ( | bool | arg0 | ) |
| bool Camera_80030BA8 | ( | void | ) |
| void Camera_80030DF8 | ( | void | ) |
| float Camera_80030E10 | ( | void | ) |
| void Camera_SetQuakeScale | ( | f32 | scale | ) |
| void Camera_RequestQuake | ( | CmQuakeKind | kind, |
| Vec3 * | pos ) |
| void Camera_StopQuake | ( | CmQuakeKind | kind | ) |
| enum_t Camera_80031060 | ( | void | ) |
| void Camera_80031074 | ( | u8 | arg0 | ) |
| enum_t Camera_8003108C | ( | void | ) |
| void Camera_800310A0 | ( | u8 | arg0 | ) |
| HSD_CObj * Camera_800310B8 | ( | void | ) |
| void Camera_800310E8 | ( | void | ) |
| f32 Camera_80031144 | ( | void | ) |
| void Camera_800311CC | ( | f32 | arg8 | ) |
| void Camera_800311DC | ( | f32 | arg8 | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
The main camera used in game scenes.
| CameraDebugMode cm_80453004 |
|
static |
|
static |
|
static |
|
static |
|
static |
| CameraUnkGlobals cm_803BCCA0 |
|
static |
|
static |
|
static |
|
static |
| CmSubject* cm_804D6468 |
| HSD_CObj* cm_804D6464 |
| CmSubject* cm_804D6460 |
| CmSubject* cm_804D645C |
| CmSubject* cm_804D6458 |
|
static |
|
static |
| DATA char gap_07_803BCC9C_data[4] = "" |