sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

dynlist_test_cube.c (2731B)


      1 // early unused test dynlist
      2 #include <PR/ultratypes.h>
      3 
      4 #include "dynlist_macros.h"
      5 #include "dynlists.h"
      6 #include "../dynlist_proc.h"
      7 // maybe move types into the dynlists.h file?
      8 
      9 struct DynList dynlist_test_cube[] = {
     10     BeginList(),
     11 
     12     StartGroup("ico1vg"),
     13         MakeVertex(-2.0, 0.0, -2.0),
     14         MakeVertex(-2.0, 0.0, 2.0),
     15         MakeVertex(2.0, 0.0, 2.0),
     16         MakeVertex(2.0, 0.0, -2.0),
     17         MakeVertex(0.0, 3.0, 0.0),
     18         MakeVertex(0.0, -3.0, 0.0),
     19     EndGroup("ico1vg"),
     20 
     21     StartGroup("ico1pg"),
     22         MakeDynObj(D_FACE, NULL),
     23             SetMaterial(0),
     24             SetParamPtr(PARM_PTR_OBJ_VTX, 0),
     25             SetParamPtr(PARM_PTR_OBJ_VTX, 1),
     26             SetParamPtr(PARM_PTR_OBJ_VTX, 2),
     27         MakeDynObj(D_FACE, NULL),
     28             SetMaterial(0),
     29             SetParamPtr(PARM_PTR_OBJ_VTX, 0),
     30             SetParamPtr(PARM_PTR_OBJ_VTX, 2),
     31             SetParamPtr(PARM_PTR_OBJ_VTX, 3),
     32         MakeDynObj(D_FACE, NULL),
     33             SetMaterial(0),
     34             SetParamPtr(PARM_PTR_OBJ_VTX, 4),
     35             SetParamPtr(PARM_PTR_OBJ_VTX, 2),
     36             SetParamPtr(PARM_PTR_OBJ_VTX, 3),
     37         MakeDynObj(D_FACE, NULL),
     38             SetMaterial(0),
     39             SetParamPtr(PARM_PTR_OBJ_VTX, 1),
     40             SetParamPtr(PARM_PTR_OBJ_VTX, 2),
     41             SetParamPtr(PARM_PTR_OBJ_VTX, 4),
     42         MakeDynObj(D_FACE, NULL),
     43             SetMaterial(0),
     44             SetParamPtr(PARM_PTR_OBJ_VTX, 1),
     45             SetParamPtr(PARM_PTR_OBJ_VTX, 4),
     46             SetParamPtr(PARM_PTR_OBJ_VTX, 0),
     47         MakeDynObj(D_FACE, NULL),
     48             SetMaterial(0),
     49             SetParamPtr(PARM_PTR_OBJ_VTX, 3),
     50             SetParamPtr(PARM_PTR_OBJ_VTX, 0),
     51             SetParamPtr(PARM_PTR_OBJ_VTX, 4),
     52         MakeDynObj(D_FACE, NULL),
     53             SetMaterial(0),
     54             SetParamPtr(PARM_PTR_OBJ_VTX, 5),
     55             SetParamPtr(PARM_PTR_OBJ_VTX, 3),
     56             SetParamPtr(PARM_PTR_OBJ_VTX, 2),
     57         MakeDynObj(D_FACE, NULL),
     58             SetMaterial(0),
     59             SetParamPtr(PARM_PTR_OBJ_VTX, 1),
     60             SetParamPtr(PARM_PTR_OBJ_VTX, 5),
     61             SetParamPtr(PARM_PTR_OBJ_VTX, 2),
     62         MakeDynObj(D_FACE, NULL),
     63             SetMaterial(0),
     64             SetParamPtr(PARM_PTR_OBJ_VTX, 1),
     65             SetParamPtr(PARM_PTR_OBJ_VTX, 0),
     66             SetParamPtr(PARM_PTR_OBJ_VTX, 5),
     67         MakeDynObj(D_FACE, NULL),
     68             SetMaterial(0),
     69             SetParamPtr(PARM_PTR_OBJ_VTX, 3),
     70             SetParamPtr(PARM_PTR_OBJ_VTX, 5),
     71             SetParamPtr(PARM_PTR_OBJ_VTX, 0),
     72     EndGroup("ico1pg"),
     73 
     74     UseObj("ico1pg"),
     75         MapVertices("ico1vg"),
     76 
     77     MakeDynObj(D_SHAPE, "ico1_sh"),
     78         SetNodeGroup("ico1vg"),
     79         SetPlaneGroup("ico1pg"),
     80 
     81     EndList(),
     82 };