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

Go to the source code of this file.

Functions

bool cLib_IsZero (f32 value)
 
void cLib_memCpy (void *dst, const void *src, unsigned long size)
 
void cLib_memSet (void *ptr, int value, unsigned long size)
 
f32 cLib_addCalc (f32 *o_value, f32 target, f32 scale, f32 maxStep, f32 minStep)
 
void cLib_addCalc2 (f32 *o_value, f32 target, f32 scale, f32 maxStep)
 
void cLib_addCalc0 (f32 *o_value, f32 scale, f32 maxStep)
 
f32 cLib_addCalcPos (cXyz *o_value, cXyz const &target, f32 scale, f32 maxStep, f32 minStep)
 
f32 cLib_addCalcPosXZ (cXyz *o_value, cXyz const &target, f32 scale, f32 maxStep, f32 minStep)
 
void cLib_addCalcPos2 (cXyz *o_value, cXyz const &target, f32 scale, f32 maxStep)
 
void cLib_addCalcPosXZ2 (cXyz *o_value, cXyz const &target, f32 scale, f32 maxStep)
 
s16 cLib_addCalcAngleS (s16 *o_value, s16 target, s16 scale, s16 maxStep, s16 minStep)
 
void cLib_addCalcAngleS2 (s16 *o_value, s16 target, s16 scale, s16 maxStep)
 
int cLib_chaseUC (u8 *o_value, u8 target, u8 step)
 
int cLib_chaseS (s16 *o_value, s16 target, s16 step)
 
int cLib_chaseF (f32 *o_value, f32 target, f32 step)
 
int cLib_chasePos (cXyz *o_value, cXyz const &target, f32 step)
 
int cLib_chasePosXZ (cXyz *o_value, cXyz const &target, f32 step)
 
int cLib_chaseAngleS (s16 *o_value, s16 target, s16 step)
 
s16 cLib_targetAngleY (const Vec *lhs, const Vec *rhs)
 
s16 cLib_targetAngleY (const Vec &lhs, const Vec &rhs)
 
s16 cLib_targetAngleX (const cXyz *, const cXyz *)
 
void cLib_offsetPos (cXyz *pDest, cXyz const *pSrc, s16 angle, cXyz const *vec)
 
s32 cLib_distanceAngleS (s16 x, s16 y)
 
template<typename T >
void cLib_offBit (T &value, T bit)
 
template<typename T >
void cLib_onBit (T &value, T bit)
 
template<typename T >
T cLib_checkBit (T value, T bit)
 
template<typename T >
T cLib_minMaxLimit (T val, T min, T max)
 
template<typename T >
T cLib_maxLimit (T val, T max)
 
template<typename T >
T cLib_calcTimer (T *value)
 
template<typename T >
T cLib_getRndValue (T min, T range)
 
void MtxInit (void)
 
void MtxTrans (f32, f32, f32, u8)
 
void MtxScale (f32, f32, f32, u8)
 
void MtxPosition (cXyz *, cXyz *)
 
void MtxPush (void)
 
MtxMtxPull (void)
 

Variables

Mtxcalc_mtx
 

Function Documentation

◆ cLib_addCalc()

f32 cLib_addCalc ( f32 o_value,
f32  target,
f32  scale,
f32  maxStep,
f32  minStep 
)

◆ cLib_addCalc0()

void cLib_addCalc0 ( f32 o_value,
f32  scale,
f32  maxStep 
)

◆ cLib_addCalc2()

void cLib_addCalc2 ( f32 o_value,
f32  target,
f32  scale,
f32  maxStep 
)

◆ cLib_addCalcAngleS()

s16 cLib_addCalcAngleS ( s16 o_value,
s16  target,
s16  scale,
s16  maxStep,
s16  minStep 
)

◆ cLib_addCalcAngleS2()

void cLib_addCalcAngleS2 ( s16 o_value,
s16  target,
s16  scale,
s16  maxStep 
)

