Mario Kart 64
Loading...
Searching...
No Matches
render.inc.c
Go to the documentation of this file.
1#include <actors.h>
2#include <PR/gbi.h>
3#include <main.h>
5
14void render_actor_kiwano_fruit(UNUSED Camera *camera, Mat4 arg1, struct Actor *actor) {
15 uintptr_t addr;
16 s32 maxObjectsReached;
17
18 if (actor->state == 0) { return; }
19
20 arg1[3][0] = actor->pos[0];
21 arg1[3][1] = actor->pos[1];
22 arg1[3][2] = actor->pos[2];
23
24 maxObjectsReached = render_set_position(arg1, 0) == 0;
25 if (maxObjectsReached) { return; }
26
27 addr = (actor->rot[0] << 0xA) + 0x03009000; // Can this be a real symbol? Doesn't match.
28 gDPLoadTextureBlock(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(addr),
29 G_IM_FMT_CI, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP,
30 G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
32}
f32 Mat4[4][4]
Definition common_structs.h:16
Gfx d_course_dks_jungle_parkway_dl_kiwano_fruit[]
Definition course_data.c:6028
#define G_IM_SIZ_8b
Definition gbi.h:406
#define G_IM_FMT_CI
Definition gbi.h:398
void render_actor_kiwano_fruit(UNUSED Camera *camera, Mat4 arg1, struct Actor *actor)
Renders the kiwano fruit actor. Actor used in DK's Jungle Parkway.
Definition render.inc.c:14
#define UNUSED
Definition macros.h:24
#define VIRTUAL_TO_PHYSICAL(addr)
Definition macros.h:73
Gfx * gDisplayListHead
Definition main.c:133
s32 render_set_position(Mat4 arg0, s32 arg1)
Definition math_util.c:49
Definition actor_types.h:120
s16 state
Definition actor_types.h:124
Vec3s rot
Definition actor_types.h:127
Vec3f pos
Definition actor_types.h:129
Definition camera.h:26
signed int s32
Definition ultratypes.h:15