GenScene * __stdcall Init_Scene_LOD(GenScene *high,GenScene *low,sF32 lod) { GenScene *scene = new GenScene; *scene->Childs.Add() = MakeScene(high); if(low) *scene->Childs.Add() = MakeScene(low); return scene; }
GenScene * __stdcall Init_Scene_Limb(GenScene *scene0,GenScene *scene1,sF323 pos,sF323 dir,sF32 l0,sF32 l1,sU32 flags) { GenScene *scene; GenScene *add; scene = new GenScene(); add = MakeScene(scene0); if(add) *scene->Childs.Add() = add; add = MakeScene(scene1); if(add) *scene->Childs.Add() = add; return scene; }
int mainInit(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH); glutInitWindowPosition (0, 0); glutInitWindowSize(g_width,g_height); glutCreateWindow(argv[0]); Init(); resetTime() ; glutIdleFunc(idleCB) ; glutReshapeFunc (ReshapeCB); glutKeyboardFunc( KeyboardCB ); glutMouseFunc(MouseCB) ; glutMotionFunc(MotionCB) ; instructions(); MakeScene() ; glutDisplayFunc(display); animTcl::InitTclTk(argc,argv) ; glutMainLoop(); return 0; // never reached }
GenScene * __stdcall Init_Scene_Sector(GenScene *scene0) { GenScene *scene,*add; scene = new GenScene; add = MakeScene(scene0); if(add) *scene->Childs.Add() = add; scene->IsSector = sTRUE; return scene; }
GenScene * __stdcall Init_Scene_Forward(GenScene *scene0,sF32 tresh) { GenScene *scene; GenScene *add; scene = new GenScene(); add = MakeScene(scene0); if(add) *scene->Childs.Add() = add; return scene; }
GenScene * __stdcall Init_Scene_Rotate(GenScene *scene0,sF323 dir,sInt axxis) { GenScene *scene; GenScene *add; scene = new GenScene(); add = MakeScene(scene0); if(add) *scene->Childs.Add() = add; return scene; }
GenScene * __stdcall Init_Scene_Scene(GenMesh *mesh,sF323 s,sF323 r,sF323 t,sBool lightmap) { GenScene *scene; if(mesh==0) return new GenScene; scene = MakeScene(mesh); if(scene) sCopyMem(scene->SRT,&s.x,9*4); return scene; }
GenScene * __stdcall Init_Scene_ApplySpline(GenScene *add,GenSpline *sp) { GenScene *scene; sp->Release(); add = MakeScene(add); if(!add) return 0; scene = new GenScene; *scene->Childs.Add() = add; return scene; }
GenScene * __stdcall Init_Scene_Multiply(GenScene *add,sF323 s,sF323 r,sF323 t,sInt count) { GenScene *scene; add = MakeScene(add); if(!add) return 0; scene = new GenScene; *scene->Childs.Add() = add; scene->Count = count; sCopyMem(scene->SRT,&s.x,9*4); return scene; }
GenScene * __stdcall Init_Scene_Physic(GenScene *scene0,sInt flags,sF323 speed,sF323 scale,sF323 rmassf,sF32 mass,sInt partkind) { GenScene *scene; GenScene *add; scene = new GenScene(); if(scene0) { add = MakeScene(scene0); if(add) *scene->Childs.Add() = add; } return scene; }
GenScene * __stdcall Init_Scene_Add(sInt count,GenScene *s0,...) { GenScene *scene,*add; sInt i; scene = new GenScene; for(i=0;i<count;i++) { add = MakeScene((&s0)[i]); if(add) *scene->Childs.Add() = add; } return scene; }
GenScene * __stdcall Init_Scene_Particles(GenScene *scene0, sInt mode,sInt count,sInt seed, sF323 rand,sF323 rot,sF323 rotspeed,sF32 anim, sF323 line,KSpline *spline) { GenScene *scene; GenScene *add; scene = new GenScene(); add = MakeScene(scene0); if(add) *scene->Childs.Add() = add; return scene; }
bool ImporterOBJ::ProcessFile() { bool result; result = ReadInfileAndElementCounts(); if(!result) return false; result = FillMeshData(); if(!result) return false; result = MakeScene(); if(!result) return false; return true; }
GenScene * __stdcall Init_Scene_Walk(GenScene *scene0, sU32 Flags,sInt FootCount,sF32 StepTresh,sF32 RunLowTresh,sF32 RunHighTresh, sInt2 ft,sF322 sl,sF322 ss,sF322 sn, sF323 l0,sF323 l1,sF323 l2,sF323 l3,sF323 l4,sF323 l5,sF323 l6,sF323 l7, sF32 scanup,sF32 scandown, KSpline *stepspline) { GenScene *scene; GenScene *add; sREGZONE(ExecWalk); scene = new GenScene(); add = MakeScene(scene0); if(add) *scene->Childs.Add() = add; return scene; }
GenScene * __stdcall Init_Scene_Marker(GenScene *add,sInt marker) { GenScene *scene = new GenScene; *scene->Childs.Add() = MakeScene(add); return scene; }