Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_kankyo.cpp File Reference

Classes

struct  sub_kankyo__class
 

Functions

static void GxXFog_set ()
 
float sinf (float x)
 
float cosf (float x)
 
void dKy_WolfPowerup_AmbCol (GXColorS10 *in_col_p)
 
int dKy_sense_pat_get ()
 
void dKy_WolfPowerup_BgAmbCol (GXColorS10 *in_col_p)
 
void dKy_WolfPowerup_FogNearFar (f32 *near_p, f32 *far_p)
 
void dKy_pos2_get_angle (cXyz *pos1_p, cXyz *pos2_p, s16 *pitch_p, s16 *yaw_p)
 
void dKy_twi_wolflight_set (int light_id)
 
void dKy_lightdir_set (f32 angle_x, f32 angle_y, Vec *out_dir_p)
 
void dKy_GXInitLightSpot (J3DLightInfo *light_p, f32 cutoff, u8 spot_type)
 
void dKy_GXInitLightDistAttn (J3DLightInfo *light_p, f32 param_1, f32 param_2, u8 distattn_type)
 
static s16 u8_data_ratio_set (u8 start, u8 end, f32 ratio)
 
static s16 s16_data_ratio_set (s16 start, s16 end, f32 ratio)
 
static u8 kankyo_color_ratio_calc_common (s16 color, f32 ratio)
 
static void kankyo_color_ratio_calc (GXColor *out_col_p, GXColorS10 color, f32 ratio)
 
static s16 kankyo_color_ratio_set (u8 color_a_start, u8 color_a_end, f32 color_ratio, u8 color_b_start, u8 color_b_end, f32 blend_ratio, s16 add_color, f32 scale)
 
static f32 fl_data_ratio_set (f32 start, f32 end, f32 ratio)
 
static f32 float_kankyo_color_ratio_set (f32 color_a_start, f32 color_a_end, f32 color_ratio, f32 color_b_start, f32 color_b_end, f32 blend_ratio, f32 param_6, f32 param_7)
 
static f32 get_parcent (f32 max, f32 min, f32 value)
 
f32 dKy_get_parcent (f32 max, f32 min, f32 value)
 
static void dKy_FiveSenses_fullthrottle_dark_static1 ()
 
void dKy_FiveSenses_fullthrottle_dark ()
 
int dKy_light_influence_id (cXyz position, int param_1)
 
int dKy_eflight_influence_id (cXyz position, int param_1)
 
GXColorS10 dKy_light_influence_col (int light_id)
 
GXColor dKy_light_influence_col (GXColor *in_col_p, f32 ratio)
 
f32 dKy_light_influence_power (int light_id)
 
f32 dKy_light_influence_yuragi (int light_id)
 
f32 dKy_light_influence_distance (cXyz position, int light_id)
 
static void plight_init ()
 
static void darkmist_init ()
 
static void plight_set ()
 
static void bgparts_activelight_init ()
 
static void dungeonlight_init ()
 
static void undwater_init ()
 
void dKy_light_size_get (char const *stageName)
 
static void envcolor_init ()
 
void dKy_clear_game_init ()
 
int dKy_getdaytime_hour ()
 
int dKy_getdaytime_minute ()
 
BOOL dKy_daynight_check ()
 
int dKy_getDarktime_hour ()
 
int dKy_getDarktime_minute ()
 
int dKy_getDarktime_week ()
 
void dKy_calc_color_set (GXColorS10 *out_color_p, color_RGB_class *color_a_start_p, color_RGB_class *color_b_start_p, color_RGB_class *color_a_end_p, color_RGB_class *color_b_end_p, f32 color_ratio, f32 blend_ratio, GXColorS10 add_col, f32 scale)
 
bool checkZoraWearFlg ()
 
static void cLib_addCalcU8 (u8 *i_value, u8 i_target, s16 i_scale, s16 i_maxStep)
 
static void setLightTevColorType_MAJI_sub (J3DMaterial *material_p, dKy_tevstr_c *tevstr_p, int lightType)
 
void dKy_cloudshadow_scroll (J3DModelData *modelData_p, dKy_tevstr_c *tevstr_p, int param_2)
 
void dKy_undwater_filter_draw ()
 
static int dKy_Draw (sub_kankyo__class *i_this)
 
static int dKy_Execute (sub_kankyo__class *i_this)
 
static int dKy_IsDelete (sub_kankyo__class *i_this)
 
static int dKy_Delete (sub_kankyo__class *i_this)
 
static int dKy_Create (void *i_this)
 
void dKy_setLight_init ()
 
void dKy_setLight ()
 
void dKy_GlobalLight_set ()
 
u8 dLVI_getSWLight (stage_pure_lightvec_info_class *i_info)
 
BOOL dKy_lightswitch_check (stage_pure_lightvec_info_class *stage_light_info_p, char room_no)
 
void dKy_setLight_nowroom_common (char room_no, f32 light_ratio)
 
