Mario Kart 64
Loading...
Searching...
No Matches
render.inc.c
Go to the documentation of this file.
1#include <camera.h>
2#include <actors.h>
3#include <main.h>
4#include <PR/gbi.h>
6
15void render_actor_cow(Camera* camera, Mat4 arg1, struct Actor* arg2) {
16 if (is_within_render_distance(camera->pos, arg2->pos, camera->rot[1], 0, gCameraZoom[camera - camera1],
17 4000000.0f) < 0) {
18 return;
19 }
20
21 arg1[3][0] = arg2->pos[0];
22 arg1[3][1] = arg2->pos[1];
23 arg1[3][2] = arg2->pos[2];
24
25 if (render_set_position(arg1, 0) != 0) {
26 switch (arg2->state) {
27 case 0:
29 break;
30 case 1:
32 break;
33 case 2:
35 break;
36 case 3:
38 break;
39 case 4:
41 break;
42 }
43 }
44}
Camera * camera1
Definition camera.c:23
f32 Mat4[4][4]
Definition common_structs.h:16
void render_actor_cow(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the cow actor. Actor used in Moo Moo Farm.
Definition render.inc.c:15
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
s32 render_set_position(Mat4 arg0, s32 arg1)
Definition math_util.c:47
Gfx d_course_moo_moo_farm_dl_cow2[]
Definition course_data.c:8704
Gfx d_course_moo_moo_farm_dl_cow3[]
Definition course_data.c:8725
Gfx d_course_moo_moo_farm_dl_cow5[]
Definition course_data.c:8767
Gfx d_course_moo_moo_farm_dl_cow1[]
Definition course_data.c:8691
Gfx d_course_moo_moo_farm_dl_cow4[]
Definition course_data.c:8746
Definition actor_types.h:120
s16 state
Definition actor_types.h:124
Vec3f pos
Definition actor_types.h:129
Definition camera.h:26
Vec3s rot
Definition camera.h:33
Vec3f pos
Definition camera.h:27