' Updates:
' 26/01/07 - ExtractAnimSeq
' 30/01/07 - Animate
' 05/02/07 - AntiAlias added
' 05/02/07 - UpdateWorld
' 07/02/07 - VertexU, VertexV added

' --------------------------------

' Procedural Interfaces

Rem
bbdoc: ***MiniB3D Only***
about:
This command is included as MiniB3D currently does not have the same buffer commands as Blitz3D.<p>
Use this command to copy a region of the backbuffer to a texture.<p>
The region copied from the backbuffer will start at (0,0), and end at the texture's width and height.<p>
Therefore if you want to copy the whole of a 3D scene to a texture, you must first resize the camera 
viewport to the size of the texture, use RenderWorld to render the camera, then use this command to copy the backbuffer to the
texture.<p>
This command is useful for real-time texture effects like scene-in-scene effects, scene-blur effects etc.
End Rem
Function BackBufferToTex(tex:TTexture)
	tex.BackBufferToTex()
End Function

Rem
bbdoc: ***MiniB3D Only***
about:
This command is included as MiniB3D currently does not have the same buffer commands as Blitz3D.<p>
This command works the same as BackBufferToTex, except it's used to copy the backbuffer to a cupemap texture which has been
created or loaded using the cubemap flag. To specify which part of the cubemap texture will be copied to, use SetCubeFace.<p>
See 'examples/cubemap.bmx' for a look at how this command is used.
End Rem
Function BackBufferToCubeTex(tex:TTexture)
	tex.BackBufferToCubeTex()
End Function