void dKy_setLight_nowroom (char room_no)
 
void dKy_setLight_nowroom_grass (char room_no, f32 light_ratio)
 
f32 dKy_move_room_ratio (dKy_tevstr_c *tevstr_p, s8 *room_no_p)
 
void dKy_setLight_nowroom_actor (dKy_tevstr_c *tevstr_p)
 
void dKy_setLight_again ()
 
void dKy_Global_amb_set (dKy_tevstr_c *tevstr_p)
 
cXyz dKy_light_influence_pos (int light_id)
 
cXyz dKy_plight_near_pos ()
 
void dKy_mock_light_every_set (LIGHT_INFLUENCE *light_inf_p)
 
void dKy_plight_set (LIGHT_INFLUENCE *light_inf_p)
 
void dKy_dalkmist_inf_set (DALKMIST_INFLUENCE *dalkmist_inf_p)
 
void dKy_dalkmist_inf_cut (DALKMIST_INFLUENCE *dalkmist_inf_p)
 
void dKy_plight_priority_set (LIGHT_INFLUENCE *light_inf_p)
 
void dKy_plight_cut (LIGHT_INFLUENCE *light_inf_p)
 
void dKy_efplight_set (LIGHT_INFLUENCE *light_inf_p)
 
void dKy_efplight_cut (LIGHT_INFLUENCE *light_inf_p)
 
void dKy_bgparts_activelight_set (LIGHT_INFLUENCE *light_inf_p, int bgpart_id)
 
void dKy_bgparts_activelight_cut (int bgpart_id)
 
void dKy_actor_addcol_amb_set (s16 r, s16 g, s16 b, f32 ratio)
 
void dKy_bg_addcol_amb_set (s16 r, s16 g, s16 b, f32 ratio)
 
void dKy_bg1_addcol_amb_set (s16 r, s16 g, s16 b, f32 ratio)
 
void dKy_bg2_addcol_amb_set (s16 r, s16 g, s16 b, f32 ratio)
 
void dKy_bg3_addcol_amb_set (s16 r, s16 g, s16 b, f32 ratio)
 
void dKy_addcol_fog_set (s16 r, s16 g, s16 b, f32 ratio)
 
void dKy_actor_addcol_set (s16 r, s16 g, s16 b, f32 ratio)
 
void dKy_vrbox_addcol_sky0_set (s16 r, s16 g, s16 b, f32 ratio)
 
void dKy_vrbox_addcol_kasumi_set (s16 r, s16 g, s16 b, f32 ratio)
 
void dKy_vrbox_addcol_set (s16 r, s16 g, s16 b, f32 ratio)
 
void dKy_fog_startendz_set (f32 param_0, f32 param_1, f32 ratio)
 
void dKy_Itemgetcol_chg_on ()
 
void dKy_Sound_init ()
 
void dKy_Sound_set (cXyz pos, int param_1, fpc_ProcID actor_id, int timer)
 
SND_INFLUENCEdKy_Sound_get ()
 
void dKy_SordFlush_set (cXyz light_pos, int light_type)
 
static void GxFogSet_Sub (GXColor *fog_col_p)
 
static void GxFog_set ()
 
void dKy_GxFog_set ()
 
void dKy_GxFog_tevstr_set (dKy_tevstr_c *tevstr_p)
 
void dKy_GfFog_tevstr_set (dKy_tevstr_c *tevstr_p)
 
void dKy_change_colpat (u8 colpat)
 
void dKy_custom_colset (u8 prevGather, u8 curGather, f32 blend)
 
void dKy_setLight_mine (dKy_tevstr_c *tevstr_p)
 
void dKy_tevstr_init (dKy_tevstr_c *tevstr_p, s8 room_no, u8 floorCol)
 
int dKy_rain_check ()
 
void dKy_set_allcol_ratio (f32 ratio)
 
void dKy_set_actcol_ratio (f32 ratio)
 
void dKy_set_bgcol_ratio (f32 ratio)
 
void dKy_set_fogcol_ratio (f32 ratio)
 
void dKy_set_vrboxcol_ratio (f32 ratio)
 
void dKy_set_vrboxsoracol_ratio (f32 ratio)
 
void dKy_set_vrboxkumocol_ratio (f32 ratio)
 
void dKy_itudemo_se ()
 
int dKy_get_dayofweek ()
 
void dKy_set_nexttime (f32 nexttime)
 
void dKy_instant_timechg (f32 time)
 
void dKy_instant_rainchg ()
 
static GXColor NewAmbColGet (GXColorS10 *in_col_p)
 
static f32 dummy ()
 
void dKy_ParticleColor_get_base (cXyz *param_0, dKy_tevstr_c *param_1, GXColor *param_2, GXColor *param_3, GXColor *param_4, GXColor *param_5, f32 param_6)
 
void dKy_ParticleColor_get_actor (cXyz *param_0, dKy_tevstr_c *tevstr_p, GXColor *param_2, GXColor *param_3, GXColor *param_4, GXColor *param_5, f32 param_6)
 
