/********************************************************************************/ /* cube */ /********************************************************************************/ /*------------------------------------------------------------------------------*/ static long long cube0 = 0; static Lights1 light_cube[]={ ShapeColor(255,255,255), ShapeColor(255, 0,100) }; static long long cube1 = 0; /*------------------------------------------------------------------------------*/ static Vtx vtx_cube[] = { { 80, 0, 20, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 80, 0, -20, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -80, 0, -20, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -80, 0, 20, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 80, -20, 20, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 80, 0, 20, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -80, 0, 20, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -80, -20, 20, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 80, -20, -20, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 80, 0, -20, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 80, 0, 20, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 80, -20, 20, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { -80, -20, -20, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 80, -20, -20, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 80, -20, 20, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -80, -20, 20, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -80, 0, 20, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, 0, -20, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, -20, -20, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, -20, 20, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, 0, -20, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 80, 0, -20, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 80, -20, -20, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { -80, -20, -20, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 80, 10, 20, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 80, 10, 10, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -80, 10, 10, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -80, 10, 20, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, }; /*------------------------------------------------------------------------------*/ Gfx RCP_cube[] = { gsSPNumLights((&light_cube[0].n)), gsSPLight((&light_cube[0].l[0]),1), gsSPLight((&light_cube[0].a),2), gsSPVertex(&vtx_cube[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_cube[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), #if 0 gsSPNumLights((&light_cube[1].n)), gsSPLight((&light_cube[1].l[0]),1), gsSPLight((&light_cube[1].a),2), gsSPVertex(&vtx_cube[24], 4, 0), gsSP1Triangle(0, 1, 2, 0), gsSP1Triangle(0, 2, 3, 0), #endif gsSPEndDisplayList() }; Hierarchy RCP_jet[] = { /* hmsGfxRotate(RM_SURF, RCP_cube, 0,0,0) */ hmsGfxMatrix(RM_SURF, RCP_cube, NULL) hmsExit() }; /*------------------------------------------------------------------------------*/ /* test cube */ /*------------------------------------------------------------------------------*/ static long long testcube0 = 0; static Lights1 light_testcube[]={ ShapeColor(255,255,255), ShapeColor(255, 0,100) }; static long long testcube1 = 0; /*------------------------------------------------------------------------------*/ static Vtx vtx_testcube[] = { { 2, 40, 2, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 2, 40, -2, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -2, 40, -2, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -2, 40, 2, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 2, -40, 2, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 2, 40, 2, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -2, 40, 2, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -2, -40, 2, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 2, -40, -2, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 2, 40, -2, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 2, 40, 2, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 2, -40, 2, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { -2, -40, -2, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 2, -40, -2, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 2, -40, 2, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -2, -40, 2, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -2, 40, 2, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -2, 40, -2, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -2, -40, -2, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -2, -40, 2, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -2, 40, -2, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 2, 40, -2, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 2, -40, -2, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { -2, -40, -2, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, }; /*------------------------------------------------------------------------------*/ Gfx RCP_testcube[] = { gsSPNumLights((&light_testcube[0].n)), gsSPLight((&light_testcube[0].l[0]),1), gsSPLight((&light_testcube[0].a),2), gsSPVertex(&vtx_testcube[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_testcube[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_MTXtestcube[] = { hmsGfxMatrix(RM_SURF, RCP_testcube, NULL) hmsExit() }; /*------------------------------------------------------------------------------*/ /* test swing */ /*------------------------------------------------------------------------------*/ static long long testswing0 = 0; static Lights1 light_testswing[]={ ShapeColor( 0,255,255) }; static long long testswing1 = 0; /*------------------------------------------------------------------------------*/ static Vtx vtx_testswing[] = { { 2, 0, 2, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 2, 0, -2, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -2, 0, -2, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -2, 0, 2, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 2, -40, 2, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 2, 0, 2, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -2, 0, 2, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -2, -40, 2, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 2, -40, -2, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 2, 0, -2, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 2, 0, 2, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 2, -40, 2, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { -2, -40, -2, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 2, -40, -2, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 2, -40, 2, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -2, -40, 2, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -2, 0, 2, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -2, 0, -2, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -2, -40, -2, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -2, -40, 2, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -2, 0, -2, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 2, 0, -2, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 2, -40, -2, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { -2, -40, -2, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, #if 1 { 10, 2, 80, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 10, 2, -80, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -10, 2, -80, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -10, 2, 80, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 10, -2, 80, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 10, 2, 80, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -10, 2, 80, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -10, -2, 80, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 10, -2, -80, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 10, 2, -80, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 10, 2, 80, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 10, -2, 80, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { -10, -2, -80, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 10, -2, -80, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 10, -2, 80, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -10, -2, 80, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -10, 2, 80, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -10, 2, -80, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -10, -2, -80, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -10, -2, 80, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -10, 2, -80, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 10, 2, -80, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 10, -2, -80, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { -10, -2, -80, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, #else { 80, 2, 10, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 80, 2, -10, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -80, 2, -10, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { -80, 2, 10, 0, 0, 0, 128-128, 255-128, 128-128, 0 }, { 80, -2, 10, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 80, 2, 10, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -80, 2, 10, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { -80, -2, 10, 0, 0, 0, 128-128, 128-128, 255-128, 0 }, { 80, -2, -10, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 80, 2, -10, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 80, 2, 10, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { 80, -2, 10, 0, 0, 0, 255-128, 128-128, 128-128, 0 }, { -80, -2, -10, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 80, -2, -10, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { 80, -2, 10, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -80, -2, 10, 0, 0, 0, 128-128, 1-128, 128-128, 0 }, { -80, 2, 10, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, 2, -10, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, -2, -10, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, -2, 10, 0, 0, 0, 1-128, 128-128, 128-128, 0 }, { -80, 2, -10, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 80, 2, -10, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { 80, -2, -10, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, { -80, -2, -10, 0, 0, 0, 128-128, 128-128, 1-128, 0 }, #endif }; /*------------------------------------------------------------------------------*/ Gfx RCP_testswing[] = { gsSPNumLights((&light_testcube[0].n)), gsSPLight((&light_testcube[0].l[0]),1), gsSPLight((&light_testcube[0].a),2), gsSPVertex(&vtx_testswing[12*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_testswing[12*1], 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), gsSPNumLights((&light_testswing[0].n)), gsSPLight((&light_testswing[0].l[0]),1), gsSPLight((&light_testswing[0].a),2), gsSPVertex(&vtx_testswing[12*2], 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_testswing[12*3], 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_MTXtestswing[] = { hmsGfxMatrix(RM_SURF, RCP_testswing, NULL) hmsExit() }; /*------------------------------------------------------------------------------*/