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

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)
 
static void PushLight (const register GXLightObj *lt_obj, register void *dest)
 
void GXLoadLightObjImm (GXLightObj *obj, GXLightID light)
 
void GXSetChanAmbColor (GXChannelID channel, GXColor color)
 
void GXSetChanMatColor (GXChannelID channel, GXColor color)
 
void GXSetNumChans (u8 count)
 
void GXSetChanCtrl (GXChannelID channel, GXBool doEnable, GXColorSrc ambSrc, GXColorSrc matSrc, u32 mask, GXDiffuseFn diffFunc, GXAttnFn attnFunc)
 

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  doEnable,
GXColorSrc  ambSrc,
GXColorSrc  matSrc,
u32  mask,
GXDiffuseFn  diffFunc,
GXAttnFn  attnFunc 
)

◆ GXSetChanMatColor()

void GXSetChanMatColor ( GXChannelID  channel,
GXColor  color 
)

◆ GXSetNumChans()

void GXSetNumChans ( u8  count)

◆ PushLight()

static void PushLight ( const register GXLightObj lt_obj,
register void dest 
)
inlinestatic