void dKy_ParticleColor_get_bg (cXyz *param_0, dKy_tevstr_c *tevstr_p, GXColor *param_2, GXColor *param_3, GXColor *param_4, GXColor *param_5, f32 param_6)
 
int dKy_BossLight_set (cXyz *pos_p, GXColor *color_p, f32 ref_dist, u8 param_3)
 
int dKy_BossSpotLight_set (cXyz *pos_p, f32 angle_x, f32 angle_y, f32 cutoff, GXColor *color_p, f32 ref_dist, u8 spot_type, u8 distattn_type)
 
int dKy_WolfEyeLight_set (cXyz *pos_p, f32 angle_x, f32 angle_y, f32 cutoff, GXColor *color_p, f32 ref_dist, u8 spot_type, u8 distattn_type)
 
void dKy_twilight_camelight_set ()
 
void dKy_WaterIn_Light_set ()
 
void dKy_camera_water_in_status_set (u8 status)
 
BOOL dKy_camera_water_in_status_check ()
 
u8 dKy_pol_efftype_get (const cBgS_PolyInfo *polyinfo_p)
 
u8 dKy_pol_efftype2_get (const cBgS_PolyInfo *polyinfo_p)
 
u8 dKy_pol_sound_get (const cBgS_PolyInfo *polyinfo_p)
 
u8 dKy_pol_argument_get (const cBgS_PolyInfo *polyinfo_p)
 
u8 dKy_pol_eff_prim_get (const cBgS_PolyInfo *polyinfo_p, GXColor *out_color_p)
 
u8 dKy_pol_eff_env_get (const cBgS_PolyInfo *polyinfo_p, GXColor *out_color_p)
 
u8 dKy_pol_eff2_prim_get (const cBgS_PolyInfo *polyinfo_p, GXColor *out_color_p)
 
u8 dKy_pol_eff2_env_get (const cBgS_PolyInfo *polyinfo_p, GXColor *out_color_p)
 
u8 dKy_pol_eff_alpha_get (const cBgS_PolyInfo *polyinfo_p)
 
f32 dKy_pol_eff_ratio_get (const cBgS_PolyInfo *polyinfo_p)
 
u8 dKy_pol_eff2_alpha_get (const cBgS_PolyInfo *polyinfo_p)
 
f32 dKy_pol_eff2_ratio_get (const cBgS_PolyInfo *polyinfo_p)
 
BOOL dKy_TeachWind_existence_chk ()
 
BOOL dKy_SunMoon_Light_Check ()
 
BOOL dKy_Outdoor_check ()
 
BOOL dKy_Indoor_check ()
 
BOOL dKy_withwarp_capture_check ()
 
void dKy_depth_dist_set (void *process_p)
 
bool dKy_darkworld_check ()
 
int dKy_F_SP121Check (char const *stageName, int roomNo, u8 *out_darkLv, int tblIndex)
 Returns the following info about a room: (1) if the room must not be in twilight and (2) which darkLv the room belongs to (Faron, Eldin, etc.).
 
u8 dKy_darkworld_stage_check (char const *stageName, int roomNo)
 Returns TRUE if (1) the room is one which can be loaded in twilight, (2) there is nothing currently preventing it from being loaded in twilight, and (3) the player has not cleared the relevant dark level (Faron Twilight, etc.). Otherwise returns FALSE.
 
BOOL dKy_darkworld_spot_check (char const *stageName, int roomNo)
 Returns TRUE if a given room would be loaded in twilight. This function always behaves as if the player has not cleared any twilights.
 
void dKy_darkworld_Area_set (char const *stageName, int roomNo)
 
void dKy_murky_set (J3DMaterial *material_p)
 
void dKy_shadow_mode_set (u8 mode)
 
void dKy_shadow_mode_reset (u8 mode)
 
u8 dKy_shadow_mode_check (u8 mode)
 
void dKy_bg_MAxx_proc (void *bg_model_p)
 

Variables

static u8 cNullVec__6Z2Calc [12]
 
static LightStatus lightStatusBase
 
static u16 lightMaskData [8]
 
dScnKy_env_light_c g_env_light
 
Z2EnvSeMgr g_mEnvSeMgr
 
static LightStatus lightStatusData [8]
 
static u16 lightMask = 0x0001
 
static LightStatuslightStatusPt = lightStatusData
 
static leafdraw_method_class l_dKy_Method
 
kankyo_process_profile_definition g_profile_KANKYO
 
static J3DZModeInfo l_zmodeUpEnable = {1, 3, 1}
 
static J3DZModeInfo l_zmodeUpDisable = {1, 3, 0}
 
static J3DAlphaCompInfo l_alphaCompInfoOPA
 
static J3DAlphaCompInfo l_alphaCompInfo
 

Function Documentation

◆ bgparts_activelight_init()

