Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
FoliageTransform.inc.c File Reference

Go to the source code of this file.

Data Structures

struct  FoliageModelList
 
struct  FoliageDropList
 
struct  FoliageVectorList
 
struct  SearchBushConfig
 
struct  ShakeTreeConfig
 
struct  FoliageDropList.drops
 

Functions

void N foliage_setup_shear_mtx (Matrix4f mtx, f32 scale, f32 xAmount, f32 zAmount)
 

Data Structure Documentation

◆ FoliageModelList

struct FoliageModelList
Data Fields
s32 count
s32 models[VLA]

◆ FoliageDropList

struct FoliageDropList
Data Fields
s32 count
struct FoliageDropList.drops drops[VLA]

◆ FoliageVectorList

struct FoliageVectorList
Data Fields
s32 count
Vec3i vectors[VLA]

◆ SearchBushConfig

struct SearchBushConfig
Data Fields
FoliageModelList * bush
FoliageDropList * drops
FoliageVectorList * vectors
EvtScript * callback

◆ ShakeTreeConfig

struct ShakeTreeConfig
Data Fields
FoliageModelList * leaves
FoliageModelList * trunk
FoliageDropList * drops
FoliageVectorList * vectors
EvtScript * callback

◆ FoliageDropList.drops

struct FoliageDropList.drops
Data Fields
s32 itemID
Vec3i pos
s32 spawnMode
Bytecode pickupFlag
Bytecode spawnFlag

Function Documentation

◆ foliage_setup_shear_mtx()

void N foliage_setup_shear_mtx ( Matrix4f mtx,
f32 scale,
f32 xAmount,
f32 zAmount )

Definition at line 41 of file FoliageTransform.inc.c.

41 {
42 guMtxIdentF(mtx);
43 mtx[1][0] = scale * xAmount;
44 mtx[1][1] = 1.0f;
45 mtx[1][2] = scale * zAmount;
46}