mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-21 17:55:13 -05:00
Some checks failed
build / build (push) Has been cancelled
* Remove decl files and rename main ParticleSystem struct * Document particle system new/init * Document generic particle system functions * Document particle system allocation functions * Document remaining particle system getters and setters * Particle system cleanup * Rename particle system files * Format files * PR feedback
19 lines
706 B
C
19 lines
706 B
C
#ifndef POKEPLATINUM_FX_UTIL_H
|
|
#define POKEPLATINUM_FX_UTIL_H
|
|
|
|
#include <nitro/fx/fx.h>
|
|
|
|
// clang-format off
|
|
#define VEC_FX32(__x, __y, __z) (VecFx32){ FX32_CONST(__x), FX32_CONST(__y), FX32_CONST(__z) }
|
|
#define VEC_FX16(__x, __y, __z) (VecFx16){ FX16_CONST(__x), FX16_CONST(__y), FX16_CONST(__z) }
|
|
// clang-format on
|
|
|
|
fx32 FX_Min(fx32 a, fx32 b);
|
|
fx32 FX_Max(fx32 a, fx32 b);
|
|
fx32 VEC_AngleBetween(const VecFx32 *param0, const VecFx32 *param1);
|
|
void MTX_Rot33Vec(MtxFx33 *outRot, VecFx32 *angles);
|
|
void MTX_Rot33Angles(MtxFx33 *outRot, u16 alpha, u16 beta, u16 gamma);
|
|
void CalcLinearFov(u16 angularFov, fx32 distance, fx32 aspectRatio, fx32 *outWidth, fx32 *outHeight);
|
|
|
|
#endif // POKEPLATINUM_FX_UTIL_H
|