static void bgparts_activelight_init ( )
static

◆ checkZoraWearFlg()

bool checkZoraWearFlg ( )
inline

◆ cLib_addCalcU8()

static void cLib_addCalcU8 ( u8 * i_value,
u8 i_target,
s16 i_scale,
s16 i_maxStep )
static

◆ cosf()

float cosf ( float x)
inline

◆ darkmist_init()

static void darkmist_init ( )
static

◆ dKy_actor_addcol_amb_set()

void dKy_actor_addcol_amb_set ( s16 r,
s16 g,
s16 b,
f32 ratio )

◆ dKy_actor_addcol_set()

void dKy_actor_addcol_set ( s16 r,
s16 g,
s16 b,
f32 ratio )

◆ dKy_addcol_fog_set()

void dKy_addcol_fog_set ( s16 r,
s16 g,
s16 b,
f32 ratio )

◆ dKy_bg1_addcol_amb_set()

void dKy_bg1_addcol_amb_set ( s16 r,
s16 g,
s16 b,
f32 ratio )

◆ dKy_bg2_addcol_amb_set()

void dKy_bg2_addcol_amb_set ( s16 r,
s16 g,
s16 b,
f32 ratio )

◆ dKy_bg3_addcol_amb_set()

void dKy_bg3_addcol_amb_set ( s16 r,
s16 g,
s16 b,
f32 ratio )

◆ dKy_bg_addcol_amb_set()

void dKy_bg_addcol_amb_set ( s16 r,
s16 g,
s16 b,
f32 ratio )

◆ dKy_bg_MAxx_proc()

void dKy_bg_MAxx_proc ( void * bg_model_p)

◆ dKy_bgparts_activelight_cut()

void dKy_bgparts_activelight_cut ( int bgpart_id)

◆ dKy_bgparts_activelight_set()

void dKy_bgparts_activelight_set ( LIGHT_INFLUENCE * light_inf_p,
int bgpart_id )

◆ dKy_BossLight_set()

int dKy_BossLight_set ( cXyz * pos_p,
GXColor * color_p,
f32 ref_dist,
u8 param_3 )

◆ dKy_BossSpotLight_set()

int dKy_BossSpotLight_set ( cXyz * pos_p,
f32 angle_x,
f32 angle_y,
f32 cutoff,
GXColor * color_p,
f32 ref_dist,
u8 spot_type,
u8 distattn_type )

◆ dKy_calc_color_set()

void dKy_calc_color_set ( GXColorS10 * out_color_p,
color_RGB_class * color_a_start_p,
color_RGB_class * color_b_start_p,
color_RGB_class * color_a_end_p,
color_RGB_class * color_b_end_p,
f32 color_ratio,
f32 blend_ratio,
GXColorS10 add_col,
f32 scale )

◆ dKy_camera_water_in_status_check()

BOOL dKy_camera_water_in_status_check ( )

◆ dKy_camera_water_in_status_set()

void dKy_camera_water_in_status_set ( u8 status)

◆ dKy_change_colpat()

void dKy_change_colpat ( u8 colpat)

◆ dKy_clear_game_init()

void dKy_clear_game_init ( )

◆ dKy_cloudshadow_scroll()

void dKy_cloudshadow_scroll ( J3DModelData * modelData_p,
dKy_tevstr_c * tevstr_p,
int param_2 )

◆ dKy_Create()

static int dKy_Create ( void * i_this)
static

◆ dKy_custom_colset()

void dKy_custom_colset ( u8 prevGather,
u8 curGather,
f32 blend )

◆ dKy_dalkmist_inf_cut()

void dKy_dalkmist_inf_cut ( DALKMIST_INFLUENCE * dalkmist_inf_p)

◆ dKy_dalkmist_inf_set()

void dKy_dalkmist_inf_set ( DALKMIST_INFLUENCE * dalkmist_inf_p)

◆ dKy_darkworld_Area_set()

void dKy_darkworld_Area_set ( char const * stageName,
int roomNo )

◆ dKy_darkworld_check()

bool dKy_darkworld_check ( )

◆ dKy_darkworld_spot_check()

BOOL dKy_darkworld_spot_check ( char const * stageName,
int roomNo )

Returns TRUE if a given room would be loaded in twilight. This function always behaves as if the player has not cleared any twilights.

For example, Eldin Field will always return TRUE. Faron Woods on the other hand might return TRUE or FALSE depending on whether or not the player has completed Ordon Day 2.

Parameters
stageNamestage name
roomNoroom number
Returns
BOOL Returns TRUE if a given room would be loaded in twilight. This function always behaves as if the player has not cleared any twilights.

◆ dKy_darkworld_stage_check()

u8 dKy_darkworld_stage_check ( char const * stageName,
int roomNo )

Returns TRUE if (1) the room is one which can be loaded in twilight, (2) there is nothing currently preventing it from being loaded in twilight, and (3) the player has not cleared the relevant dark level (Faron Twilight, etc.). Otherwise returns FALSE.

