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
13void render_actor_wario_sign(Camera* arg0, struct Actor* arg1) {
14 Mat4 sp38;
15 f32 unk =
16 is_within_render_distance(arg0->pos, arg1->pos, arg0->rot[1], 0, gCameraZoom[arg0 - camera1], 16000000.0f);
17
18 if (!(unk < 0.0f)) {
19 gSPSetGeometryMode(gDisplayListHead++, G_SHADING_SMOOTH);
20 gSPClearGeometryMode(gDisplayListHead++, G_LIGHTING);
21
22 mtxf_pos_rotation_xyz(sp38, arg1->pos, arg1->rot);
23 if (render_set_position(sp38, 0) != 0) {
24
26 }
27 }
28}
Camera * camera1
Definition camera.c:23
f32 Mat4[4][4]
Definition common_structs.h:16
#define G_SHADING_SMOOTH
Definition gbi.h:349
#define G_LIGHTING
Definition gbi.h:355
Gfx * gDisplayListHead
Definition main.c:132
f32 gCameraZoom[4]
Definition main.c:122
f32 is_within_render_distance(Vec3f cameraPos, Vec3f objectPos, u16 orientationY, f32 minDistance, f32 fov, f32 maxDistance)
Definition math_util.c:1114
void mtxf_pos_rotation_xyz(Mat4 out, Vec3f pos, Vec3s orientation)
Definition math_util.c:468
s32 render_set_position(Mat4 arg0, s32 arg1)
Definition math_util.c:47
Definition actor_types.h:120
Vec3s rot
Definition actor_types.h:127
Vec3f pos
Definition actor_types.h:129
Definition camera.h:26
Vec3s rot
Definition camera.h:33
Vec3f pos
Definition camera.h:27
float f32
Definition ultratypes.h:34
void render_actor_wario_sign(Camera *arg0, struct Actor *arg1)
Renders the Wario sign actor. Used in Wario Stadium.
Definition render.inc.c:13
Gfx d_course_wario_stadium_dl_sign[]
Definition course_data.c:2913