mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
0cf65151b3
* split c_math * split c_angle * split c_API_controller_pad * split c_API_graphic * split c_bg_s_chk * c_bg_s_gnd_chk split * more c_bg split * split c_cc_d * delete asm * split c_cc_s * split c_lib * split c_m2d and c_m3d_g_aab * split c_m3d_g_cir * split c_m3d_g_cps * split rest of c_m3d_g * split c_m3d * split c_malloc * split c_request * split c_sxyz * split and partly decompile c_xyz * format * c_angle.h * begin c_angle decomp * c_angle * progress adding stub classes for SComponent * more c_m3d * remove some asm and format * more m3d headers * more c_angle decomp * c_lib headers * add public to classes * fix csXyz member names * c_sxyz partly OK * move Zero csXyz to c_sxyz header * c_API_graphic * delete some unused asm * move math extern data, decompile some functions * delete unused asm * fix duplicated c_angle.h * fix an inlined function name, add more inlined functions for c_angle.h (currently unused) * format Co-authored-by: Pheenoh <pheenoh@gmail.com>
36 lines
1.4 KiB
C
36 lines
1.4 KiB
C
#ifndef __C_LIB_H_
|
|
#define __C_LIB_H_
|
|
|
|
#include "SComponent/c_xyz.h"
|
|
#include "global.h"
|
|
|
|
void cLib_memCpy(void*, const void*, unsigned long);
|
|
void cLib_memSet(void*, int, unsigned long);
|
|
float cLib_addCalc(float*, float, float, float, float);
|
|
void cLib_addCalc2(float*, float, float, float);
|
|
void cLib_addCalc0(float*, float, float);
|
|
float cLib_addCalcPos(cXyz*, const cXyz&, float, float, float);
|
|
float cLib_addCalcPosXZ(cXyz*, const cXyz&, float, float, float);
|
|
void cLib_addCalcPos2(cXyz*, const cXyz&, float, float);
|
|
void cLib_addCalcPosXZ2(cXyz*, const cXyz&, float, float);
|
|
short cLib_addCalcAngleS(short*, short, short, short, short);
|
|
void cLib_addCalcAngleS2(short*, short, short, short);
|
|
int cLib_chaseUC(unsigned char*, unsigned char, unsigned char);
|
|
int cLib_chaseS(short*, short, short);
|
|
int cLib_chaseF(float*, float, float);
|
|
int cLib_chasePos(cXyz*, const cXyz&, float);
|
|
int cLib_chasePosXZ(cXyz*, const cXyz&, float);
|
|
int cLib_chaseAngleS(short*, short, short);
|
|
short cLib_targetAngleY(const Vec*, const Vec*);
|
|
short cLib_targetAngleY(const Vec&, const Vec&);
|
|
short cLib_targetAngleX(const cXyz*, const cXyz*);
|
|
void cLib_offsetPos(cXyz*, const cXyz*, short, const cXyz*);
|
|
short cLib_distanceAngleS(short, short);
|
|
void MtxInit(void);
|
|
void MtxTrans(float, float, float, unsigned char);
|
|
void MtxScale(float, float, float, unsigned char);
|
|
void MtxPosition(cXyz*, cXyz*);
|
|
void MtxPush(void);
|
|
Mtx* MtxPull(void);
|
|
|
|
#endif |