Parameters
stageNamestage name
roomNoroom number
Returns
BOOL Returns TRUE if the room can be loaded as twilight and the player has not already cleared it, else FALSE.

◆ dKy_daynight_check()

BOOL dKy_daynight_check ( )

◆ dKy_Delete()

static int dKy_Delete ( sub_kankyo__class * i_this)
static

◆ dKy_depth_dist_set()

void dKy_depth_dist_set ( void * process_p)

◆ dKy_Draw()

static int dKy_Draw ( sub_kankyo__class * i_this)
static

◆ dKy_eflight_influence_id()

int dKy_eflight_influence_id ( cXyz position,
int param_1 )

◆ dKy_efplight_cut()

void dKy_efplight_cut ( LIGHT_INFLUENCE * light_inf_p)

◆ dKy_efplight_set()

void dKy_efplight_set ( LIGHT_INFLUENCE * light_inf_p)

◆ dKy_Execute()

static int dKy_Execute ( sub_kankyo__class * i_this)
static

◆ dKy_F_SP121Check()

int dKy_F_SP121Check ( char const * stageName,
int roomNo,
u8 * out_darkLv,
int tblIndex )

Returns the following info about a room: (1) if the room must not be in twilight and (2) which darkLv the room belongs to (Faron, Eldin, etc.).

Parameters
stageNamestage name
roomNoroom number
out_darkLvbyte pointer to write darkLv to, or NULL
tblIndexindex in darkworld table for the stageName
Returns
int Returns -1 if the given room must not be loaded in twilight, else returns 0 or 1. A return of 1 means darkLv should be read from out_darkLv and 0 means it should be read from the darkworld table.

◆ dKy_FiveSenses_fullthrottle_dark()

void dKy_FiveSenses_fullthrottle_dark ( )

◆ dKy_FiveSenses_fullthrottle_dark_static1()

static void dKy_FiveSenses_fullthrottle_dark_static1 ( )
static

◆ dKy_fog_startendz_set()

void dKy_fog_startendz_set ( f32 param_0,
f32 param_1,
f32 ratio )

◆ dKy_get_dayofweek()

int dKy_get_dayofweek ( )

◆ dKy_get_parcent()

f32 dKy_get_parcent ( f32 max,
f32 min,
f32 value )

◆ dKy_getDarktime_hour()

int dKy_getDarktime_hour ( )

◆ dKy_getDarktime_minute()

int dKy_getDarktime_minute ( )

◆ dKy_getDarktime_week()

int dKy_getDarktime_week ( )

◆ dKy_getdaytime_hour()

int dKy_getdaytime_hour ( )

◆ dKy_getdaytime_minute()

int dKy_getdaytime_minute ( )

◆ dKy_GfFog_tevstr_set()

void dKy_GfFog_tevstr_set ( dKy_tevstr_c * tevstr_p)

◆ dKy_Global_amb_set()

void dKy_Global_amb_set ( dKy_tevstr_c * tevstr_p)

◆ dKy_GlobalLight_set()

void dKy_GlobalLight_set ( )

◆ dKy_GxFog_set()

void dKy_GxFog_set ( )

◆ dKy_GxFog_tevstr_set()

void dKy_GxFog_tevstr_set ( dKy_tevstr_c * tevstr_p)

◆ dKy_GXInitLightDistAttn()

void dKy_GXInitLightDistAttn ( J3DLightInfo * light_p,
f32 param_1,
f32 param_2,
u8 distattn_type )

◆ dKy_GXInitLightSpot()

void dKy_GXInitLightSpot ( J3DLightInfo * light_p,
f32 cutoff,
u8 spot_type )

◆ dKy_Indoor_check()

BOOL dKy_Indoor_check ( )

◆ dKy_instant_rainchg()

void dKy_instant_rainchg ( )

◆ dKy_instant_timechg()

void dKy_instant_timechg ( f32 time)

◆ dKy_IsDelete()

static int dKy_IsDelete ( sub_kankyo__class * i_this)
static

◆ dKy_Itemgetcol_chg_on()

void dKy_Itemgetcol_chg_on ( )

◆ dKy_itudemo_se()

void dKy_itudemo_se ( )

◆ dKy_light_influence_col() [1/2]

GXColor dKy_light_influence_col ( GXColor * in_col_p,
f32 ratio )

◆ dKy_light_influence_col() [2/2]

GXColorS10 dKy_light_influence_col ( int light_id)

◆ dKy_light_influence_distance()

f32 dKy_light_influence_distance ( cXyz position,
int light_id )

◆ dKy_light_influence_id()

int dKy_light_influence_id ( cXyz position,
int param_1 )

◆ dKy_light_influence_pos()

cXyz dKy_light_influence_pos ( int light_id)

◆ dKy_light_influence_power()

f32 dKy_light_influence_power ( int light_id)

◆ dKy_light_influence_yuragi()

