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];
167 s16 temp_v0 = arg2->
flags;
169 if ((temp_v0 & 0x800) != 0) {
176 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
177 temp_f0 =
MAX(temp_f0, 0.0f);
180 if (temp_f0 < 0.0f) {
184 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
187 arg1[3][0] = arg2->
pos[0];
188 arg1[3][1] = arg2->
pos[1];
189 arg1[3][2] = arg2->
pos[2];
210 s16 temp_v0 = arg2->
flags;
212 if ((temp_v0 & 0x800) != 0) {
219 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
220 temp_f0 =
MAX(temp_f0, 0.0f);
223 if (temp_f0 < 0.0f) {
227 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
230 arg1[3][0] = arg2->
pos[0];
231 arg1[3][1] = arg2->
pos[1];
232 arg1[3][2] = arg2->
pos[2];
249 s16 temp_v0 = arg2->
flags;
251 if ((temp_v0 & 0x800) != 0) {
258 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
259 temp_f0 =
MAX(temp_f0, 0.0f);
262 if (temp_f0 < 0.0f) {
266 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
269 arg1[3][0] = arg2->
pos[0];
270 arg1[3][1] = arg2->
pos[1];
271 arg1[3][2] = arg2->
pos[2];
288 s16 temp_v0 = arg2->
flags;
290 if ((temp_v0 & 0x800) != 0) {
297 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
298 temp_f0 =
MAX(temp_f0, 0.0f);
301 if (temp_f0 < 0.0f) {
305 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
308 arg1[3][0] = arg2->
pos[0];
309 arg1[3][1] = arg2->
pos[1];
310 arg1[3][2] = arg2->
pos[2];
326 s16 temp_v0 = arg2->
flags;
328 if ((temp_v0 & 0x800) != 0) {
335 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
336 temp_f0 =
MAX(temp_f0, 0.0f);
339 if (temp_f0 < 0.0f) {
343 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
346 arg1[3][0] = arg2->
pos[0];
347 arg1[3][1] = arg2->
pos[1];
348 arg1[3][2] = arg2->
pos[2];
364 s16 temp_v0 = arg2->
flags;
366 if ((temp_v0 & 0x800) != 0) {
373 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
374 temp_f0 =
MAX(temp_f0, 0.0f);
377 if (temp_f0 < 0.0f) {
381 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
384 arg1[3][0] = arg2->
pos[0];
385 arg1[3][1] = arg2->
pos[1];
386 arg1[3][2] = arg2->
pos[2];
402 s16 temp_v0 = arg2->
flags;
404 if ((temp_v0 & 0x800) != 0) {
411 if (CVarGetInteger(
"gNoCulling", 0) == 1) {
412 temp_f0 =
MAX(temp_f0, 0.0f);
415 if (temp_f0 < 0.0f) {
419 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
422 arg1[3][0] = arg2->
pos[0];
423 arg1[3][1] = arg2->
pos[1];
424 arg1[3][2] = arg2->
pos[2];
void gSPDisplayList(Gfx *pkt, Gfx *dl)
Definition GBIMiddleware.cpp:11
void func_8029794C(Vec3f pos, Vec3s rot, f32 scale)
Definition actors.c:466
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 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:362
void render_actor_tree_luigi_raceway(Camera *camera, Mat4 arg1, struct Actor *arg2)
Definition render.inc.c:165
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_peach_castle(Camera *camera, Mat4 arg1, struct Actor *arg2)
Renders Peach's Castle trees in Royal Raceway.
Definition render.inc.c:208
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:324
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:400
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:286
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:247
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