/********************************************************************************/ /* box */ /********************************************************************************/ /*------------------------------------------------------------------------------*/ static long long box0 = 0; static Lights1 light_box[]={ ShapeColor(255,255,255), ShapeColor(255, 0,100) }; static long long box1 = 0; /*------------------------------------------------------------------------------*/ static Vtx vtx_box[] = { { 80, 80, 80, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 80, 80, -80, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -80, 80, -80, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -80, 80, 80, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 80, -80, 80, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 80, 80, 80, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -80, 80, 80, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -80, -80, 80, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 80, -80, -80, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 80, 80, -80, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 80, 80, 80, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 80, -80, 80, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { -80, -80, -80, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 80, -80, -80, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 80, -80, 80, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -80, -80, 80, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -80, 80, 80, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, 80, -80, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, -80, -80, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, -80, 80, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, 80, -80, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 80, 80, -88, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 80, -80, -80, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { -80, -80, -80, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, }; /*------------------------------------------------------------------------------*/ Gfx RCP_boxdata[] = { gsSPNumLights((&light_box[0].n)), gsSPLight((&light_box[0].l[0]),1), gsSPLight((&light_box[0].a),2), gsSPVertex(&vtx_box[0], 12, 0), gsSP1Triangle(0, 1, 2, 0), gsSP1Triangle(0, 2, 3, 0), gsSP1Triangle(4, 5, 6, 0), gsSP1Triangle(4, 6, 7, 0), gsSP1Triangle(8, 9, 10, 0), gsSP1Triangle(8, 10, 11, 0), gsSPVertex(&vtx_box[12], 12, 0), gsSP1Triangle(0, 1, 2, 0), gsSP1Triangle(0, 2, 3, 0), gsSP1Triangle(4, 5, 6, 0), gsSP1Triangle(4, 6, 7, 0), gsSP1Triangle(8, 9, 10, 0), gsSP1Triangle(8, 10, 11, 0), gsSPEndDisplayList() }; Hierarchy RCP_box[] = { hmsGfxMatrix(RM_SURF, RCP_boxdata, NULL) hmsExit() }; /*------------------------------------------------------------------------------*/