f32 dKy_light_influence_yuragi ( int light_id)

◆ dKy_light_size_get()

void dKy_light_size_get ( char const * stageName)

◆ dKy_lightdir_set()

void dKy_lightdir_set ( f32 angle_x,
f32 angle_y,
Vec * out_dir_p )

◆ dKy_lightswitch_check()

BOOL dKy_lightswitch_check ( stage_pure_lightvec_info_class * stage_light_info_p,
char room_no )

◆ dKy_mock_light_every_set()

void dKy_mock_light_every_set ( LIGHT_INFLUENCE * light_inf_p)

◆ dKy_move_room_ratio()

f32 dKy_move_room_ratio ( dKy_tevstr_c * tevstr_p,
s8 * room_no_p )

◆ dKy_murky_set()

void dKy_murky_set ( J3DMaterial * material_p)

◆ dKy_Outdoor_check()

BOOL dKy_Outdoor_check ( )

◆ dKy_ParticleColor_get_actor()

void dKy_ParticleColor_get_actor ( cXyz * param_0,
dKy_tevstr_c * tevstr_p,
GXColor * param_2,
GXColor * param_3,
GXColor * param_4,
GXColor * param_5,
f32 param_6 )

◆ dKy_ParticleColor_get_base()

void dKy_ParticleColor_get_base ( cXyz * param_0,
dKy_tevstr_c * param_1,
GXColor * param_2,
GXColor * param_3,
GXColor * param_4,
GXColor * param_5,
f32 param_6 )

◆ dKy_ParticleColor_get_bg()

void dKy_ParticleColor_get_bg ( cXyz * param_0,
dKy_tevstr_c * tevstr_p,
GXColor * param_2,
GXColor * param_3,
GXColor * param_4,
GXColor * param_5,
f32 param_6 )

◆ dKy_plight_cut()

void dKy_plight_cut ( LIGHT_INFLUENCE * light_inf_p)

◆ dKy_plight_near_pos()

cXyz dKy_plight_near_pos ( )

◆ dKy_plight_priority_set()

void dKy_plight_priority_set ( LIGHT_INFLUENCE * light_inf_p)

◆ dKy_plight_set()

void dKy_plight_set ( LIGHT_INFLUENCE * light_inf_p)

◆ dKy_pol_argument_get()

u8 dKy_pol_argument_get ( const cBgS_PolyInfo * polyinfo_p)

◆ dKy_pol_eff2_alpha_get()

u8 dKy_pol_eff2_alpha_get ( const cBgS_PolyInfo * polyinfo_p)

◆ dKy_pol_eff2_env_get()

u8 dKy_pol_eff2_env_get ( const cBgS_PolyInfo * polyinfo_p,
GXColor * out_color_p )

◆ dKy_pol_eff2_prim_get()

u8 dKy_pol_eff2_prim_get ( const cBgS_PolyInfo * polyinfo_p,
GXColor * out_color_p )

◆ dKy_pol_eff2_ratio_get()

f32 dKy_pol_eff2_ratio_get ( const cBgS_PolyInfo * polyinfo_p)

◆ dKy_pol_eff_alpha_get()

u8 dKy_pol_eff_alpha_get ( const cBgS_PolyInfo * polyinfo_p)

◆ dKy_pol_eff_env_get()

u8 dKy_pol_eff_env_get ( const cBgS_PolyInfo * polyinfo_p,
GXColor * out_color_p )

◆ dKy_pol_eff_prim_get()

u8 dKy_pol_eff_prim_get ( const cBgS_PolyInfo * polyinfo_p,
GXColor * out_color_p )

◆ dKy_pol_eff_ratio_get()

f32 dKy_pol_eff_ratio_get ( const cBgS_PolyInfo * polyinfo_p)

◆ dKy_pol_efftype2_get()

u8 dKy_pol_efftype2_get ( const cBgS_PolyInfo * polyinfo_p)

◆ dKy_pol_efftype_get()

u8 dKy_pol_efftype_get ( const cBgS_PolyInfo * polyinfo_p)

◆ dKy_pol_sound_get()

u8 dKy_pol_sound_get ( const cBgS_PolyInfo * polyinfo_p)

◆ dKy_pos2_get_angle()

void dKy_pos2_get_angle ( cXyz * pos1_p,
cXyz * pos2_p,
s16 * pitch_p,
s16 * yaw_p )

◆ dKy_rain_check()

int dKy_rain_check ( )

◆ dKy_sense_pat_get()

int dKy_sense_pat_get ( )

◆ dKy_set_actcol_ratio()

void dKy_set_actcol_ratio ( f32 ratio)

◆ dKy_set_allcol_ratio()

void dKy_set_allcol_ratio ( f32 ratio)

◆ dKy_set_bgcol_ratio()

void dKy_set_bgcol_ratio ( f32 ratio)

◆ dKy_set_fogcol_ratio()

void dKy_set_fogcol_ratio ( f32 ratio)

