1#ifndef _EFFECT_SHIMS_H_
2#define _EFFECT_SHIMS_H_
19f32
shim_atan2(f32 startX, f32 startZ, f32 endX, f32 endZ);
25void shim_guPerspectiveF(f32 mf[4][4], u16* perspNorm, f32 fovy, f32 aspect, f32 near, f32 far, f32 scale);
27void shim_guPositionF(
float mf[4][4],
float r,
float p,
float h,
float s,
float x,
float y,
float z);
28void shim_guOrthoF(
float mf[4][4],
float l,
float r,
float b,
float t,
float n,
float f,
float scale);
29void shim_guFrustumF(
float mf[4][4],
float l,
float r,
float b,
float t,
float n,
float f,
float scale);
32 s32
flags,
WindowStyle windowStyle, s32 posX, s32 posY, s32 posZ, s32 width, s32 height, u8 opacity,
33 u8 darkening, f32 scaleX, f32 scaleY, f32 rotX, f32 rotY, f32 rotZ,
void (*fpDrawContents)(
void*),
34 void* drawContentsArg0,
Matrix4f rotScaleMtx, s32 translateX, s32 translateY, f32 (*outMtx)[4]
42#define guRotateF shim_guRotateF
43#define guTranslateF shim_guTranslateF
44#define guTranslate shim_guTranslate
45#define guScaleF shim_guScaleF
46#define guMtxCatF shim_guMtxCatF
47#define guMtxF2L shim_guMtxF2L
48#define queue_render_task shim_queue_render_task
49#define create_effect_instance shim_create_effect_instance
50#define remove_effect shim_remove_effect
51#define general_heap_malloc shim_general_heap_malloc
52#define mem_clear shim_mem_clear
53#define rand_int shim_rand_int
54#define clamp_angle shim_clamp_angle
55#define sin_deg shim_sin_deg
56#define cos_deg shim_cos_deg
57#define atan2 shim_atan2
58#define npc_raycast_down_sides shim_npc_raycast_down_sides
59#define load_effect shim_load_effect
60#define sqrtf shim_sqrtf
61#define mdl_draw_hidden_panel_surface shim_mdl_draw_hidden_panel_surface
62#define is_point_visible shim_is_point_visible
63#define guPerspectiveF shim_guPerspectiveF
64#define transform_point shim_transform_point
65#define guPositionF shim_guPositionF
66#define guOrthoF shim_guOrthoF
67#define guFrustumF shim_guFrustumF
68#define draw_prev_frame_buffer_at_screen_pos shim_draw_prev_frame_buffer_at_screen_pos
69#define draw_box shim_draw_box
70#define draw_msg shim_draw_msg
71#define get_msg_width shim_get_msg_width
72#define mdl_get_shroud_tint_params shim_mdl_get_shroud_tint_params
73#define sfx_play_sound_at_position shim_sfx_play_sound_at_position
74#define is_debug_panic shim_is_debug_panic
void shim_guRotateF(float mf[4][4], float a, float x, float y, float z)
void shim_guTranslate(Mtx *m, float x, float y, float z)
void shim_mdl_get_shroud_tint_params(u8 *r, u8 *g, u8 *b, u8 *a)
s32 shim_load_effect(s32 effectIndex)
void shim_transform_point(Matrix4f mtx, f32 inX, f32 inY, f32 inZ, f32 inS, f32 *outX, f32 *outY, f32 *outZ, f32 *outW)
void shim_guMtxCatF(float m[4][4], float n[4][4], float r[4][4])
void shim_guMtxF2L(float mf[4][4], Mtx *m)
void shim_remove_effect(EffectInstance *)
b32 shim_npc_raycast_down_sides(s32, f32 *, f32 *, f32 *, f32 *)
void shim_is_debug_panic(const char *message)
void shim_mem_clear(void *data, s32 numBytes)
void shim_draw_msg(s32, s32, s32, s32, s32, s32)
float shim_sqrtf(float value)
void shim_sfx_play_sound_at_position(s32 soundID, s32 value2, f32 posX, f32 posY, f32 posZ)
void shim_draw_box(s32 flags, WindowStyle windowStyle, s32 posX, s32 posY, s32 posZ, s32 width, s32 height, u8 opacity, u8 darkening, f32 scaleX, f32 scaleY, f32 rotX, f32 rotY, f32 rotZ, void(*fpDrawContents)(void *), void *drawContentsArg0, Matrix4f rotScaleMtx, s32 translateX, s32 translateY, f32(*outMtx)[4])
void shim_guScaleF(float mf[4][4], float x, float y, float z)
void shim_mdl_draw_hidden_panel_surface(Gfx **, u16 treeIndex)
void shim_guPositionF(float mf[4][4], float r, float p, float h, float s, float x, float y, float z)
void shim_guPerspectiveF(f32 mf[4][4], u16 *perspNorm, f32 fovy, f32 aspect, f32 near, f32 far, f32 scale)
void shim_guTranslateF(float mf[4][4], float x, float y, float z)
void shim_guOrthoF(float mf[4][4], float l, float r, float b, float t, float n, float f, float scale)
f32 shim_clamp_angle(f32 theta)
void shim_guFrustumF(float mf[4][4], float l, float r, float b, float t, float n, float f, float scale)
void * shim_general_heap_malloc(s32 size)
f32 shim_atan2(f32 startX, f32 startZ, f32 endX, f32 endZ)
EffectInstance * shim_create_effect_instance(EffectBlueprint *effectBp)
s32 shim_get_msg_width(s32, u16)
void shim_draw_prev_frame_buffer_at_screen_pos(s32, s32, s32, s32, f32)
s32 shim_is_point_visible(f32, f32, f32, s32, f32 *, f32 *)
RenderTask * shim_queue_render_task(RenderTask *task)