Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Enumerations | Functions | Variables
renderer.h File Reference
#include <ultra64.h>
#include "gd_types.h"

Go to the source code of this file.

Enumerations

enum  GdProperty {
  GD_PROP_OVERLAY = 4, GD_PROP_LIGHTING = 11, GD_PROP_AMB_COLOUR = 12, GD_PROP_DIFUSE_COLOUR = 13,
  GD_PROP_LIGHT_DIR = 15, GD_PROP_CULLING = 16, GD_PROP_STUB17 = 17, GD_PROP_STUB18 = 18,
  GD_PROP_STUB19 = 19, GD_PROP_STUB20 = 20, GD_PROP_STUB21 = 21, GD_PROP_ZBUF_FN = 22
}
 Properties types used in gd_setproperty; most are stubbed out. More...
 

Functions

u32 get_alloc_mem_amt (void)
 
s32 gd_get_ostime (void)
 
f32 get_time_scale (void)
 
f64 gd_sin_d (f64)
 
f64 gd_cos_d (f64)
 
f64 gd_sqrt_d (f64)
 
void gd_printf (const char *,...)
 
void gd_exit (s32)
 
void gd_free (void *)
 
voidgd_allocblock (u32)
 
voidgd_malloc (u32, u8)
 
voidgd_malloc_perm (u32)
 
voidgd_malloc_temp (u32)
 
void func_8019BD0C (s32, s32)
 
void gd_add_to_heap (void *, u32)
 
void gdm_init (void *, u32)
 
void gdm_setup (void)
 
void gdm_maketestdl (s32)
 
void gd_vblank (void)
 
void gd_copy_p1_contpad (OSContPad *)
 
s32 gd_sfx_to_play (void)
 
voidgdm_gettestdl (s32)
 
void gd_draw_rect (f32, f32, f32, f32)
 
void gd_draw_border_rect (f32, f32, f32, f32)
 
void gd_set_fill (struct GdColour *)
 
void stash_current_gddl (void)
 
void pop_gddl_stash (void)
 
s32 gd_startdisplist (s32)
 
s32 gd_end_dl ()
 
void add_mat4_load_to_dl (Mat4f *)
 
void push_idn_mtx_cur_gddl (void)
 
void pop_mtx_gddl (void)
 
void translate_mtx_gddl (f32, f32, f32)
 
void translate_load_mtx_gddl (f32, f32, f32)
 
void func_8019F258 (f32, f32, f32)
 
void func_8019F2C4 (f32, s8)
 
void func_8019F318 (struct ObjCamera *a, f32, f32, f32, f32, f32, f32, f32)
 
void check_tri_display (s32)
 
Vtxmake_Vtx_if_new (f32, f32, f32, f32)
 
void func_8019FEF0 (void)
 
void add_tri_to_dl (f32, f32, f32, f32, f32, f32, f32, f32, f32)
 
void func_801A0038 (void)
 
void func_801A0070 (void)
 
void func_801A02B8 (f32)
 
void func_801A0324 (s32)
 
void set_light_num (s32)
 
s32 create_mtl_gddl (s32)
 
void branch_to_gddl (s32)
 
void func_801A0478 (s32, struct ObjCamera *, struct GdVec3f *, struct GdVec3f *, struct GdVec3f *, struct GdColour *)
 
s32 func_801A086C (s32, struct GdColour *, s32)
 
void set_Vtx_norm_buf_1 (struct GdVec3f *)
 
void set_Vtx_norm_buf_2 (struct GdVec3f *)
 
void set_gd_mtx_parameters (s32)
 
void gd_set_one_cycle (void)
 
void func_801A2374 (s32)
 
void start_view_dl (struct ObjView *)
 
void border_active_view (void)
 
void gd_shading (s32)
 
s32 gd_getproperty (s32, void *)
 
void gd_setproperty (enum GdProperty, f32, f32, f32)
 
void func_801A3AF0 (f32, f32, f32, f32, f32, f32)
 
void func_801A3C8C (f32, f32, f32, f32)
 
s32 setup_view_buffers (const char *, struct ObjView *, s32, s32, s32, s32)
 
void gd_init_controllers (void)
 
void Proc801A43DC (struct GdObj *)
 
voidfunc_801A43F0 (const char *,...)
 
void Proc801A4410 (void *)
 
void Proc801A4424 (void *)
 
void func_801A4438 (f32, f32, f32)
 
