2#include <libultra/gbi.h>
18 s16 temp_v0 = arg2->
flags;
20 if ((temp_v0 & 0x800) != 0) {
27 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
28 temp_f0 =
MAX(temp_f0, 0.0f);
35 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
38 arg1[3][0] = arg2->
pos[0];
39 arg1[3][1] = arg2->
pos[1];
40 arg1[3][2] = arg2->
pos[2];
57 s16 temp_v0 = arg2->
flags;
59 if ((temp_v0 & 0x800) != 0) {
66 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
67 temp_f0 =
MAX(temp_f0, 0.0f);
74 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
77 arg1[3][0] = arg2->
pos[0];
78 arg1[3][1] = arg2->
pos[1];
79 arg1[3][2] = arg2->
pos[2];
96 s16 temp_v0 = arg2->
flags;
98 if ((temp_v0 & 0x800) != 0) {
105 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
106 temp_f0 =
MAX(temp_f0, 0.0f);
109 if (temp_f0 < 0.0f) {
113 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
116 arg1[3][0] = arg2->
pos[0];
117 arg1[3][1] = arg2->
pos[1];
118 arg1[3][2] = arg2->
pos[2];
135 s16 temp_v0 = arg2->
flags;
137 if ((temp_v0 & 0x800) != 0) {
144 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
145 temp_f0 =
MAX(temp_f0, 0.0f);
148 if (temp_f0 < 0.0f) {
152 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 600.0f)) {
155 arg1[3][0] = arg2->
pos[0];
156 arg1[3][1] = arg2->
pos[1];
157 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];
220 s16 temp_v0 = arg2->
flags;
222 if ((temp_v0 & 0x800) != 0) {
229 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
230 temp_f0 =
MAX(temp_f0, 0.0f);
233 if (temp_f0 < 0.0f) {
237 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
240 arg1[3][0] = arg2->
pos[0];
241 arg1[3][1] = arg2->
pos[1];
242 arg1[3][2] = arg2->
pos[2];
259 s16 temp_v0 = arg2->
flags;
261 if ((temp_v0 & 0x800) != 0) {
268 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
269 temp_f0 =
MAX(temp_f0, 0.0f);
272 if (temp_f0 < 0.0f) {
276 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
279 arg1[3][0] = arg2->
pos[0];
280 arg1[3][1] = arg2->
pos[1];
281 arg1[3][2] = arg2->
pos[2];
298 s16 temp_v0 = arg2->
flags;
300 if ((temp_v0 & 0x800) != 0) {
307 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
308 temp_f0 =
MAX(temp_f0, 0.0f);
311 if (temp_f0 < 0.0f) {
315 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
318 arg1[3][0] = arg2->
pos[0];
319 arg1[3][1] = arg2->
pos[1];
320 arg1[3][2] = arg2->
pos[2];
336 s16 temp_v0 = arg2->
flags;
338 if ((temp_v0 & 0x800) != 0) {
345 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
346 temp_f0 =
MAX(temp_f0, 0.0f);
349 if (temp_f0 < 0.0f) {
353 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
356 arg1[3][0] = arg2->
pos[0];
357 arg1[3][1] = arg2->
pos[1];
358 arg1[3][2] = arg2->
pos[2];
374 s16 temp_v0 = arg2->
flags;
376 if ((temp_v0 & 0x800) != 0) {
383 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
384 temp_f0 =
MAX(temp_f0, 0.0f);
387 if (temp_f0 < 0.0f) {
391 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
394 arg1[3][0] = arg2->
pos[0];
395 arg1[3][1] = arg2->
pos[1];
396 arg1[3][2] = arg2->
pos[2];
412 s16 temp_v0 = arg2->
flags;
414 if ((temp_v0 & 0x800) != 0) {
421 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
422 temp_f0 =
MAX(temp_f0, 0.0f);
425 if (temp_f0 < 0.0f) {
429 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
432 arg1[3][0] = arg2->
pos[0];
433 arg1[3][1] = arg2->
pos[1];
434 arg1[3][2] = arg2->
pos[2];
void gSPDisplayList(Gfx *pkt, Gfx *dl)
Definition GBIMiddleware.cpp:11
bool IsLuigiRaceway()
Definition Game.cpp:721
void func_8029794C(Vec3f pos, Vec3s rot, f32 scale)
Definition actors.c:460
Camera * camera1
Definition camera.c:29
f32 Mat4[4][4]
Definition common_structs.h:20
#define MAX(a, b)
Definition macros.h:130
Gfx * gDisplayListHead
Definition main.c:136
f32 gCameraZoom[4]
Definition main.c:126
s32 render_set_position(Mat4 mtx, s32 arg1)
Definition math_util.c:54
f32 is_within_render_distance(Vec3f cameraPos, Vec3f objectPos, u16 orientationY, f32 minDistance, f32 fov, f32 maxDistance)
Definition math_util.c:1100
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:34
Vec3f pos
Definition camera.h:28
void func_80299864(Camera *camera, Mat4 arg1, struct Actor *arg2)
Definition render.inc.c:166
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:372
void render_actor_tree_yoshi_valley(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the tree actor in Yoshi Valley.
Definition render.inc.c:55
void render_actor_tree_mario_raceway(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the tree actor in Mario rawceay.
Definition render.inc.c:16
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:334
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:410
void render_actor_tree_bowser_castle(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the tree actor in Bowser's Castle.
Definition render.inc.c:218
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:133
void render_actor_tree_frappe_snowland(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the tree actor in Frappe Snowland.
Definition render.inc.c:296
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:257
void render_actor_tree_royal_raceway(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders the tree actor in Royal Raceway.
Definition render.inc.c:94