2#include <libultra/gbi.h>
19 s16 temp_v0 = arg2->
flags;
21 if ((temp_v0 & 0x800) != 0) {
28 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
29 temp_f0 =
MAX(temp_f0, 0.0f);
36 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
39 arg1[3][0] = arg2->
pos[0];
40 arg1[3][1] = arg2->
pos[1];
41 arg1[3][2] = arg2->
pos[2];
58 s16 temp_v0 = arg2->
flags;
60 if ((temp_v0 & 0x800) != 0) {
67 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
68 temp_f0 =
MAX(temp_f0, 0.0f);
75 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
78 arg1[3][0] = arg2->
pos[0];
79 arg1[3][1] = arg2->
pos[1];
80 arg1[3][2] = arg2->
pos[2];
97 s16 temp_v0 = arg2->
flags;
99 if ((temp_v0 & 0x800) != 0) {
106 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
107 temp_f0 =
MAX(temp_f0, 0.0f);
110 if (temp_f0 < 0.0f) {
114 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
117 arg1[3][0] = arg2->
pos[0];
118 arg1[3][1] = arg2->
pos[1];
119 arg1[3][2] = arg2->
pos[2];
136 s16 temp_v0 = arg2->
flags;
138 if ((temp_v0 & 0x800) != 0) {
145 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
146 temp_f0 =
MAX(temp_f0, 0.0f);
149 if (temp_f0 < 0.0f) {
153 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 600.0f)) {
156 arg1[3][0] = arg2->
pos[0];
157 arg1[3][1] = arg2->
pos[1];
158 arg1[3][2] = arg2->
pos[2];
168 s16 temp_v0 = arg2->
flags;
170 if ((temp_v0 & 0x800) != 0) {
177 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
178 temp_f0 =
MAX(temp_f0, 0.0f);
181 if (temp_f0 < 0.0f) {
185 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
188 arg1[3][0] = arg2->
pos[0];
189 arg1[3][1] = arg2->
pos[1];
190 arg1[3][2] = arg2->
pos[2];
211 s16 temp_v0 = arg2->
flags;
213 if ((temp_v0 & 0x800) != 0) {
220 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
221 temp_f0 =
MAX(temp_f0, 0.0f);
224 if (temp_f0 < 0.0f) {
228 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
231 arg1[3][0] = arg2->
pos[0];
232 arg1[3][1] = arg2->
pos[1];
233 arg1[3][2] = arg2->
pos[2];
250 s16 temp_v0 = arg2->
flags;
252 if ((temp_v0 & 0x800) != 0) {
259 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
260 temp_f0 =
MAX(temp_f0, 0.0f);
263 if (temp_f0 < 0.0f) {
267 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
270 arg1[3][0] = arg2->
pos[0];
271 arg1[3][1] = arg2->
pos[1];
272 arg1[3][2] = arg2->
pos[2];
289 s16 temp_v0 = arg2->
flags;
291 if ((temp_v0 & 0x800) != 0) {
298 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
299 temp_f0 =
MAX(temp_f0, 0.0f);
302 if (temp_f0 < 0.0f) {
306 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
309 arg1[3][0] = arg2->
pos[0];
310 arg1[3][1] = arg2->
pos[1];
311 arg1[3][2] = arg2->
pos[2];
327 s16 temp_v0 = arg2->
flags;
329 if ((temp_v0 & 0x800) != 0) {
336 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
337 temp_f0 =
MAX(temp_f0, 0.0f);
340 if (temp_f0 < 0.0f) {
344 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
347 arg1[3][0] = arg2->
pos[0];
348 arg1[3][1] = arg2->
pos[1];
349 arg1[3][2] = arg2->
pos[2];
365 s16 temp_v0 = arg2->
flags;
367 if ((temp_v0 & 0x800) != 0) {
374 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
375 temp_f0 =
MAX(temp_f0, 0.0f);
378 if (temp_f0 < 0.0f) {
382 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
385 arg1[3][0] = arg2->
pos[0];
386 arg1[3][1] = arg2->
pos[1];
387 arg1[3][2] = arg2->
pos[2];
403 s16 temp_v0 = arg2->
flags;
405 if ((temp_v0 & 0x800) != 0) {
412 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
413 temp_f0 =
MAX(temp_f0, 0.0f);
416 if (temp_f0 < 0.0f) {
420 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
423 arg1[3][0] = arg2->
pos[0];
424 arg1[3][1] = arg2->
pos[1];
425 arg1[3][2] = arg2->
pos[2];
void gSPDisplayList(Gfx *pkt, Gfx *dl)
Definition GBIMiddleware.cpp:12
void func_8029794C(Vec3f pos, Vec3s rot, f32 scale)
Definition actors.c:470
f32 Mat4[4][4]
Definition common_structs.h:20
#define MAX(a, b)
Definition macros.h:144
Gfx * gDisplayListHead
Definition main.c:129
s32 render_set_position(Mat4 mtx, s32 arg1)
Definition math_util.c:53
f32 is_within_render_distance(Vec3f cameraPos, Vec3f objectPos, u16 orientationY, f32 minDistance, f32 fov, f32 maxDistance)
Definition math_util.c:1099
Definition actor_types.h:124
Vec3s rot
Definition actor_types.h:131
s16 flags
Definition actor_types.h:126
Vec3f pos
Definition actor_types.h:133
Vec3s rot
Definition camera.h:42
f32 fieldOfView
Definition camera.h:43
Vec3f pos
Definition camera.h:36
void render_actor_tree_cactus2_kalimari_desert(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the a second variant of cactus in Kalimari Desert.
Definition render.inc.c:363
void render_actor_tree_luigi_raceway(Camera *camera, Mat4 arg1, struct Actor *arg2)
Definition render.inc.c:166
void render_actor_tree_yoshi_valley(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the tree actor in Yoshi Valley.
Definition render.inc.c:56
void render_actor_tree_mario_raceway(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the tree actor in Mario rawceay.
Definition render.inc.c:17
void render_actor_tree_peach_castle(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders Peach's Castle trees in Royal Raceway.
Definition render.inc.c:209
void render_actor_tree_cactus1_kalimari_desert(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the a first variant of cactus in Kalimari Desert.
Definition render.inc.c:325
void render_actor_tree_cactus3_kalimari_desert(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the a third variant of cactus in Kalimari Desert.
Definition render.inc.c:401
void render_actor_tree_moo_moo_farm(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the tree actor in Moo Moo Farm.
Definition render.inc.c:134
void render_actor_tree_frappe_snowland(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the tree actor in Frappe Snowland.
Definition render.inc.c:287
void render_actor_bush_bowser_castle(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the bush actor in Bowser's Castle.
Definition render.inc.c:248
void render_actor_tree_royal_raceway(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the tree actor in Royal Raceway.
Definition render.inc.c:95