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) {
19 return;
20 }
21
22 arg1[3][0] = actor->pos[0];
23 arg1[3][1] = actor->pos[1];
24 arg1[3][2] = actor->pos[2];
25
26 maxObjectsReached = render_set_position(arg1, 0) == 0;
27 if (maxObjectsReached) {
28 return;
29 }
30
31 addr = (actor->rot[0] << 0xA) + 0x03009000; // Can this be a real symbol? Doesn't match.
32 gDPLoadTextureBlock(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(addr), G_IM_FMT_CI, G_IM_SIZ_8b, 32, 32, 0,
33 G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD,
34 G_TX_NOLOD);
36}
f32 Mat4[4][4]
Definition common_structs.h:16
Gfx d_course_dks_jungle_parkway_dl_kiwano_fruit[]
Definition course_data.c:5828
#define G_IM_SIZ_8b
Definition gbi.h:402
#define G_IM_FMT_CI
Definition gbi.h:394
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:23
#define VIRTUAL_TO_PHYSICAL(addr)
Definition macros.h:87
Gfx * gDisplayListHead
Definition main.c:132
s32 render_set_position(Mat4 arg0, s32 arg1)
Definition math_util.c:47
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