![]() |
Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
|
#include "gd_types.h"
Go to the source code of this file.
Variables | |
struct ObjCamera * | gViewUpdateCamera |
u8 | gUnref_801B9B30 [0x88] |
struct ObjGroup * | gGdLightGroup |
Apply GdObj.objDrawFn
to the input GdObj
if that object is draw-able.
obj | GdObj to draw |
Create GdDisplayList
structs for all ObjShapes
in grp
by calling create_shape_gddl()
.
printf
call Rendering fucntion for ObjBone
.
Call apply_obj_draw_fn()
to all GdObj
in input ObjGroup
grp | ObjGroup of objects to draw |
void draw_material | ( | struct ObjMaterial * | ) |
Rendering function for ObjParticle
.
Convert a numeric index into pointer to a struct GdColour.
A simple switch case to convert from index idx
to a pointer to the three f32 GdColour structure. Goddard stored the index in a structure, and uses this function to get the colour RGB values if needed. -1 uses the environment colour. A possible enhancement for this is to ennumerate all colours, and then use those enumerations and/or enum type where ever a colour is requested
idx | Index of colour |
Map material id's to ObjMaterial
pointers for an ObjGroup
of ObjFace
structs.
This is the final function used in dynlist processing (see chk_shapegen()
)
[in,out] | faces | ObjGroup of ObjFace structs to map over |
[in] | mtls | ObjGroup of ObjMaterial structs to map ids to pointers |
Convert vertex ID numbers for an ObjGroup
of ObjFace
s into pointers to ObjVertex
structures.
This function takes an ObjGroup
of ObjFace
structures whose vertices
field has indices and not pointers. These indices are transformed into pointers of ObjVertex
or ObjParticle
structures from the vtxgrp
ObjGroup
.
facegrp | ObjGroup of ObjFaces to map vertex indices to pointers |
vtxgrp | ObjGroup of ObjVertices /ObjParticles to be mapped against |
chk_shapegen()
, which performs a very similar task... The main per-frame function for handling a view.
This function handles updating and rendering a given ObjView
structure. It also handles the A button input for grabbing an area of an ObjShape
that is contained in the ObjView.components
group
view | The ObjView to update |
u8 gUnref_801B9B30[0x88] |