![]() |
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
|
Functions | |
| void | cLib_memCpy (void *dst, const void *src, unsigned long num) |
| void | cLib_memSet (void *ptr, int value, unsigned long num) |
| f32 | cLib_addCalc (f32 *pvalue, f32 target, f32 scale, f32 maxStep, f32 minStep) |
| void | cLib_addCalc2 (f32 *pvalue, f32 target, f32 scale, f32 maxStep) |
| void | cLib_addCalc0 (f32 *pvalue, f32 scale, f32 maxStep) |
| f32 | cLib_addCalcPos (cXyz *ppos, const cXyz &target, f32 scale, f32 maxStep, f32 minStep) |
| f32 | cLib_addCalcPosXZ (cXyz *ppos, const cXyz &target, f32 scale, f32 maxStep, f32 minStep) |
| void | cLib_addCalcPos2 (cXyz *ppos, const cXyz &target, f32 scale, f32 maxStep) |
| void | cLib_addCalcPosXZ2 (cXyz *ppos, const cXyz &target, f32 scale, f32 maxStep) |
| s16 | cLib_addCalcAngleS (s16 *pvalue, s16 target, const s16 scale, s16 maxStep, s16 minStep) |
| void | cLib_addCalcAngleS2 (s16 *pvalue, s16 target, s16 scale, s16 maxStep) |
| int | cLib_chaseUC (u8 *pvalue, u8 target, u8 step) |
| int | cLib_chaseS (s16 *pvalue, s16 target, s16 step) |
| int | cLib_chaseF (f32 *pvalue, f32 target, f32 step) |
| int | cLib_chasePos (cXyz *pvalue, const cXyz &target, f32 step) |
| int | cLib_chasePosXZ (cXyz *pvalue, const cXyz &target, f32 step) |
| int | cLib_chaseAngleS (s16 *pvalue, 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 (cXyz const *lhs, cXyz const *rhs) |
| void | cLib_offsetPos (cXyz *pdest, cXyz const *psrc, s16 angle, cXyz const *vec) |
| s32 | cLib_distanceAngleS (s16 x, s16 y) |
| void | MtxInit () |
| void | MtxTrans (f32 x_trans, f32 y_trans, f32 z_trans, u8 param_3) |
| void | MtxScale (f32 x_trans, f32 y_trans, f32 z_trans, u8 param_3) |
| void | MtxPosition (cXyz *src, cXyz *dest) |
| void | MtxPush () |
| Mtx * | MtxPull () |
Variables | |
| static Mtx | mtx [10] |
| Mtx * | calc_mtx = mtx |
Changes value by step towards target. Step amount is clamped between a min and max, and scaled as a fraction of the remaining distance.
| pvalue | Pointer to value to change |
| target | Target to move value towards |
| scale | Fraction of remaining distance to scale step by |
| maxStep | Maximum step amount |
| minStep | Minimum step amount |
Changes value by step towards zero. Step amount is clamped between a max and -max, and scaled as a fraction of the remaining distance.
| pvalue | Pointer to value to change |
| scale | Fraction of remaining distance to scale step by |
| maxStep | Maximum (+/-) step amount |
Changes value by step towards target. Step amount is clamped between a max and -max, and scaled as a fraction of the remaining distance.
| pvalue | Pointer to value to change |
| target | Target to move value towards |
| scale | Fraction of remaining distance to scale step by |
| maxStep | Maximum (+/-) step amount |
Changes angle value by step towards target. Step amount is clamped between a min and max, and scaled as a fraction of the remaining distance.
| pvalue | Pointer to angle value to change |
| target | Target angle to move value towards |
| scale | Fraction of remaining distance to scale step by |
| maxStep | Maximum step amount |
| minStep | Minimum step amount |
Changes angle value by step towards target angle. Step amount is clamped between a max and -max and scaled as a fraction of the remaining distance.
| pvalue | Pointer to angle value to change |
| target | Target angle to move value towards |
| scale | Fraction of remaining distance to scale step by |
| maxStep | Maximum (+/-) step amount |
Changes position by step towards target position. Step amount is clamped between a min and max, and scaled as a fraction of the remaining distance.
| ppos | Pointer to position to change |
| target | Target position to move towards |
| scale | Fraction of remaining distance to scale step by |
| maxStep | Maximum step amount |
| minStep | Minimum step amount |
Changes position by step towards target position. Step amount is clamped between a max and -max and scaled as a fraction of the remaining distance.
| ppos | Pointer to position to change |
| target | Target position to move value towards |
| scale | Fraction of remaining distance to scale step by |
| maxStep | Maximum (+/-) step amount |
Changes position's X/Z components by step towards target position. Step amount is clamped between a min and max, and scaled as a fraction of the remaining distance.
| ppos | Pointer to position to change |
| target | Target position to move towards |
| scale | Fraction of remaining distance to scale step by |
| maxStep | Maximum step amount |
| minStep | Minimum step amount |
Changes position's X/Z components by step towards target position. Step amount is clamped between a max and -max and scaled as a fraction of the remaining distance.
| ppos | Pointer to position to change |
| target | Target position to move value towards |
| scale | Fraction of remaining distance to scale step by |
| maxStep | Maximum (+/-) step amount |
Changes angle value by step towards target
| pvalue | Pointer to value to change |
| target | Target to move value towards |
| step | Step amount |
Changes float value by step towards target
| pvalue | Pointer to value to change |
| target | Target to move value towards |
| step | Step amount |
Changes position by step towards target
| pvalue | Pointer to position to change |
| target | Target position to move towards |
| step | Step amount |
Changes position's X/Z components by step towards target
| pvalue | Pointer to position to change |
| target | Target position to move towards |
| step | Step amount |
Changes signed short value by step towards target
| pvalue | Pointer to value to change |
| target | Target to move value towards |
| step | Step amount |
Changes unsigned char value by step towards target
| pvalue | Pointer to value to change |
| target | Target to move value towards |
| step | Step amount |
Gets the target x-angle from position A to position B
| lhs | Pointer to position A |
| rhs | Pointer to position B |
| void cLib_memCpy | ( | void * | dst, |
| const void * | src, | ||
| unsigned long | num ) |
c_lib.cpp Copies a source block of memory to a destination block of memory
| dst | Pointer to destination memory |
| src | Pointer to source data to be copied |
| num | Number of bytes to copy |
| void cLib_memSet | ( | void * | ptr, |
| int | value, | ||
| unsigned long | num ) |
Sets the first num bytes of given block of memory to specified value
| ptr | Pointer to block of memory |
| value | Value to be set |
| num | Number of bytes to set |
Adds an offset to a source position in a given angle direction and places the result in pdest
| pdest | The resulting position |
| psrc | The source position |
| angle | The direction to offset psrc in |
| vec | The offset cXyz to add to psrc |
Gets the target x-angle from position A to position B
| lhs | Pointer to position A |
| rhs | Pointer to position B |
Gets the target y-angle from position A to position B
| lhs | Reference to position A |
| rhs | Reference to position B |
Gets the target y-angle from position A to position B
| lhs | Pointer to position A |
| rhs | Pointer to position B |
| void MtxInit | ( | void | ) |
Initializes calc_mtx to mtx stack
Multiplies a src position by the calc_mtx and puts the result in dest
| src | The src position to be multiplied |
| dest | The resulting multiplied position |
| Mtx * MtxPull | ( | void | ) |
| void MtxPush | ( | void | ) |
|
static |