void func_801A48C4 (u32)
 
void func_801A48D8 (char *)
 
void set_active_view (struct ObjView *)
 
void func_801A520C (void)
 
void gd_init (void)
 
void func_801A5998 (s8 *)
 
void func_801A59AC (void *)
 
void func_801A59C0 (s8 *)
 
void init_pick_buf (s16 *, s32)
 
void store_in_pickbuf (s16)
 
s32 get_cur_pickbuf_offset (s16 *)
 
void set_Vtx_tc_buf (f32, f32)
 
struct GdObjload_dynlist (struct DynList *)
 

Variables

s32 gGdFrameBuf
 

Enumeration Type Documentation

◆ GdProperty

enum GdProperty

Properties types used in gd_setproperty; most are stubbed out.

Enumerator
GD_PROP_OVERLAY 
GD_PROP_LIGHTING 
GD_PROP_AMB_COLOUR 
GD_PROP_DIFUSE_COLOUR 
GD_PROP_LIGHT_DIR 
GD_PROP_CULLING 
GD_PROP_STUB17 
GD_PROP_STUB18 
GD_PROP_STUB19 
GD_PROP_STUB20 
GD_PROP_STUB21 
GD_PROP_ZBUF_FN 

Function Documentation

◆ add_mat4_load_to_dl()

void add_mat4_load_to_dl ( Mat4f )

◆ add_tri_to_dl()

void add_tri_to_dl ( f32  ,
f32  ,
f32  ,
f32  ,
f32  ,
f32  ,
f32  ,
f32  ,
f32   
)

◆ border_active_view()

void border_active_view ( void  )

◆ branch_to_gddl()

void branch_to_gddl ( s32  )

◆ check_tri_display()

void check_tri_display ( s32  )

◆ create_mtl_gddl()

s32 create_mtl_gddl ( s32  )

◆ func_8019BD0C()

void func_8019BD0C ( s32  ,
s32   
)

◆ func_8019F258()

void func_8019F258 ( f32  ,
f32  ,
f32   
)

◆ func_8019F2C4()

void func_8019F2C4 ( f32  ,
s8   
)

◆ func_8019F318()

void func_8019F318 ( struct ObjCamera a,
f32  ,
f32  ,
f32  ,
f32  ,
f32  ,
f32  ,
f32   
)

◆ func_8019FEF0()

void func_8019FEF0 ( void  )

◆ func_801A0038()

void func_801A0038 ( void  )

◆ func_801A0070()

void func_801A0070 ( void  )

◆ func_801A02B8()

void func_801A02B8 ( f32  )

◆ func_801A0324()

void func_801A0324 ( s32  )

◆ func_801A0478()

void func_801A0478 ( s32  ,
struct ObjCamera ,
struct GdVec3f ,
struct GdVec3f ,
struct GdVec3f ,
struct GdColour  
)

◆ func_801A086C()

s32 func_801A086C ( s32  ,
struct GdColour ,
s32   
)

◆ func_801A2374()

void func_801A2374 ( s32  )

◆ func_801A3AF0()

void func_801A3AF0 ( f32  ,
f32  ,
f32  ,
f32  ,
f32  ,
f32   
)

◆ func_801A3C8C()

void func_801A3C8C ( f32  ,
f32  ,
f32  ,
f32   
)

◆ func_801A43F0()

void* func_801A43F0 ( const char ,
  ... 
)

◆ func_801A4438()

void func_801A4438 ( f32  ,
f32  ,
f32   
)

◆ func_801A48C4()

void func_801A48C4 ( u32  )

◆ func_801A48D8()

void func_801A48D8 ( char )

◆ func_801A520C()

void func_801A520C ( void  )

◆ func_801A5998()

void func_801A5998 ( s8 )

◆ func_801A59AC()

void func_801A59AC ( void )

◆ func_801A59C0()

void func_801A59C0 ( s8 )

◆ gd_add_to_heap()

void gd_add_to_heap ( void ,
u32   
)

◆ gd_allocblock()

void* gd_allocblock ( u32  )

◆ gd_copy_p1_contpad()

void gd_copy_p1_contpad ( OSContPad *  )

◆ gd_cos_d()

f64 gd_cos_d ( f64  )

◆ gd_draw_border_rect()

void gd_draw_border_rect ( f32  ,
f32  ,
f32  ,
f32   
)

◆ gd_draw_rect()

