SSBM Decomp
Loading...
Searching...
No Matches
dbcamera.c File Reference
#include "cm/camera.h"
#include "db/db.h"
#include "ft/inlines.h"
#include "gm/gm_unsplit.h"
#include "gr/ground.h"
#include "if/textdraw.h"
#include "if/textlib.h"
#include "lb/lbshadow.h"
#include "lb/lbvector.h"
#include <math.h>
#include <trigf.h>

Functions

void fn_SetupMiscStageVisuals (void)
void fn_CheckMiscStageEffects (int player)
static void fn_802270C4 (int arg0)
static void fn_8022713C (int arg0)
void fn_SetupCameraInfo (void)
static void fn_CheckCameraInfo_helper (void)
static void fn_80227188 (void)
void fn_CheckCameraInfo (int player, int buttons_down, int buttons_pressed, f32 cstick_x, f32 cstick_y)
static HSD_PadStatusget_pad (u8 i)
 fn_802277E8
static float cstick_threshold (float cstick, float val)
static void fn_802277E8 (HSD_GObj *arg0, int port)
static void fn_80227904 (HSD_GObj *camera, int port)
 Debug_UpdateCamera.
void fn_802279E8 (HSD_GObj *camera, Vec3 *camera_pos, Vec3 *camera_interest, f32 cstick_x, f32 cstick_y)
 Debug_OrbitAroundInterest.
static void fn_80227B64 (HSD_GObj *camera, f32 cstick_x, f32 cstick_y)
 Debug_UpdateFreecamRotation.
void fn_80227BA8 (HSD_GObj *camera, Vec3 *arg1, f32 arg2, f32 arg3)
static void fn_80227CAC (HSD_GObj *camera, f32 cstick_y)
 Debug_UpdateFreecamDolly.
void fn_80227D38 (HSD_GObj *camera, Vec3 *arg1, f32 arg2)
static void fn_80227EB0 (HSD_GObj *arg0, Vec3 *arg1, Vec3 *arg2, f32 arg8, f32 arg9)
static void fn_80227FE0 (HSD_GObj *camera, f32 cstick_x, f32 cstick_y)
 Debug_UpdateFreecamPosition.
static void fn_80227EB0_dummy_inline (HSD_GObj *cam, Vec3 *a, Vec3 *b, float x, float y)
void fn_80228124 (HSD_GObj *camera, Vec3 *arg1, f32 arg2, f32 arg3)

Variables

static char db_CameraInfoDisplay_buf [0xC0]
struct { 
   u32   MiscStageVisualsStatus 
   u32   unused 
db
static DevTextdb_CameraInfoDisplay
static u8 db_CameraInfoDisplayTimer
static u8 db_ShowCameraInfo
const GXColor g_bg = { 0x00, 0x00, 0x00, 0x80 }
const GXColor g_fg = { 0xFF, 0xFF, 0xFF, 0xFF }
CameraDebugMode cm_80453004

Function Documentation

◆ fn_SetupMiscStageVisuals()

void fn_SetupMiscStageVisuals ( void )

◆ fn_CheckMiscStageEffects()

void fn_CheckMiscStageEffects ( int player)

◆ fn_802270C4()

void fn_802270C4 ( int arg0)
static

◆ fn_8022713C()

void fn_8022713C ( int arg0)
static

◆ fn_SetupCameraInfo()

void fn_SetupCameraInfo ( void )

◆ fn_CheckCameraInfo_helper()

void fn_CheckCameraInfo_helper ( void )
static

◆ fn_80227188()

void fn_80227188 ( void )
static

◆ fn_CheckCameraInfo()

void fn_CheckCameraInfo ( int player,
int buttons_down,
int buttons_pressed,
f32 cstick_x,
f32 cstick_y )

◆ get_pad()

HSD_PadStatus * get_pad ( u8 i)
inlinestatic

◆ cstick_threshold()

float cstick_threshold ( float cstick,
float val )
inlinestatic

◆ fn_802277E8()

void fn_802277E8 ( HSD_GObj * arg0,
int port )
static

◆ fn_80227904()

void fn_80227904 ( HSD_GObj * camera,
int port )
static

Debug_UpdateCamera.

<

Todo
port should probably be a u8, but it's difficult

◆ fn_802279E8()

void fn_802279E8 ( HSD_GObj * camera,
Vec3 * camera_pos,
Vec3 * camera_interest,
f32 cstick_x,
f32 cstick_y )

Debug_OrbitAroundInterest.

◆ fn_80227B64()

void fn_80227B64 ( HSD_GObj * camera,
f32 cstick_x,
f32 cstick_y )
static

Debug_UpdateFreecamRotation.

◆ fn_80227BA8()

void fn_80227BA8 ( HSD_GObj * camera,
Vec3 * arg1,
f32 arg2,
f32 arg3 )

◆ fn_80227CAC()

void fn_80227CAC ( HSD_GObj * camera,
f32 cstick_y )
static

Debug_UpdateFreecamDolly.

◆ fn_80227D38()

void fn_80227D38 ( HSD_GObj * camera,
Vec3 * arg1,
f32 arg2 )

◆ fn_80227EB0()

void fn_80227EB0 ( HSD_GObj * arg0,
Vec3 * arg1,
Vec3 * arg2,
f32 arg8,
f32 arg9 )
static

◆ fn_80227FE0()

void fn_80227FE0 ( HSD_GObj * camera,
f32 cstick_x,
f32 cstick_y )
static

Debug_UpdateFreecamPosition.

◆ fn_80227EB0_dummy_inline()

void fn_80227EB0_dummy_inline ( HSD_GObj * cam,
Vec3 * a,
Vec3 * b,
float x,
float y )
inlinestatic

◆ fn_80228124()

void fn_80228124 ( HSD_GObj * camera,
Vec3 * arg1,
f32 arg2,
f32 arg3 )

Variable Documentation

◆ db_CameraInfoDisplay_buf

char db_CameraInfoDisplay_buf[0xC0]
static

◆ MiscStageVisualsStatus

u32 MiscStageVisualsStatus

◆ unused

u32 unused ( void )

◆ [struct]

struct { ... } db
Todo
does the padding mean this should be in another file before this one?

◆ db_CameraInfoDisplay

DevText* db_CameraInfoDisplay
static

◆ db_CameraInfoDisplayTimer

u8 db_CameraInfoDisplayTimer
static

◆ db_ShowCameraInfo

u8 db_ShowCameraInfo
static

◆ g_bg

const GXColor g_bg = { 0x00, 0x00, 0x00, 0x80 }

◆ g_fg

const GXColor g_fg = { 0xFF, 0xFF, 0xFF, 0xFF }

◆ cm_80453004

CameraDebugMode cm_80453004
extern