Rem
bbdoc: ***MiniB3D Only***
about:
This command is the equivalent of Blitz3D's MeshCullBox command.<p>
MiniB3D currently uses bounding spheres to cull entities unlike Blitz3D which uses oriented bounding boxes, therefore you 
must set a cull radius rather than a cull box.<p> 
This command is mainly used for animated meshes where the default bounding area may not take into account all animation
positions, resulting in the mesh being wrongly culled at extreme positions.
End Rem
Function MeshCullRadius(ent:TEntity,radius#)
	ent.MeshCullRadius(radius#)
End Function

Rem
bbdoc: ***MiniB3D Only***
about:
MiniB3D uses octrees to speed-up ellipsoid-to-mesh collisions.<p>
Octrees are not created automatically for meshes. They must be created manually using this command.<p>
@max_polys denotes the maximum no. of polygons per octcube, and @max_level denotes the maximum no. of octcube 'levels', or sub-divisions.<p>
If both are set to greater than 0, then whatever is reached first will be used as the exit condition.<p>
If @max_polys is set to 0, then the octree will be sub-divided @max_levels times.<p>
If @max_levels is set to 0, then the octree will be sub-divided until the no. of polys per octcube is less than @max_polys.<p>
Experiment with both values for best results. A couple of suggested values are 200,5 for large meshes and 0,1 for small meshes.<p>
End Rem
Function CreateOctree(mesh:TMesh,max_polys,max_levels)
	TOctree.CreateOctree(mesh:TMesh,max_polys,max_levels)
End Function

' Blitz3D functions, A-Z

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=AddMesh">Online Help</a>
End Rem
Function AddMesh:TMesh(mesh1:TMesh,mesh2:TMesh)
	mesh1.AddMesh(mesh2)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=AddTriangle">Online Help</a>
End Rem
Function AddTriangle(surf:TSurface,v0,v1,v2)
	Return surf.AddTriangle(v0,v1,v2)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=AddVertex">Online Help</a>
End Rem
Function AddVertex(surf:TSurface,x#,y#,z#,u#=0.0,v#=0.0,w#=0.0)
	Return surf.AddVertex(x#,y#,z#,u#,v#,w#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=AmbientLight">Online Help</a>
End Rem
Function AmbientLight(r#,g#,b#)
	TGlobal.AmbientLight(r#,g#,b#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=AntiAlias">Online Help</a>
End Rem
Function AntiAlias(samples)
	TGlobal.AntiAlias(samples)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=Animate">Online Help</a>
End Rem
Function Animate(ent:TEntity,mode=1,speed#=1.0,seq=0,trans=0)
	ent.Animate(mode,speed#,seq,trans)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=Animating">Online Help</a>
End Rem
Function Animating(ent:TEntity)
	Return ent.Animating()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=AnimLength">Online Help</a>
End Rem
Function AnimLength(ent:TEntity)
	Return ent.AnimLength()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=AnimSeq">Online Help</a>
End Rem
Function AnimSeq(ent:TEntity)
	Return ent.AnimSeq()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=AnimTime">Online Help</a>
End Rem
Function AnimTime#(ent:TEntity)
	Return ent.AnimTime#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=BrushAlpha">Online Help</a>
End Rem
Function BrushAlpha(brush:TBrush,a#)
	brush.BrushAlpha(a#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=BrushBlend">Online Help</a>
End Rem
Function BrushBlend(brush:TBrush,blend)
	brush.BrushBlend(blend)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=BrushColor">Online Help</a>
End Rem
Function BrushColor(brush:TBrush,r#,g#,b#)
	brush.BrushColor(r#,g#,b#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=BrushFX">Online Help</a>
End Rem
Function BrushFX(brush:TBrush,fx)
	brush.BrushFX(fx)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=BrushShininess">Online Help</a>
End Rem
Function BrushShininess(brush:TBrush,s#)
	brush.BrushShininess(s#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=BrushTexture">Online Help</a>
End Rem
Function BrushTexture(brush:TBrush,tex:TTexture,index=0)
	brush.BrushTexture(tex,index)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CameraClsColor">Online Help</a>
End Rem
Function CameraClsColor(cam:TCamera,r#,g#,b#)
	cam.CameraClsColor(r#,g#,b#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CameraClsMode">Online Help</a>
End Rem
Function CameraClsMode(cam:TCamera,cls_depth,cls_zbuffer)
	cam.CameraClsMode(cls_depth,cls_zbuffer)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CameraFogColor">Online Help</a>
End Rem
Function CameraFogColor(cam:TCamera,r#,g#,b#)
	cam.CameraFogColor(r#,g#,b#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CameraFogMode">Online Help</a>
End Rem
Function CameraFogMode(cam:TCamera,mode)
	cam.CameraFogMode(mode)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CameraFogRange">Online Help</a>
End Rem
Function CameraFogRange(cam:TCamera,near#,far#)
	cam.CameraFogRange(near#,far#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CameraPick">Online Help</a>
End Rem
Function CameraPick:TEntity(cam:TCamera,x#,y#)
	Return TPick.CameraPick(cam,x#,y#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CameraProject">Online Help</a>
End Rem
Function CameraProject(cam:TCamera,x#,y#,z#)
	cam.CameraProject(x#,y#,z#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CameraRange">Online Help</a>
End Rem
Function CameraRange(cam:TCamera,near#,far#)
	cam.CameraRange(near#,far#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CameraViewport">Online Help</a>
End Rem
Function CameraViewport(cam:TCamera,x,y,width,height)
	cam.CameraViewport(x,y,width,height)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CameraZoom">Online Help</a>
End Rem
Function CameraZoom(cam:TCamera,zoom#)
	cam.CameraZoom(zoom#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ClearCollisions">Online Help</a>
End Rem
Function ClearCollisions()
	TGlobal.ClearCollisions()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ClearSurface">Online Help</a>
End Rem
Function ClearSurface(surf:TSurface,clear_verts=True,clear_tris=True)
	surf.ClearSurface(clear_verts,clear_tris)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ClearTextureFilters">Online Help</a>
End Rem
Function ClearTextureFilters()
	TTexture.ClearTextureFilters()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CollisionEntity">Online Help</a>
End Rem
Function CollisionEntity:TEntity(ent:TEntity,index)
	Return ent.CollisionEntity(index)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=Collisions">Online Help</a>
End Rem
Function Collisions(src_no,dest_no,method_no,response_no=0)
	TGlobal.Collisions(src_no,dest_no,method_no,response_no)
End Function
	
Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CollisionNX">Online Help</a>
End Rem
Function CollisionNX#(ent:TEntity,index)
	Return ent.CollisionNX#(index)
End Function
	
Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CollisionNY">Online Help</a>
End Rem
Function CollisionNY#(ent:TEntity,index)
	Return ent.CollisionNY#(index)
End Function
	
Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CollisionNZ">Online Help</a>
End Rem
Function CollisionNZ#(ent:TEntity,index)
	Return ent.CollisionNZ#(index)
End Function
	
Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CollisionSurface">Online Help</a>
End Rem
Function CollisionSurface:TSurface(ent:TEntity,index)
	Return ent.CollisionSurface(index)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CollisionTime">Online Help</a>
End Rem
Function CollisionTime#(ent:TEntity,index)
	Return ent.CollisionTime#(index)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CollisionTriangle">Online Help</a>
End Rem	
Function CollisionTriangle(ent:TEntity,index)
	Return ent.CollisionTriangle(index)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CollisionX">Online Help</a>
End Rem
Function CollisionX#(ent:TEntity,index)
	Return ent.CollisionX#(index)
End Function
	
Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CollisionY">Online Help</a>
End Rem
Function CollisionY#(ent:TEntity,index)
	Return ent.CollisionY#(index)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CollisionZ">Online Help</a>
End Rem
Function CollisionZ#(ent:TEntity,index)
	Return ent.CollisionZ#(index)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CountChildren">Online Help</a>
End Rem
Function CountChildren(ent:TEntity)
	Return ent.CountChildren()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CountCollisions">Online Help</a>
End Rem
Function CountCollisions(ent:TEntity)
	Return ent.CountCollisions()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CopyEntity">Online Help</a>
End Rem
Function CopyEntity:TEntity(ent:TEntity,parent:TEntity=Null)
	Return ent.CopyEntity(parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CopyMesh">Online Help</a>
End Rem
Function CopyMesh:TMesh(mesh:TMesh,parent:TEntity=Null)
	Return mesh.CopyMesh(parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CountSurfaces">Online Help</a>
End Rem
Function CountSurfaces(mesh:TMesh)
	Return mesh.CountSurfaces()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CountTriangles">Online Help</a>
End Rem
Function CountTriangles(surf:TSurface)
	Return surf.CountTriangles()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CountVertices">Online Help</a>
End Rem
Function CountVertices(surf:TSurface)
	Return surf.CountVertices()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateBrush">Online Help</a>
End Rem
Function CreateBrush:TBrush(r#=255.0,g#=255.0,b#=255.0)
	Return TBrush.CreateBrush(r#,g#,b#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateCamera">Online Help</a>
End Rem
Function CreateCamera:TCamera(parent:TEntity=Null)
	Return TCamera.CreateCamera(parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateCone">Online Help</a>
End Rem
Function CreateCone:TMesh(segments=8,solid=True,parent:TEntity=Null)
	Return TMesh.CreateCone(segments,solid,parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateCylinder">Online Help</a>
End Rem
Function CreateCylinder:TMesh(segments=8,solid=True,parent:TEntity=Null)
	Return TMesh.CreateCylinder(segments,solid,parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateCube">Online Help</a>
End Rem
Function CreateCube:TMesh(parent:TEntity=Null)
	Return TMesh.CreateCube(parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateMesh">Online Help</a>
End Rem
Function CreateMesh:TMesh(parent:TEntity=Null)
	Return TMesh.CreateMesh(parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateLight">Online Help</a>
End Rem
Function CreateLight:TLight(light_type=1,parent:TEntity=Null)
	Return TLight.CreateLight(light_type,parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreatePivot">Online Help</a>
End Rem
Function CreatePivot:TPivot(parent:TEntity=Null)
	Return TPivot.CreatePivot(parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateSphere">Online Help</a>
End Rem
Function CreateSphere:TMesh(segments=8,parent:TEntity=Null)
	Return TMesh.CreateSphere(segments,parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateSprite">Online Help</a>
End Rem
' Sprite
Function CreateSprite:TSprite(parent:TEntity=Null)
	Return TSprite.CreateSprite(parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateSurface">Online Help</a>
End Rem
Function CreateSurface:TSurface(mesh:TMesh,brush:TBrush=Null)
	Return mesh.CreateSurface(brush)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=CreateTexture">Online Help</a>
End Rem
Function CreateTexture:TTexture(width,height,flags=1,frames=1,RT:Int = GL_RGBA)
	Return TTexture.CreateTexture(width,height,flags,frames,RT)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=DeltaPitch">Online Help</a>
End Rem
Function DeltaPitch#(ent1:TEntity,ent2:TEntity)
	Return ent1.DeltaPitch#(ent2:TEntity)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=DeltaYaw">Online Help</a>
End Rem
Function DeltaYaw#(ent1:TEntity,ent2:TEntity)
	Return ent1.DeltaYaw#(ent2:TEntity)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityAlpha">Online Help</a>
End Rem
Function EntityAlpha(ent:TEntity,alpha#)
	ent.EntityAlpha(alpha#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityAutoFade">Online Help</a>
End Rem
Function EntityAutoFade(ent:TEntity,near#,far#)
	ent.EntityAutoFade(near#,far#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityBlend">Online Help</a>
End Rem
Function EntityBlend(ent:TEntity,blend)
	ent.EntityBlend(blend)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityBox">Online Help</a>
End Rem
Function EntityBox(ent:TEntity,x#,y#,z#,w#,h#,d#)
	ent.EntityBox(x#,y#,z#,w#,h#,d#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityClass">Online Help</a>
End Rem
Function EntityClass$(ent:TEntity)
	Return ent.EntityClass$()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityCollided">Online Help</a>
End Rem
Function EntityCollided:TEntity(ent:TEntity,type_no)
	Return ent.EntityCollided(type_no)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityColor">Online Help</a>
End Rem
Function EntityColor(ent:TEntity,red#,green#,blue#)
	ent.EntityColor(red#,green#,blue#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityDistance">Online Help</a>
End Rem
Function EntityDistance#(ent1:TEntity,ent2:TEntity)
	Return ent1.EntityDistance#(ent2)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityFX">Online Help</a>
End Rem
Function EntityFX(ent:TEntity,fx)
	ent.EntityFX(fx)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityInView">Online Help</a>
End Rem
Function EntityInView(ent:TEntity,cam:TCamera)
	Return cam.EntityInView(ent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityName">Online Help</a>
End Rem
Function EntityName$(ent:TEntity)
	Return ent.EntityName$()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityOrder">Online Help</a>
End Rem
Function EntityOrder(ent:TEntity,order)
	ent.EntityOrder(order)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityParent">Online Help</a>
End Rem
Function EntityParent(ent:TEntity,parent_ent:TEntity,glob=True)
	ent.EntityParent(parent_ent,glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityPick">Online Help</a>
End Rem
Function EntityPick:TEntity(ent:TEntity,range#)
	Return TPick.EntityPick(ent,range#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityPickMode">Online Help</a>
End Rem
Function EntityPickMode(ent:TEntity,pick_mode,obscurer=True)
	ent.EntityPickMode(pick_mode,obscurer)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityPitch">Online Help</a>
End Rem
Function EntityPitch#(ent:TEntity,glob=False)
	Return ent.EntityPitch#(glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityRadius">Online Help</a>
End Rem
Function EntityRadius(ent:TEntity,radius_x#,radius_y#=0.0,radius_z#=0.0)
	ent.EntityRadius(radius_x#,radius_y#,radius_z#)
End Function
	
Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityRoll">Online Help</a>
End Rem
Function EntityRoll#(ent:TEntity,glob=False)
	Return ent.EntityRoll#(glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityShininess">Online Help</a>
End Rem
Function EntityShininess(ent:TEntity,shine#)
	ent.EntityShininess(shine#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityTexture">Online Help</a>
End Rem
Function EntityTexture(ent:TEntity,tex:TTexture,frame=0,index=0)
	TMesh(ent).EntityTexture(tex:TTexture,frame,index)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityType">Online Help</a>
End Rem
Function EntityType(ent:TEntity,type_no,recursive=False)
	ent.EntityType(type_no,recursive)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityVisible">Online Help</a>
End Rem
Function EntityVisible(src_ent:TEntity,dest_ent:TEntity)
	Return TPick.EntityVisible(src_ent,dest_ent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityX">Online Help</a>
End Rem
Function EntityX#(ent:TEntity,glob=False)
	Return ent.EntityX#(glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityY">Online Help</a>
End Rem
Function EntityY#(ent:TEntity,glob=False)
	Return ent.EntityY#(glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityYaw">Online Help</a>
End Rem
Function EntityYaw#(ent:TEntity,glob=False)
	Return ent.EntityYaw#(glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=EntityZ">Online Help</a>
End Rem
Function EntityZ#(ent:TEntity,glob=False)
	Return ent.EntityZ#(glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ExtractAnimSeq">Online Help</a>
End Rem
Function ExtractAnimSeq(ent:TEntity,first_frame,last_frame,seq=0)
	Return ent.ExtractAnimSeq(first_frame,last_frame,seq)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=FindChild">Online Help</a>
End Rem
Function FindChild:TEntity(ent:TEntity,child_name$)
	Return ent.FindChild(child_name$)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=FindSurface">Online Help</a>
End Rem
Function FindSurface:TSurface(mesh:TMesh,brush:TBrush)
	Return mesh.FindSurface(brush)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=FitMesh">Online Help</a><p>
End Rem
Function FitMesh:TMesh(mesh:TMesh,x#,y#,z#,width#,height#,depth#,uniform=False)
	mesh.FitMesh(x#,y#,z#,width#,height#,depth#,uniform)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=FlipMesh">Online Help</a>
End Rem
Function FlipMesh:TMesh(mesh:TMesh)
	mesh.FlipMesh()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=FreeBrush">Online Help</a>
End Rem
Function FreeBrush(brush:TBrush)
	brush.FreeBrush()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=FreeEntity">Online Help</a>
End Rem
Function FreeEntity(ent:TEntity)
	ent.FreeEntity()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=FreeTexture">Online Help</a>
End Rem
Function FreeTexture:TTexture(tex:TTexture)
	tex.FreeTexture()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=GetBrushTexture">Online Help</a>
End Rem
Function GetBrushTexture:TTexture(brush:TBrush,index=0)
	Return TTexture.GetBrushTexture(brush,index)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=GetChild">Online Help</a>
End Rem
Function GetChild:TEntity(ent:TEntity,child_no)
	Return ent.GetChild(child_no)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=GetEntityBrush">Online Help</a>
End Rem
Function GetEntityBrush:TBrush(ent:TEntity)
	TBrush.GetEntityBrush(ent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=GetEntityType">Online Help</a>
End Rem	
Function GetEntityType(ent:TEntity)
	Return ent.GetEntityType()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ResetEntity">Online Help</a>
End Rem
Function GetMatElement#(ent:TEntity,row,col)
	ent.GetMatElement#(row,col)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=GetParent">Online Help</a>
End Rem
Function GetParent:TEntity(ent:TEntity)
	Return ent.GetParent()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=GetSurface">Online Help</a>
End Rem
Function GetSurface:TSurface(mesh:TMesh,surf_no)
	Return mesh.GetSurface(surf_no)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=GetSurfaceBrush">Online Help</a>
End Rem
Function GetSurfaceBrush:TBrush(surf:TSurface)
	Return TBrush.GetSurfaceBrush(surf)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=Graphics3D">Online Help</a>
End Rem
Function Graphics3D(width,height,depth=0,mode=0,rate=60)
	TGlobal.Graphics3D(width,height,depth,mode,rate)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=HandleSprite">Online Help</a>
End Rem	
Function HandleSprite(sprite:TSprite,h_x#,h_y#)
	sprite.HandleSprite(h_x#,h_y#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=HideEntity">Online Help</a>
End Rem
Function HideEntity(ent:TEntity)
	ent.HideEntity()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=LightColor">Online Help</a>
End Rem
Function LightColor(light:TLight,red#,green#,blue#)
	light.LightColor(red#,green#,blue#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=LightConeAngles">Online Help</a>
End Rem
Function LightConeAngles(light:TLight,inner_ang#,outer_ang#)
	light.LightConeAngles(inner_ang#,outer_ang#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=LightRange">Online Help</a>
End Rem
Function LightRange(light:TLight,range#)
	light.LightRange(range#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=LinePick">Online Help</a>
End Rem
Function LinePick:TEntity(x#,y#,z#,dx#,dy#,dz#,radius#=0.0)
	Return TPick.LinePick(x#,y#,z#,dx#,dy#,dz#,radius#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=LoadAnimMesh">Online Help</a>
End Rem
Function LoadAnimMesh:TMesh(file$,parent:TEntity=Null)
	Return TMesh.LoadAnimMesh(file$,parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=LoadAnimTexture">Online Help</a>
End Rem
Function LoadAnimTexture:TTexture(file$,flags,frame_width,frame_height,first_frame,frame_count)
	Return TTexture.LoadAnimTexture(file$,flags,frame_width,frame_height,first_frame,frame_count)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=LoadBrush">Online Help</a>
End Rem
Function LoadBrush:TBrush(file$,flags=1,u_scale#=1.0,v_scale#=1.0)
	Return TBrush.LoadBrush(file$,flags,u_scale#,v_scale#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=LoadMesh">Online Help</a>
End Rem
Function LoadMesh:TMesh(file$,parent:TEntity=Null)
	Return TMesh.LoadMesh(file$,parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=LoadTexture">Online Help</a>
End Rem
Function LoadTexture:TTexture(file$,flags=1)
	Return TTexture.LoadTexture(file$,flags)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=LoadSprite">Online Help</a>
End Rem
Function LoadSprite:TSprite(tex_file$,tex_flag=1,parent:TEntity=Null)
	Return TSprite.LoadSprite(tex_file$,tex_flag,parent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=MeshDepth">Online Help</a>
End Rem
Function MeshDepth#(mesh:TMesh)
	Return mesh.MeshDepth#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=MeshHeight">Online Help</a>
End Rem
Function MeshHeight#(mesh:TMesh)
	Return mesh.MeshHeight#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=MeshWidth">Online Help</a>
End Rem
Function MeshWidth#(mesh:TMesh)
	Return mesh.MeshWidth#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=MoveEntity">Online Help</a>
End Rem
Function MoveEntity(ent:TEntity,x#,y#,z#)
	ent.MoveEntity(x#,y#,z#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=NameEntity">Online Help</a>
End Rem
Function NameEntity(ent:TEntity,Name$)
	ent.NameEntity(Name$)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PaintEntity">Online Help</a>
End Rem
Function PaintEntity(ent:TEntity,brush:TBrush)
	TMesh(ent).PaintEntity(brush)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PaintMesh">Online Help</a>
End Rem
Function PaintMesh:TMesh(mesh:TMesh,brush:TBrush)
	mesh.PaintMesh(brush)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PaintSurface">Online Help</a>
End Rem
Function PaintSurface(surf:TSurface,brush:TBrush)
	Return surf.PaintSurface(brush)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PickedEntity">Online Help</a>
End Rem
Function PickedEntity:TEntity()
	Return TPick.PickedEntity:TEntity()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PickedNX">Online Help</a>
End Rem
Function PickedNX#()
	Return TPick.PickedNX#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PickedNY">Online Help</a>
End Rem
Function PickedNY#()
	Return TPick.PickedNY#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PickedNZ">Online Help</a>
End Rem
Function PickedNZ#()
	Return TPick.PickedNZ#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PickedSurface">Online Help</a>
End Rem
Function PickedSurface:TSurface()
	Return TPick.PickedSurface:TSurface()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PickedTime">Online Help</a>
End Rem
Function PickedTime#()
	Return TPick.PickedTime#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PickedTriangle">Online Help</a>
End Rem
Function PickedTriangle()
	Return TPick.PickedTriangle()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PickedX">Online Help</a>
End Rem
Function PickedX#()
	Return TPick.PickedX#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PickedY">Online Help</a>
End Rem
Function PickedY#()
	Return TPick.PickedY#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PickedZ">Online Help</a>
End Rem
Function PickedZ#()
	Return TPick.PickedZ#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PointEntity">Online Help</a>
End Rem
Function PointEntity(ent:TEntity,target_ent:TEntity,roll#=0)
	ent.PointEntity(target_ent,roll#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PositionEntity">Online Help</a>
End Rem
Function PositionEntity(ent:TEntity,x#,y#,z#,glob=False)
	ent.PositionEntity(x#,y#,z#,glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PositionMesh">Online Help</a>
End Rem
Function PositionMesh:TMesh(mesh:TMesh,px#,py#,pz#)
	mesh.PositionMesh(px#,py#,pz#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=PositionTexture">Online Help</a>
End Rem
Function PositionTexture(tex:TTexture,u_pos#,v_pos#)
	tex.PositionTexture(u_pos#,v_pos#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ProjectedX">Online Help</a>
End Rem
Function ProjectedX#()
    Return TCamera.projected_x#
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ProjectedY">Online Help</a>
End Rem
Function ProjectedY#()
    Return TCamera.projected_y#
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ProjectedZ">Online Help</a>
End Rem
Function ProjectedZ#()
    Return TCamera.projected_z#
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=RenderWorld">Online Help</a>
End Rem
Function RenderWorld()
	TGlobal.RenderWorld()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ResetEntity">Online Help</a>
End Rem
Function ResetEntity(ent:TEntity)
	ent.ResetEntity()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=RotateEntity">Online Help</a>
End Rem
Function RotateEntity(ent:TEntity,x#,y#,z#,glob=False)
	ent.RotateEntity(x#,y#,z#,glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=RotateMesh">Online Help</a>
End Rem
Function RotateMesh:TMesh(mesh:TMesh,pitch#,yaw#,roll#)
	mesh.RotateMesh(pitch#,yaw#,roll#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=RotateSprite">Online Help</a>
End Rem
Function RotateSprite(sprite:TSprite,ang#)
	sprite.RotateSprite(ang#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=RotateTexture">Online Help</a>
End Rem	
Function RotateTexture(tex:TTexture,ang#)
	tex.RotateTexture(ang#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ScaleEntity">Online Help</a>
End Rem
Function ScaleEntity(ent:TEntity,x#,y#,z#,glob=False)
	ent.ScaleEntity(x#,y#,z#,glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ScaleMesh">Online Help</a>
End Rem
Function ScaleMesh:TMesh(mesh:TMesh,sx#,sy#,sz#)
	mesh.ScaleMesh(sx#,sy#,sz#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ScaleSprite">Online Help</a>
End Rem	
Function ScaleSprite(sprite:TSprite,s_x#,s_y#)
	sprite.ScaleSprite(s_x#,s_y#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ScaleTexture">Online Help</a>
End Rem
Function ScaleTexture(tex:TTexture,u_scale#,v_scale#)	
	tex.ScaleTexture(u_scale#,v_scale#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=SetAnimTime">Online Help</a>
End Rem
Function SetAnimTime(ent:TEntity,time#,seq=0)
	ent.SetAnimTime(time#,seq)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=SetCubeFace">Online Help</a>
End Rem
Function SetCubeFace(tex:TTexture,face)
	tex.SetCubeFace(face)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=SetCubeMode">Online Help</a>
End Rem
Function SetCubeMode(tex:TTexture,mode)
	tex.SetCubeMode(mode)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=ShowEntity">Online Help</a>
End Rem
Function ShowEntity(ent:TEntity)
	ent.ShowEntity()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=SpriteViewMode">Online Help</a>
End Rem	
Function SpriteViewMode(sprite:TSprite,mode)
	sprite.SpriteViewMode(mode)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TextureBlend">Online Help</a>
End Rem
Function TextureBlend(tex:TTexture,blend)
	tex.TextureBlend(blend)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TextureCoords">Online Help</a>
End Rem
Function TextureCoords(tex:TTexture,coords)
	tex.TextureCoords(coords)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TextureHeight">Online Help</a>
End Rem	
Function TextureHeight(tex:TTexture)
	Return tex.TextureHeight()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TextureFilter">Online Help</a>
End Rem
Function TextureFilter(match_text$,flags)
	TTexture.TextureFilter(match_text$,flags)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TextureName">Online Help</a>
End Rem	
Function TextureName$(tex:TTexture)
	Return tex.TextureName$()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TextureWidth">Online Help</a>
End Rem	
Function TextureWidth(tex:TTexture)
	Return tex.TextureWidth()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TFormedX">Online Help</a>
End Rem
Function TFormedX#()
	Return TEntity.TFormedX#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TFormedY">Online Help</a>
End Rem
Function TFormedY#()
	Return TEntity.TFormedY#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TFormedZ">Online Help</a>
End Rem
Function TFormedZ#()
	Return TEntity.TFormedZ#()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TFormNormal">Online Help</a>
End Rem
Function TFormNormal(x#,y#,z#,src_ent:TEntity,dest_ent:TEntity)
	TEntity.TFormNormal(x#,y#,z#,src_ent,dest_ent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TFormPoint">Online Help</a>
End Rem
Function TFormPoint(x#,y#,z#,src_ent:TEntity,dest_ent:TEntity)
	TEntity.TFormPoint(x#,y#,z#,src_ent,dest_ent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TFormVector">Online Help</a>
End Rem
Function TFormVector(x#,y#,z#,src_ent:TEntity,dest_ent:TEntity)
	TEntity.TFormVector(x#,y#,z#,src_ent,dest_ent)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TranslateEntity">Online Help</a>
End Rem
Function TranslateEntity(ent:TEntity,x#,y#,z#,glob=False)
	ent.TranslateEntity(x#,y#,z#,glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TriangleNX">Online Help</a>
End Rem
Function TriangleNX#(surf:TSurface,tri_no)
	Return surf.TriangleNX#(tri_no)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TriangleNY">Online Help</a>
End Rem
Function TriangleNY#(surf:TSurface,tri_no)
	Return surf.TriangleNY#(tri_no)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TriangleNZ">Online Help</a>
End Rem
Function TriangleNZ#(surf:TSurface,tri_no)
	Return surf.TriangleNZ#(tri_no)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TriangleVertex">Online Help</a>
End Rem
Function TriangleVertex(surf:TSurface,tri_no,corner)
	Return surf.TriangleVertex(tri_no,corner)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=TurnEntity">Online Help</a>
End Rem
Function TurnEntity(ent:TEntity,x#,y#,z#,glob=False)
	ent.TurnEntity(x#,y#,z#,glob)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=UpdateNormals">Online Help</a>
End Rem
Function UpdateNormals(mesh:TMesh)
	mesh.UpdateNormals()
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=UpdateWorld">Online Help</a>
End Rem
Function UpdateWorld(anim_speed#=1.0)
	TGlobal.UpdateWorld(anim_speed#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VectorPitch">Online Help</a>
End Rem	
Function VectorPitch#(vx#,vy#,vz#)
	Return TVector.VectorPitch#(vx#,vy#,vz#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VectorYaw">Online Help</a>
End Rem	
Function VectorYaw#(vx#,vy#,vz#)
	Return TVector.VectorYaw#(vx#,vy#,vz#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexAlpha">Online Help</a>
End Rem
Function VertexAlpha#(surf:TSurface,vid)
	Return surf.VertexAlpha#(vid)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexBlue">Online Help</a>
End Rem
Function VertexBlue#(surf:TSurface,vid)
	Return surf.VertexBlue#(vid)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexColor">Online Help</a>
End Rem
Function VertexColor(surf:TSurface,vid,r#,g#,b#,a#=1.0)
	Return surf.VertexColor(vid,r#,g#,b#,a#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexCoords">Online Help</a>
End Rem
Function VertexCoords(surf:TSurface,vid,x#,y#,z#)
	Return surf.VertexCoords(vid,x#,y#,z#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexGreen">Online Help</a>
End Rem
Function VertexGreen#(surf:TSurface,vid)
	Return surf.VertexGreen#(vid)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexNormal">Online Help</a>
End Rem
Function VertexNormal(surf:TSurface,vid,nx#,ny#,nz#)
	Return surf.VertexNormal(vid,nx#,ny#,nz#)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexRed">Online Help</a>
End Rem
Function VertexRed#(surf:TSurface,vid)
	Return surf.VertexRed#(vid)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexTexCoords">Online Help</a>
End Rem
Function VertexTexCoords(surf:TSurface,vid,u#,v#,w#=0.0,coord_set=0)
	Return surf.VertexTexCoords(vid,u#,v#,w#,coord_set)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexU">Online Help</a>
End Rem
Function VertexU#(surf:TSurface,vid,coord_set=0)
	Return surf.VertexU#(vid,coord_set)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexV">Online Help</a>
End Rem
Function VertexV#(surf:TSurface,vid,coord_set=0)
	Return surf.VertexV#(vid,coord_set)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexX">Online Help</a>
End Rem
Function VertexX#(surf:TSurface,vid)
	Return surf.VertexX#(vid)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexY">Online Help</a>
End Rem
Function VertexY#(surf:TSurface,vid)
	Return surf.VertexY#(vid)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=VertexZ">Online Help</a>
End Rem
Function VertexZ#(surf:TSurface,vid)
	Return surf.VertexZ#(vid)
End Function

Rem
bbdoc: <a href="http://www.blitzbasic.com/b3ddocs/command.php?name=Wireframe">Online Help</a>
End Rem
Function Wireframe(enable)
	TGlobal.Wireframe(enable)
End Function

' Blitz2D

Function MouseXSpeed()
	Return TBlitz2D.MouseXSpeed()
End Function

Function MouseYSpeed()
	Return TBlitz2D.MouseYSpeed()
End Function

Function Text(x,y,str$)
	TBlitz2D.Text(x,y,str$)
End Function

' To do

Function LightMesh(mesh:TMesh,red#,green#,blue#,range#=0,light_x#=0,light_y#=0,light_z#=0)
End Function
Function MeshesIntersect(mesh1:TMesh,mesh2:TMesh)
End Function
Function CameraProjMode(cam:TCamera,mode)
End Function
Function LoadAnimSeq(ent:TEntity,filename$)
End Function
Function SetAnimKey(ent:TEntity,frame,pos_key=True,rot_key=True,scale_key=True)
End Function
Function AddAnimSeq(ent:TEntity,length)
End Function