void gd_draw_rect ( f32  ,
f32  ,
f32  ,
f32   
)

◆ gd_end_dl()

s32 gd_end_dl ( )

◆ gd_exit()

void gd_exit ( s32  )

◆ gd_free()

void gd_free ( void )

◆ gd_get_ostime()

s32 gd_get_ostime ( void  )

◆ gd_getproperty()

s32 gd_getproperty ( s32  ,
void  
)

◆ gd_init()

void gd_init ( void  )

◆ gd_init_controllers()

void gd_init_controllers ( void  )

◆ gd_malloc()

void* gd_malloc ( u32  ,
u8   
)

◆ gd_malloc_perm()

void* gd_malloc_perm ( u32  )

◆ gd_malloc_temp()

void* gd_malloc_temp ( u32  )

◆ gd_printf()

void gd_printf ( const char ,
  ... 
)
Bug:
formatter 'c' uses s32 for va_arg instead of char

◆ gd_set_fill()

void gd_set_fill ( struct GdColour )

◆ gd_set_one_cycle()

void gd_set_one_cycle ( void  )

◆ gd_setproperty()

void gd_setproperty ( enum  GdProperty,
f32  ,
f32  ,
f32   
)

◆ gd_sfx_to_play()

s32 gd_sfx_to_play ( void  )

◆ gd_shading()

void gd_shading ( s32  )

◆ gd_sin_d()

f64 gd_sin_d ( f64  )

◆ gd_sqrt_d()

f64 gd_sqrt_d ( f64  )

◆ gd_startdisplist()

s32 gd_startdisplist ( s32  )

◆ gd_vblank()

void gd_vblank ( void  )

◆ gdm_gettestdl()

void* gdm_gettestdl ( s32  )
Bug:
Code treats sYoshiSceneView as group; not called in game though
Bug:
Code treats sCarSceneView as group; not called in game though

◆ gdm_init()

void gdm_init ( void ,
u32   
)

◆ gdm_maketestdl()

void gdm_maketestdl ( s32  )

◆ gdm_setup()

void gdm_setup ( void  )

◆ get_alloc_mem_amt()

u32 get_alloc_mem_amt ( void  )

◆ get_cur_pickbuf_offset()

s32 get_cur_pickbuf_offset ( s16 )

◆ get_time_scale()

f32 get_time_scale ( void  )

◆ init_pick_buf()

void init_pick_buf ( s16 ,
s32   
)

◆ load_dynlist()

struct GdObj* load_dynlist ( struct DynList )

◆ make_Vtx_if_new()

Vtx* make_Vtx_if_new ( f32  ,
f32  ,
f32  ,
f32   
)

◆ pop_gddl_stash()

void pop_gddl_stash ( void  )

◆ pop_mtx_gddl()

void pop_mtx_gddl ( void  )

◆ Proc801A43DC()

void Proc801A43DC ( struct GdObj )

◆ Proc801A4410()

void Proc801A4410 ( void )

◆ Proc801A4424()

void Proc801A4424 ( void )

◆ push_idn_mtx_cur_gddl()

void push_idn_mtx_cur_gddl ( void  )

◆ set_active_view()

void set_active_view ( struct ObjView )

◆ set_gd_mtx_parameters()

void set_gd_mtx_parameters ( s32  )

◆ set_light_num()

void set_light_num ( s32  )

◆ set_Vtx_norm_buf_1()

void set_Vtx_norm_buf_1 ( struct GdVec3f )

◆ set_Vtx_norm_buf_2()

void set_Vtx_norm_buf_2 ( struct GdVec3f )

◆ set_Vtx_tc_buf()

void set_Vtx_tc_buf ( f32  ,
f32   
)

◆ setup_view_buffers()

s32 setup_view_buffers ( const char ,
struct ObjView ,
s32  ,
s32  ,
s32  ,
s32   
)

◆ start_view_dl()

void start_view_dl ( struct ObjView )

◆ stash_current_gddl()

void stash_current_gddl ( void  )

◆ store_in_pickbuf()

void store_in_pickbuf ( s16  )

◆ translate_load_mtx_gddl()

void translate_load_mtx_gddl ( f32  ,
f32  ,
f32   
)

◆ translate_mtx_gddl()

void translate_mtx_gddl ( f32  ,
f32  ,
f32   
)

Variable Documentation

◆ gGdFrameBuf

s32 gGdFrameBuf