◆ cLib_addCalcPos()

f32 cLib_addCalcPos ( cXyz o_value,
cXyz const target,
f32  scale,
f32  maxStep,
f32  minStep 
)

◆ cLib_addCalcPos2()

void cLib_addCalcPos2 ( cXyz o_value,
cXyz const target,
f32  scale,
f32  maxStep 
)

◆ cLib_addCalcPosXZ()

f32 cLib_addCalcPosXZ ( cXyz o_value,
cXyz const target,
f32  scale,
f32  maxStep,
f32  minStep 
)

◆ cLib_addCalcPosXZ2()

void cLib_addCalcPosXZ2 ( cXyz o_value,
cXyz const target,
f32  scale,
f32  maxStep 
)

◆ cLib_calcTimer()

template<typename T >
T cLib_calcTimer ( T value)

◆ cLib_chaseAngleS()

int cLib_chaseAngleS ( s16 o_value,
s16  target,
s16  step 
)

◆ cLib_chaseF()

int cLib_chaseF ( f32 o_value,
f32  target,
f32  step 
)

◆ cLib_chasePos()

int cLib_chasePos ( cXyz o_value,
cXyz const target,
f32  step 
)

◆ cLib_chasePosXZ()

int cLib_chasePosXZ ( cXyz o_value,
cXyz const target,
f32  step 
)

◆ cLib_chaseS()

int cLib_chaseS ( s16 o_value,
s16  target,
s16  step 
)

◆ cLib_chaseUC()

int cLib_chaseUC ( u8 o_value,
u8  target,
u8  step 
)

◆ cLib_checkBit()

template<typename T >
T cLib_checkBit ( T  value,
T  bit 
)
inline

◆ cLib_distanceAngleS()

s32 cLib_distanceAngleS ( s16  x,
s16  y 
)

◆ cLib_getRndValue()

template<typename T >
T cLib_getRndValue ( T  min,
T  range 
)

◆ cLib_IsZero()

bool cLib_IsZero ( f32  value)
inline

◆ cLib_maxLimit()

template<typename T >
T cLib_maxLimit ( T  val,
T  max 
)
inline

◆ cLib_memCpy()

void cLib_memCpy ( void dst,
const void src,
unsigned long  size 
)

◆ cLib_memSet()

void cLib_memSet ( void ptr,
int  value,
unsigned long  size 
)

◆ cLib_minMaxLimit()

template<typename T >
T cLib_minMaxLimit ( T  val,
T  min,
T  max 
)
inline

◆ cLib_offBit()

template<typename T >
void cLib_offBit ( T value,
T  bit 
)
inline

◆ cLib_offsetPos()

void cLib_offsetPos ( cXyz pDest,
cXyz const pSrc,
s16  angle,
cXyz const vec 
)

◆ cLib_onBit()

template<typename T >
void cLib_onBit ( T value,
T  bit 
)
inline

◆ cLib_targetAngleX()

s16 cLib_targetAngleX ( const cXyz param_0,
const cXyz param_1 
)

◆ cLib_targetAngleY() [1/2]

s16 cLib_targetAngleY ( const Vec lhs,
const Vec rhs 
)

◆ cLib_targetAngleY() [2/2]

s16 cLib_targetAngleY ( const Vec lhs,
const Vec rhs 
)

◆ MtxInit()

void MtxInit ( void  )

◆ MtxPosition()

void MtxPosition ( cXyz src,
cXyz dest 
)

◆ MtxPull()

Mtx * MtxPull ( void  )

◆ MtxPush()

void MtxPush ( void  )

◆ MtxScale()

void MtxScale ( f32  x_trans,
f32  y_trans,
f32  z_trans,
u8  param_3 
)

◆ MtxTrans()

void MtxTrans ( f32  x_trans,
f32  y_trans,
f32  z_trans,
u8  param_3 
)

Variable Documentation

◆ calc_mtx

Mtx* calc_mtx
extern