Incbin "cone.b3d"
Incbin "cube.b3d"
Incbin "cylinder.b3d"
Incbin "pyramid.b3d"
Incbin "sphere.b3d"
Incbin "plane.b3d"
Function CreatePlane:ianimatedmeshscenenode()
Local mtmp:ireadfile=device.getfilesystem().creatememoryreadfile(IncbinPtr("plane.b3d"),IncbinLen("plane.b3d"),"Plane.b3d",False)
Local mtmpb:ianimatedmeshscenenode=smgr.addanimatedmeshscenenode(smgr.getMeshFromFileIO(mtmp))
mtmpb.setmaterialflag(emf_lighting,False)
mtmp.drop()
Return mtmpb
End Function
Function CreateCone:ianimatedmeshscenenode()
Local mtmp:ireadfile=device.getfilesystem().creatememoryreadfile(IncbinPtr("cone.b3d"),IncbinLen("cone.b3d"),"Cone.b3d",False)
Local mtmpb:ianimatedmeshscenenode=smgr.addanimatedmeshscenenode(smgr.getMeshFromFileIO(mtmp))
mtmpb.setmaterialflag(emf_lighting,False)
mtmp.drop()
Return mtmpb
End Function
Function CreateCube:ianimatedmeshscenenode()
Local mtmp:ireadfile=device.getfilesystem().creatememoryreadfile(IncbinPtr("cube.b3d"),IncbinLen("cube.b3d"),"Cube.b3d",False)
Local mtmpb:ianimatedmeshscenenode=smgr.addanimatedmeshscenenode(smgr.getMeshFromFileIO(mtmp))
mtmpb.setmaterialflag(emf_lighting,False)
mtmp.drop()
Return mtmpb
End Function
Function CreateCylinder:ianimatedmeshscenenode()
Local mtmp:ireadfile=device.getfilesystem().creatememoryreadfile(IncbinPtr("cylinder.b3d"),IncbinLen("cylinder.b3d"),"Cylinder.b3d",False)
Local mtmpb:ianimatedmeshscenenode=smgr.addanimatedmeshscenenode(smgr.getMeshFromFileIO(mtmp))
mtmpb.setmaterialflag(emf_lighting,False)
mtmp.drop()
Return mtmpb
End Function
Function CreatePyramid:ianimatedmeshscenenode()
Local mtmp:ireadfile=device.getfilesystem().creatememoryreadfile(IncbinPtr("pyramid.b3d"),IncbinLen("pyramid.b3d"),"Pyramid.b3d",False)
Local mtmpb:ianimatedmeshscenenode=smgr.addanimatedmeshscenenode(smgr.getMeshFromFileIO(mtmp))
mtmpb.setmaterialflag(emf_lighting,False)
mtmp.drop()
Return mtmpb
End Function
Function CreateSphere:ianimatedmeshscenenode()
Local mtmp:ireadfile=device.getfilesystem().creatememoryreadfile(IncbinPtr("sphere.b3d"),IncbinLen("sphere.b3d"),"Sphere.b3d",False)
Local mtmpb:ianimatedmeshscenenode=smgr.addanimatedmeshscenenode(smgr.getMeshFromFileIO(mtmp))
mtmpb.setmaterialflag(emf_lighting,False)
mtmp.drop()
Return mtmpb
End Function