|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
-Namespace mojo3d.graphics
|
|
|
+Namespace mojo3d
|
|
|
|
|
|
Private
|
|
|
|
|
@@ -495,49 +495,49 @@ Class Model Extension
|
|
|
|
|
|
Function CreateBox:Model( box:Boxf,xsegs:Int,ysegs:Int,zsegs:Int,material:Material,parent:Entity=Null )
|
|
|
|
|
|
- Local mesh:=mojo3d.graphics.Mesh.CreateBox( box,xsegs,ysegs,zsegs )
|
|
|
+ Local mesh:=mojo3d.Mesh.CreateBox( box,xsegs,ysegs,zsegs )
|
|
|
|
|
|
Return New Model( mesh,material,parent )
|
|
|
End
|
|
|
|
|
|
Function CreateSphere:Model( radius:Float,hsegs:Int,vsegs:Int,material:Material,parent:Entity=Null )
|
|
|
|
|
|
- Local mesh:=mojo3d.graphics.Mesh.CreateSphere( radius,hsegs,vsegs )
|
|
|
+ Local mesh:=mojo3d.Mesh.CreateSphere( radius,hsegs,vsegs )
|
|
|
|
|
|
Return New Model( mesh,material,parent )
|
|
|
End
|
|
|
|
|
|
Function CreateTorus:Model( outerRadius:Float,innerRadius:Float,outerSegs:Int,innerSegs:Int,material:Material,parent:Entity=Null )
|
|
|
|
|
|
- Local mesh:=mojo3d.graphics.Mesh.CreateTorus( outerRadius,innerRadius,outerSegs,innerSegs )
|
|
|
+ Local mesh:=mojo3d.Mesh.CreateTorus( outerRadius,innerRadius,outerSegs,innerSegs )
|
|
|
|
|
|
Return New Model( mesh,material,parent )
|
|
|
End
|
|
|
|
|
|
Function CreateCylinder:Model( radius:Float,length:Float,axis:Axis,segs:Int,material:Material,parent:Entity=null )
|
|
|
|
|
|
- Local mesh:=mojo3d.graphics.Mesh.CreateCylinder( radius,length,axis,segs )
|
|
|
+ Local mesh:=mojo3d.Mesh.CreateCylinder( radius,length,axis,segs )
|
|
|
|
|
|
Return New Model( mesh,material,parent )
|
|
|
End
|
|
|
|
|
|
Function CreateCapsule:Model( radius:Float,length:Float,axis:Axis,segs:Int,material:Material,parent:Entity=null )
|
|
|
|
|
|
- Local mesh:=mojo3d.graphics.Mesh.CreateCapsule( radius,length,axis,segs )
|
|
|
+ Local mesh:=mojo3d.Mesh.CreateCapsule( radius,length,axis,segs )
|
|
|
|
|
|
Return New Model( mesh,material,parent )
|
|
|
End
|
|
|
|
|
|
Function CreateCone:Model( radius:Float,length:Float,axis:Axis,segs:Int,material:Material,parent:Entity=null )
|
|
|
|
|
|
- Local mesh:=mojo3d.graphics.Mesh.CreateCone( radius,length,axis,segs )
|
|
|
+ Local mesh:=mojo3d.Mesh.CreateCone( radius,length,axis,segs )
|
|
|
|
|
|
Return New Model( mesh,material,parent )
|
|
|
End
|
|
|
|
|
|
Function CreateTerrain:Model( heightMap:Pixmap,bounds:Boxf,material:Material,parent:Entity=Null )
|
|
|
|
|
|
- Local mesh:=mojo3d.graphics.Mesh.CreateTerrain( heightMap,bounds )
|
|
|
+ Local mesh:=mojo3d.Mesh.CreateTerrain( heightMap,bounds )
|
|
|
|
|
|
Return New Model( mesh,material,parent )
|
|
|
End
|