◆ dKy_set_nexttime()

void dKy_set_nexttime ( f32 nexttime)

◆ dKy_set_vrboxcol_ratio()

void dKy_set_vrboxcol_ratio ( f32 ratio)

◆ dKy_set_vrboxkumocol_ratio()

void dKy_set_vrboxkumocol_ratio ( f32 ratio)

◆ dKy_set_vrboxsoracol_ratio()

void dKy_set_vrboxsoracol_ratio ( f32 ratio)

◆ dKy_setLight()

void dKy_setLight ( )

◆ dKy_setLight_again()

void dKy_setLight_again ( )

◆ dKy_setLight_init()

void dKy_setLight_init ( )

◆ dKy_setLight_mine()

void dKy_setLight_mine ( dKy_tevstr_c * tevstr_p)

◆ dKy_setLight_nowroom()

void dKy_setLight_nowroom ( char room_no)

◆ dKy_setLight_nowroom_actor()

void dKy_setLight_nowroom_actor ( dKy_tevstr_c * tevstr_p)

◆ dKy_setLight_nowroom_common()

void dKy_setLight_nowroom_common ( char room_no,
f32 light_ratio )

◆ dKy_setLight_nowroom_grass()

void dKy_setLight_nowroom_grass ( char room_no,
f32 light_ratio )

◆ dKy_shadow_mode_check()

u8 dKy_shadow_mode_check ( u8 mode)

◆ dKy_shadow_mode_reset()

void dKy_shadow_mode_reset ( u8 mode)

◆ dKy_shadow_mode_set()

void dKy_shadow_mode_set ( u8 mode)

◆ dKy_SordFlush_set()

void dKy_SordFlush_set ( cXyz light_pos,
int light_type )

◆ dKy_Sound_get()

SND_INFLUENCE * dKy_Sound_get ( )

◆ dKy_Sound_init()

void dKy_Sound_init ( )

◆ dKy_Sound_set()

void dKy_Sound_set ( cXyz pos,
int param_1,
fpc_ProcID actor_id,
int timer )

◆ dKy_SunMoon_Light_Check()

BOOL dKy_SunMoon_Light_Check ( )

◆ dKy_TeachWind_existence_chk()

BOOL dKy_TeachWind_existence_chk ( )

◆ dKy_tevstr_init()

void dKy_tevstr_init ( dKy_tevstr_c * tevstr_p,
s8 room_no,
u8 floorCol )

◆ dKy_twi_wolflight_set()

void dKy_twi_wolflight_set ( int light_id)

◆ dKy_twilight_camelight_set()

void dKy_twilight_camelight_set ( )

◆ dKy_undwater_filter_draw()

void dKy_undwater_filter_draw ( )

◆ dKy_vrbox_addcol_kasumi_set()

void dKy_vrbox_addcol_kasumi_set ( s16 r,
s16 g,
s16 b,
f32 ratio )

◆ dKy_vrbox_addcol_set()

void dKy_vrbox_addcol_set ( s16 r,
s16 g,
s16 b,
f32 ratio )

◆ dKy_vrbox_addcol_sky0_set()

void dKy_vrbox_addcol_sky0_set ( s16 r,
s16 g,
s16 b,
f32 ratio )

◆ dKy_WaterIn_Light_set()

void dKy_WaterIn_Light_set ( )

◆ dKy_withwarp_capture_check()

BOOL dKy_withwarp_capture_check ( )

◆ dKy_WolfEyeLight_set()

int dKy_WolfEyeLight_set ( cXyz * pos_p,
f32 angle_x,
f32 angle_y,
f32 cutoff,
GXColor * color_p,
f32 ref_dist,
u8 spot_type,
u8 distattn_type )

◆ dKy_WolfPowerup_AmbCol()

void dKy_WolfPowerup_AmbCol ( GXColorS10 * in_col_p)

◆ dKy_WolfPowerup_BgAmbCol()

void dKy_WolfPowerup_BgAmbCol ( GXColorS10 * in_col_p)

◆ dKy_WolfPowerup_FogNearFar()

void dKy_WolfPowerup_FogNearFar ( f32 * near_p,
f32 * far_p )

◆ dLVI_getSWLight()

u8 dLVI_getSWLight ( stage_pure_lightvec_info_class * i_info)
inline

◆ dummy()

static f32 dummy ( )
static

◆ dungeonlight_init()

static void dungeonlight_init ( )
static

◆ envcolor_init()

static void envcolor_init ( )
static

◆ fl_data_ratio_set()

static f32 fl_data_ratio_set ( f32 start,
f32 end,
f32 ratio )
static

◆ float_kankyo_color_ratio_set()

static f32 float_kankyo_color_ratio_set ( f32 color_a_start,
f32 color_a_end,
f32 color_ratio,
f32 color_b_start,
f32 color_b_end,
f32 blend_ratio,
f32 param_6,
f32 param_7 )
static

