Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
GXLight.h File Reference

Go to the source code of this file.

Functions

void GXInitLightAttn (GXLightObj *obj, f32 a0, f32 a1, f32 a2, f32 k0, f32 k1, f32 k2)
 
void GXInitLightSpot (GXLightObj *obj, f32 cutoff, GXSpotFn spot_fn)
 
void GXInitLightDistAttn (GXLightObj *obj, f32 dist, f32 brightness, GXDistAttnFn dist_fn)
 
void GXInitLightPos (GXLightObj *obj, f32 x, f32 y, f32 z)
 
void GXInitLightDir (GXLightObj *obj, f32 x, f32 y, f32 z)
 
void GXInitLightColor (GXLightObj *obj, GXColor color)
 
void GXLoadLightObjImm (GXLightObj *obj, GXLightID light)
 
void GXSetChanAmbColor (GXChannelID channel, GXColor color)
 
void GXSetChanMatColor (GXChannelID channel, GXColor color)
 
void GXSetNumChans (u8 chan_num)
 
void GXSetChanCtrl (GXChannelID channel, GXBool enable, GXColorSrc amb_src, GXColorSrc mat_src, u32 light_mask, GXDiffuseFn diff_fn, GXAttnFn attn_fn)
 

Function Documentation

◆ GXInitLightAttn()

void GXInitLightAttn ( GXLightObj obj,
f32  a0,
f32  a1,
f32  a2,
f32  k0,
f32  k1,
f32  k2 
)

GXLight.c Description:

◆ GXInitLightColor()

void GXInitLightColor ( GXLightObj obj,
GXColor  color 
)

◆ GXInitLightDir()

void GXInitLightDir ( GXLightObj obj,
f32  x,
f32  y,
f32  z 
)

◆ GXInitLightDistAttn()

void GXInitLightDistAttn ( GXLightObj obj,
f32  dist,
f32  brightness,
GXDistAttnFn  dist_fn 
)

◆ GXInitLightPos()

void GXInitLightPos ( GXLightObj obj,
f32  x,
f32  y,
f32  z 
)

◆ GXInitLightSpot()

void GXInitLightSpot ( GXLightObj obj,
f32  cutoff,
GXSpotFn  spot_fn 
)

◆ GXLoadLightObjImm()

void GXLoadLightObjImm ( GXLightObj obj,
GXLightID  light 
)

◆ GXSetChanAmbColor()

void GXSetChanAmbColor ( GXChannelID  channel,
GXColor  color 
)

◆ GXSetChanCtrl()

void GXSetChanCtrl ( GXChannelID  channel,
GXBool  enable,
GXColorSrc  amb_src,
GXColorSrc  mat_src,
u32  light_mask,
GXDiffuseFn  diff_fn,
GXAttnFn  attn_fn 
)

◆ GXSetChanMatColor()

void GXSetChanMatColor ( GXChannelID  channel,
GXColor  color 
)

◆ GXSetNumChans()

void GXSetNumChans ( u8  chan_num)