◆ get_parcent()

static f32 get_parcent ( f32 max,
f32 min,
f32 value )
static

◆ GxFog_set()

static void GxFog_set ( )
static

◆ GxFogSet_Sub()

static void GxFogSet_Sub ( GXColor * fog_col_p)
static

◆ GxXFog_set()

static void GxXFog_set ( )
static

◆ kankyo_color_ratio_calc()

static void kankyo_color_ratio_calc ( GXColor * out_col_p,
GXColorS10 color,
f32 ratio )
static

◆ kankyo_color_ratio_calc_common()

static u8 kankyo_color_ratio_calc_common ( s16 color,
f32 ratio )
static

◆ kankyo_color_ratio_set()

static s16 kankyo_color_ratio_set ( u8 color_a_start,
u8 color_a_end,
f32 color_ratio,
u8 color_b_start,
u8 color_b_end,
f32 blend_ratio,
s16 add_color,
f32 scale )
static

◆ NewAmbColGet()

static GXColor NewAmbColGet ( GXColorS10 * in_col_p)
static

◆ plight_init()

static void plight_init ( )
static

◆ plight_set()

static void plight_set ( )
static

◆ s16_data_ratio_set()

static s16 s16_data_ratio_set ( s16 start,
s16 end,
f32 ratio )
static

◆ setLightTevColorType_MAJI_sub()

static void setLightTevColorType_MAJI_sub ( J3DMaterial * material_p,
dKy_tevstr_c * tevstr_p,
int lightType )
static

◆ sinf()

float sinf ( float x)
inline

◆ u8_data_ratio_set()

static s16 u8_data_ratio_set ( u8 start,
u8 end,
f32 ratio )
static

◆ undwater_init()

static void undwater_init ( )
static

Variable Documentation

◆ cNullVec__6Z2Calc

u8 cNullVec__6Z2Calc[12]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
}

◆ g_env_light

dScnKy_env_light_c g_env_light

◆ g_mEnvSeMgr

Z2EnvSeMgr g_mEnvSeMgr

◆ g_profile_KANKYO

kankyo_process_profile_definition g_profile_KANKYO
extern
Initial value:
= {
1,
0,
0,
2,
}
void * g_fpcLf_Method[5+1]
Definition f_pc_leaf.cpp:64
static leafdraw_method_class l_dKy_Method
Definition d_kankyo.cpp:5364
@ PROC_KANKYO
Definition d_procname.h:24
leafdraw_method_class g_fopKy_Method
Definition f_op_kankyo.cpp:92
@ fpcLy_CURRENT_e
Definition f_pc_layer_tag.h:9
@ fpcPi_CURRENT_e
Definition f_pc_priority.h:8
Definition d_kankyo.cpp:18

◆ l_alphaCompInfo

J3DAlphaCompInfo l_alphaCompInfo
static
Initial value:
= {
0x04, 0x80, 0x00, 0x03, 0xFF, 0x00, 0x00, 0x00,
}

◆ l_alphaCompInfoOPA

J3DAlphaCompInfo l_alphaCompInfoOPA
static
Initial value:
= {
0x07, 0x00, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00,
}

◆ l_dKy_Method

leafdraw_method_class l_dKy_Method
static
Initial value:
= {
}
static int dKy_Execute(sub_kankyo__class *i_this)
Definition d_kankyo.cpp:4145
static int dKy_IsDelete(sub_kankyo__class *i_this)
Definition d_kankyo.cpp:4154
static int dKy_Delete(sub_kankyo__class *i_this)
Definition d_kankyo.cpp:4160
static int dKy_Create(void *i_this)
Definition d_kankyo.cpp:4172
static int dKy_Draw(sub_kankyo__class *i_this)
Definition d_kankyo.cpp:4138
int(* process_method_func)(void *)
Definition f_pc_method.h:7

◆ l_zmodeUpDisable

J3DZModeInfo l_zmodeUpDisable = {1, 3, 0}
static

◆ l_zmodeUpEnable

J3DZModeInfo l_zmodeUpEnable = {1, 3, 1}
static

◆ lightMask

u16 lightMask = 0x0001
static

◆ lightMaskData

u16 lightMaskData[8]
static
Initial value:
= {
}
@ GX_LIGHT1
Definition GXEnum.h:442
@ GX_LIGHT5
Definition GXEnum.h:446
@ GX_LIGHT0
Definition GXEnum.h:441
@ GX_LIGHT6
Definition GXEnum.h:447
@ GX_LIGHT7
Definition GXEnum.h:448
@ GX_LIGHT2
Definition GXEnum.h:443
@ GX_LIGHT3
Definition GXEnum.h:444
@ GX_LIGHT4
Definition GXEnum.h:445

◆ lightStatusBase

LightStatus lightStatusBase
static

◆ lightStatusData

LightStatus lightStatusData[8]
static

◆ lightStatusPt

LightStatus* lightStatusPt = lightStatusData
static