Command Reference
Standard Version
AddAnimSeq
| Function AddAnimSeq(ent:TEntity,length) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity length |
||
| OUT | |||
| DESCRIPTION | |||
AddMesh:TMesh
| Function AddMesh:TMesh(mesh1:TMesh,mesh2:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh1:TMesh mesh2:TMesh |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
AddTriangle
| Function AddTriangle(surf:TSurface,v0,v1,v2) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface - surface reference v0 - index number of first vertex of triangle v1 - index number of secondvertex of triangle v2 - index number of third vertex of triangle |
||
| OUT | |||
| DESCRIPTION | Adds a triangle to a surface and returns the triangle's index number. The v0, v1 and v2 parameters are the index numbers of the vertices, created using AddVertex. |
||
\
AddVertex
| Function AddVertex(surf:TSurface,x#,y#,z#,u#=0.0,v#=0.0,w#=0.0) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface x# y# z# u#=0.0 v#=0.0 w#=0.0 |
||
| OUT | |||
| DESCRIPTION | |||
AmbientLight
| Function AmbientLight(r#,g#,b#) | |||
|---|---|---|---|
| Parameters | |||
| IN | r# g# b# |
||
| OUT | |||
| DESCRIPTION | |||
AnimLength
| Function AnimLength(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
AnimSeq
| Function AnimSeq(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
AnimTime#
| Function AnimTime#(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
Animate
| Function Animate(ent:TEntity,mode=1,speed#=1.0,seq=0,trans=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity mode=1 speed#=1.0 seq=0 trans=0 |
||
| OUT | |||
| DESCRIPTION | |||
Animating
| Function Animating(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
AntiAlias
| Function AntiAlias(samples) | |||
|---|---|---|---|
| Parameters | |||
| IN | samples |
||
| OUT | |||
| DESCRIPTION | |||
BackBufferToCubeTex
| Function BackBufferToCubeTex(tex:TTexture) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture |
||
| OUT | |||
| DESCRIPTION | |||
BackBufferToTex
| Function BackBufferToTex(tex:TTexture) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture |
||
| OUT | |||
| DESCRIPTION | |||
BrushAlpha
| Function BrushAlpha(brush:TBrush,a#) | |||
|---|---|---|---|
| Parameters | |||
| IN | brush:TBrush a# |
||
| OUT | |||
| DESCRIPTION | |||
BrushBlend
| Function BrushBlend(brush:TBrush,blend) | |||
|---|---|---|---|
| Parameters | |||
| IN | brush:TBrush blend |
||
| OUT | |||
| DESCRIPTION | |||
BrushColor
| Function BrushColor(brush:TBrush,r#,g#,b#) | |||
|---|---|---|---|
| Parameters | |||
| IN | brush:TBrush r# g# b# |
||
| OUT | |||
| DESCRIPTION | |||
BrushFX
| Function BrushFX(brush:TBrush,fx) | |||
|---|---|---|---|
| Parameters | |||
| IN | brush:TBrush fx |
||
| OUT | |||
| DESCRIPTION | |||
BrushShininess
| Function BrushShininess(brush:TBrush,s#) | |||
|---|---|---|---|
| Parameters | |||
| IN | brush:TBrush s# |
||
| OUT | |||
| DESCRIPTION | |||
BrushTexture
| Function BrushTexture(brush:TBrush,tex:TTexture,index=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | brush:TBrush tex:TTexture index=0 |
||
| OUT | |||
| DESCRIPTION | |||
CameraClsColor
| Function CameraClsColor(cam:TCamera,r#,g#,b#) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera r# g# b# |
||
| OUT | |||
| DESCRIPTION | |||
CameraClsMode
| Function CameraClsMode(cam:TCamera,cls_depth,cls_zbuffer) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera cls_depth cls_zbuffer |
||
| OUT | |||
| DESCRIPTION | |||
CameraFogColor
| Function CameraFogColor(cam:TCamera,r#,g#,b#) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera r# g# b# |
||
| OUT | |||
| DESCRIPTION | |||
CameraFogMode
| Function CameraFogMode(cam:TCamera,mode) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera mode |
||
| OUT | |||
| DESCRIPTION | |||
CameraFogRange
| Function CameraFogRange(cam:TCamera,near#,far#) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera near# far# |
||
| OUT | |||
| DESCRIPTION | |||
CameraPick:TEntity
| Function CameraPick:TEntity(cam:TCamera,x#,y#) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera x# y# |
||
| OUT | TEntity | ||
| DESCRIPTION | |||
CameraProjMode
| Function CameraProjMode(cam:TCamera,mode) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera mode |
||
| OUT | |||
| DESCRIPTION | |||
CameraProject
| Function CameraProject(cam:TCamera,x#,y#,z#) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera x# y# z# |
||
| OUT | |||
| DESCRIPTION | |||
CameraRange
| Function CameraRange(cam:TCamera,near#,far#) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera near# far# |
||
| OUT | |||
| DESCRIPTION | |||
CameraViewport
| Function CameraViewport(cam:TCamera,x,y,width,height) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera x y width height |
||
| OUT | |||
| DESCRIPTION | |||
CameraZoom
| Function CameraZoom(cam:TCamera,zoom#) | |||
|---|---|---|---|
| Parameters | |||
| IN | cam:TCamera zoom# |
||
| OUT | |||
| DESCRIPTION | |||
ClearCollisions
| Function ClearCollisions() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
ClearSurface
| Function ClearSurface(surf:TSurface,clear_verts=True,clear_tris=True) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface clear_verts=True clear_tris=True |
||
| OUT | |||
| DESCRIPTION | |||
ClearTextureFilters
| Function ClearTextureFilters() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
CollisionEntity:TEntity
| Function CollisionEntity:TEntity(ent:TEntity,index) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity index |
||
| OUT | TEntity | ||
| DESCRIPTION | |||
CollisionNX#
| Function CollisionNX#(ent:TEntity,index) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity index |
||
| OUT | |||
| DESCRIPTION | |||
CollisionNY#
| Function CollisionNY#(ent:TEntity,index) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity index |
||
| OUT | |||
| DESCRIPTION | |||
CollisionNZ#
| Function CollisionNZ#(ent:TEntity,index) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity index |
||
| OUT | |||
| DESCRIPTION | |||
CollisionSurface:TSurface
| Function CollisionSurface:TSurface(ent:TEntity,index) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity index |
||
| OUT | TSurface | ||
| DESCRIPTION | |||
CollisionTime#
| Function CollisionTime#(ent:TEntity,index) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity index |
||
| OUT | |||
| DESCRIPTION | |||
CollisionTriangle
| Function CollisionTriangle(ent:TEntity,index) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity index |
||
| OUT | |||
| DESCRIPTION | |||
CollisionX#
| Function CollisionX#(ent:TEntity,index) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity index |
||
| OUT | |||
| DESCRIPTION | |||
CollisionY#
| Function CollisionY#(ent:TEntity,index) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity index |
||
| OUT | |||
| DESCRIPTION | |||
CollisionZ#
| Function CollisionZ#(ent:TEntity,index) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity index |
||
| OUT | |||
| DESCRIPTION | |||
Collisions
| Function Collisions(src_no,dest_no,method_no,response_no=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | src_no dest_no method_no response_no=0 |
||
| OUT | |||
| DESCRIPTION | |||
CopyEntity:TEntity
| Function CopyEntity:TEntity(ent:TEntity,parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity parent:TEntity=Null |
||
| OUT | TEntity | ||
| DESCRIPTION | |||
CopyMesh:TMesh
| Function CopyMesh:TMesh(mesh:TMesh,parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh parent:TEntity=Null |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
CountChildren
| Function CountChildren(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
CountCollisions
| Function CountCollisions(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
CountSurfaces
| Function CountSurfaces(mesh:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh |
||
| OUT | |||
| DESCRIPTION | |||
CountTriangles
| Function CountTriangles(surf:TSurface) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface |
||
| OUT | |||
| DESCRIPTION | |||
CountVertices
| Function CountVertices(surf:TSurface) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface |
||
| OUT | |||
| DESCRIPTION | |||
CreateBrush:TBrush
| Function CreateBrush:TBrush(r#=255.0,g#=255.0,b#=255.0) | |||
|---|---|---|---|
| Parameters | |||
| IN | r#=255.0 g#=255.0 b#=255.0 |
||
| OUT | TBrush | ||
| DESCRIPTION | |||
CreateCamera:TCamera
| Function CreateCamera:TCamera(parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | parent:TEntity=Null |
||
| OUT | TCamera | ||
| DESCRIPTION | |||
CreateCone:TMesh
| Function CreateCone:TMesh(segments=8,solid=True,parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | segments=8 solid=True parent:TEntity=Null |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
CreateCube:TMesh
| Function CreateCube:TMesh(parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | parent:TEntity=Null |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
CreateCylinder:TMesh
| Function CreateCylinder:TMesh(segments=8,solid=True,parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | segments=8 solid=True parent:TEntity=Null |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
CreateLight:TLight
| Function CreateLight:TLight(light_type=1,parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | light_type=1 parent:TEntity=Null |
||
| OUT | TLight | ||
| DESCRIPTION | |||
CreateMesh:TMesh
| Function CreateMesh:TMesh(parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | parent:TEntity=Null |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
CreateOctree
| Function CreateOctree(mesh:TMesh,max_polys,max_levels) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh max_polys max_levels |
||
| OUT | |||
| DESCRIPTION | |||
CreatePivot:TPivot
| Function CreatePivot:TPivot(parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | parent:TEntity=Null |
||
| OUT | TPivot | ||
| DESCRIPTION | |||
CreateSphere:TMesh
| Function CreateSphere:TMesh(segments=8,parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | segments=8 parent:TEntity=Null |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
CreateSprite:TSprite
| Function CreateSprite:TSprite(parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | parent:TEntity=Null |
||
| OUT | TSprite | ||
| DESCRIPTION | |||
CreateSurface:TSurface
| Function CreateSurface:TSurface(mesh:TMesh,brush:TBrush=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh brush:TBrush=Null |
||
| OUT | TSurface | ||
| DESCRIPTION | |||
CreateTexture:TTexture
| Function CreateTexture:TTexture(width,height,flags=1,frames=1,RT:Int = GL_RGBA) | |||
|---|---|---|---|
| Parameters | |||
| IN | width height flags=1 frames=1 RT:Int = GL_RGBA |
||
| OUT | TTexture | ||
| DESCRIPTION | |||
DeltaPitch#
| Function DeltaPitch#(ent1:TEntity,ent2:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent1:TEntity ent2:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
DeltaYaw#
| Function DeltaYaw#(ent1:TEntity,ent2:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent1:TEntity ent2:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
EntityAlpha
| Function EntityAlpha(ent:TEntity,alpha#) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity alpha# |
||
| OUT | |||
| DESCRIPTION | |||
EntityAutoFade
| Function EntityAutoFade(ent:TEntity,near#,far#) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity near# far# |
||
| OUT | |||
| DESCRIPTION | |||
EntityBlend
| Function EntityBlend(ent:TEntity,blend) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity blend |
||
| OUT | |||
| DESCRIPTION | |||
EntityBox
| Function EntityBox(ent:TEntity,x#,y#,z#,w#,h#,d#) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity x# y# z# w# h# d# |
||
| OUT | |||
| DESCRIPTION | |||
EntityClass$
| Function EntityClass$(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
EntityCollided:TEntity
| Function EntityCollided:TEntity(ent:TEntity,type_no) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity type_no |
||
| OUT | TEntity | ||
| DESCRIPTION | |||
EntityColor
| Function EntityColor(ent:TEntity,red#,green#,blue#) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity red# green# blue# |
||
| OUT | |||
| DESCRIPTION | |||
EntityDistance#
| Function EntityDistance#(ent1:TEntity,ent2:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent1:TEntity ent2:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
EntityFX
| Function EntityFX(ent:TEntity,fx) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity fx |
||
| OUT | |||
| DESCRIPTION | |||
EntityInView
| Function EntityInView(ent:TEntity,cam:TCamera) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity cam:TCamera |
||
| OUT | |||
| DESCRIPTION | |||
EntityName$
| Function EntityName$(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
EntityOrder
| Function EntityOrder(ent:TEntity,order) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity order |
||
| OUT | |||
| DESCRIPTION | |||
EntityParent
| Function EntityParent(ent:TEntity,parent_ent:TEntity,glob=True) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity parent_ent:TEntity glob=True |
||
| OUT | |||
| DESCRIPTION | |||
EntityPick:TEntity
| Function EntityPick:TEntity(ent:TEntity,range#) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity range# |
||
| OUT | TEntity | ||
| DESCRIPTION | |||
EntityPickMode
| Function EntityPickMode(ent:TEntity,pick_mode,obscurer=True) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity pick_mode obscurer=True |
||
| OUT | |||
| DESCRIPTION | |||
EntityPitch#
| Function EntityPitch#(ent:TEntity,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity glob=False |
||
| OUT | |||
| DESCRIPTION | |||
EntityRadius
| Function EntityRadius(ent:TEntity,radius_x#,radius_y#=0.0,radius_z#=0.0) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity radius_x# radius_y#=0.0 radius_z#=0.0 |
||
| OUT | |||
| DESCRIPTION | |||
EntityRoll#
| Function EntityRoll#(ent:TEntity,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity glob=False |
||
| OUT | |||
| DESCRIPTION | |||
EntityShininess
| Function EntityShininess(ent:TEntity,shine#) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity shine# |
||
| OUT | |||
| DESCRIPTION | |||
EntityTexture
| Function EntityTexture(ent:TEntity,tex:TTexture,frame=0,index=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity tex:TTexture frame=0 index=0 |
||
| OUT | |||
| DESCRIPTION | |||
EntityType
| Function EntityType(ent:TEntity,type_no,recursive=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity type_no recursive=False |
||
| OUT | |||
| DESCRIPTION | |||
EntityVisible
| Function EntityVisible(src_ent:TEntity,dest_ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | src_ent:TEntity dest_ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
EntityX#
| Function EntityX#(ent:TEntity,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity glob=False |
||
| OUT | |||
| DESCRIPTION | |||
EntityY#
| Function EntityY#(ent:TEntity,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity glob=False |
||
| OUT | |||
| DESCRIPTION | |||
EntityYaw#
| Function EntityYaw#(ent:TEntity,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity glob=False |
||
| OUT | |||
| DESCRIPTION | |||
EntityZ#
| Function EntityZ#(ent:TEntity,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity glob=False |
||
| OUT | |||
| DESCRIPTION | |||
ExtractAnimSeq
| Function ExtractAnimSeq(ent:TEntity,first_frame,last_frame,seq=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity first_frame last_frame seq=0 |
||
| OUT | |||
| DESCRIPTION | |||
FindChild:TEntity
| Function FindChild:TEntity(ent:TEntity,child_name$) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity child_name$ |
||
| OUT | TEntity | ||
| DESCRIPTION | |||
FindSurface:TSurface
| Function FindSurface:TSurface(mesh:TMesh,brush:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh brush:TBrush |
||
| OUT | TSurface | ||
| DESCRIPTION | |||
FitMesh:TMesh
| Function FitMesh:TMesh(mesh:TMesh,x#,y#,z#,width#,height#,depth#,uniform=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh x# y# z# width# height# depth# uniform=False |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
FlipMesh:TMesh
| Function FlipMesh:TMesh(mesh:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
FreeBrush
| Function FreeBrush(brush:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | brush:TBrush |
||
| OUT | |||
| DESCRIPTION | |||
FreeEntity
| Function FreeEntity(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
FreeTexture:TTexture
| Function FreeTexture:TTexture(tex:TTexture) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture |
||
| OUT | TTexture | ||
| DESCRIPTION | |||
GetBrushTexture:TTexture
| Function GetBrushTexture:TTexture(brush:TBrush,index=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | brush:TBrush index=0 |
||
| OUT | TTexture | ||
| DESCRIPTION | |||
GetChild:TEntity
| Function GetChild:TEntity(ent:TEntity,child_no) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity child_no |
||
| OUT | TEntity | ||
| DESCRIPTION | |||
GetEntityBrush:TBrush
| Function GetEntityBrush:TBrush(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | TBrush | ||
| DESCRIPTION | |||
GetEntityType
| Function GetEntityType(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
GetMatElement#
| Function GetMatElement#(ent:TEntity,row,col) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity row col |
||
| OUT | |||
| DESCRIPTION | |||
GetParent:TEntity
| Function GetParent:TEntity(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | TEntity | ||
| DESCRIPTION | |||
GetSurface:TSurface
| Function GetSurface:TSurface(mesh:TMesh,surf_no) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh surf_no |
||
| OUT | TSurface | ||
| DESCRIPTION | |||
GetSurfaceBrush:TBrush
| Function GetSurfaceBrush:TBrush(surf:TSurface) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface |
||
| OUT | TBrush | ||
| DESCRIPTION | |||
Graphics3D
| Function Graphics3D(width,height,depth=0,mode=0,rate=60) | |||
|---|---|---|---|
| Parameters | |||
| IN | width height depth=0 mode=0 rate=60 |
||
| OUT | |||
| DESCRIPTION | |||
HandleSprite
| Function HandleSprite(sprite:TSprite,h_x#,h_y#) | |||
|---|---|---|---|
| Parameters | |||
| IN | sprite:TSprite h_x# h_y# |
||
| OUT | |||
| DESCRIPTION | |||
HideEntity
| Function HideEntity(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
LightColor
| Function LightColor(light:TLight,red#,green#,blue#) | |||
|---|---|---|---|
| Parameters | |||
| IN | light:TLight red# green# blue# |
||
| OUT | |||
| DESCRIPTION | |||
LightConeAngles
| Function LightConeAngles(light:TLight,inner_ang#,outer_ang#) | |||
|---|---|---|---|
| Parameters | |||
| IN | light:TLight inner_ang# outer_ang# |
||
| OUT | |||
| DESCRIPTION | |||
LightMesh
| Function LightMesh(mesh:TMesh,red#,green#,blue#,range#=0,light_x#=0,light_y#=0,light_z#=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh red# green# blue# range#=0 light_x#=0 light_y#=0 light_z#=0 |
||
| OUT | |||
| DESCRIPTION | |||
LightRange
| Function LightRange(light:TLight,range#) | |||
|---|---|---|---|
| Parameters | |||
| IN | light:TLight range# |
||
| OUT | |||
| DESCRIPTION | |||
LinePick:TEntity
| Function LinePick:TEntity(x#,y#,z#,dx#,dy#,dz#,radius#=0.0) | |||
|---|---|---|---|
| Parameters | |||
| IN | x# y# z# dx# dy# dz# radius#=0.0 |
||
| OUT | TEntity | ||
| DESCRIPTION | |||
LoadAnimMesh:TMesh
| Function LoadAnimMesh:TMesh(file$,parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | file$ parent:TEntity=Null |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
LoadAnimSeq
| Function LoadAnimSeq(ent:TEntity,filename$) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity filename$ |
||
| OUT | |||
| DESCRIPTION | |||
LoadAnimTexture:TTexture
| Function LoadAnimTexture:TTexture(file$,flags,frame_width,frame_height,first_frame,frame_count) | |||
|---|---|---|---|
| Parameters | |||
| IN | file$ flags frame_width frame_height first_frame frame_count |
||
| OUT | TTexture | ||
| DESCRIPTION | |||
LoadBrush:TBrush
| Function LoadBrush:TBrush(file$,flags=1,u_scale#=1.0,v_scale#=1.0) | |||
|---|---|---|---|
| Parameters | |||
| IN | file$ flags=1 u_scale#=1.0 v_scale#=1.0 |
||
| OUT | TBrush | ||
| DESCRIPTION | |||
LoadMesh:TMesh
| Function LoadMesh:TMesh(file$,parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | file$ parent:TEntity=Null |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
LoadSprite:TSprite
| Function LoadSprite:TSprite(tex_file$,tex_flag=1,parent:TEntity=Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex_file$ tex_flag=1 parent:TEntity=Null |
||
| OUT | TSprite | ||
| DESCRIPTION | |||
LoadTexture:TTexture
| Function LoadTexture:TTexture(file$,flags=1) | |||
|---|---|---|---|
| Parameters | |||
| IN | file$ flags=1 |
||
| OUT | TTexture | ||
| DESCRIPTION | |||
MeshCullRadius
| Function MeshCullRadius(ent:TEntity,radius#) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity radius# |
||
| OUT | |||
| DESCRIPTION | |||
MeshDepth#
| Function MeshDepth#(mesh:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh |
||
| OUT | |||
| DESCRIPTION | |||
MeshHeight#
| Function MeshHeight#(mesh:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh |
||
| OUT | |||
| DESCRIPTION | |||
MeshWidth#
| Function MeshWidth#(mesh:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh |
||
| OUT | |||
| DESCRIPTION | |||
MeshesIntersect
| Function MeshesIntersect(mesh1:TMesh,mesh2:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh1:TMesh mesh2:TMesh |
||
| OUT | |||
| DESCRIPTION | |||
MouseXSpeed
| Function MouseXSpeed() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
MouseYSpeed
| Function MouseYSpeed() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
MoveEntity
| Function MoveEntity(ent:TEntity,x#,y#,z#) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity x# y# z# |
||
| OUT | |||
| DESCRIPTION | |||
NameEntity
| Function NameEntity(ent:TEntity,Name$) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity Name$ |
||
| OUT | |||
| DESCRIPTION | |||
PaintEntity
| Function PaintEntity(ent:TEntity,brush:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity brush:TBrush |
||
| OUT | |||
| DESCRIPTION | |||
PaintMesh:TMesh
| Function PaintMesh:TMesh(mesh:TMesh,brush:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh brush:TBrush |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
PaintSurface
| Function PaintSurface(surf:TSurface,brush:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface brush:TBrush |
||
| OUT | |||
| DESCRIPTION | |||
PickedEntity:TEntity
| Function PickedEntity:TEntity() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | TEntity | ||
| DESCRIPTION | |||
PickedNX#
| Function PickedNX#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
PickedNY#
| Function PickedNY#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
PickedNZ#
| Function PickedNZ#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
PickedSurface:TSurface
| Function PickedSurface:TSurface() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | TSurface | ||
| DESCRIPTION | |||
PickedTime#
| Function PickedTime#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
PickedTriangle
| Function PickedTriangle() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
PickedX#
| Function PickedX#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
PickedY#
| Function PickedY#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
PickedZ#
| Function PickedZ#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
PointEntity
| Function PointEntity(ent:TEntity,target_ent:TEntity,roll#=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity target_ent:TEntity roll#=0 |
||
| OUT | |||
| DESCRIPTION | |||
PositionEntity
| Function PositionEntity(ent:TEntity,x#,y#,z#,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity x# y# z# glob=False |
||
| OUT | |||
| DESCRIPTION | |||
PositionMesh:TMesh
| Function PositionMesh:TMesh(mesh:TMesh,px#,py#,pz#) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh px# py# pz# |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
PositionTexture
| Function PositionTexture(tex:TTexture,u_pos#,v_pos#) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture u_pos# v_pos# |
||
| OUT | |||
| DESCRIPTION | |||
ProjectedX#
| Function ProjectedX#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
ProjectedY#
| Function ProjectedY#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
ProjectedZ#
| Function ProjectedZ#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
RenderWorld
| Function RenderWorld() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
ResetEntity
| Function ResetEntity(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
RotateEntity
| Function RotateEntity(ent:TEntity,x#,y#,z#,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity x# y# z# glob=False |
||
| OUT | |||
| DESCRIPTION | |||
RotateMesh:TMesh
| Function RotateMesh:TMesh(mesh:TMesh,pitch#,yaw#,roll#) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh pitch# yaw# roll# |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
RotateSprite
| Function RotateSprite(sprite:TSprite,ang#) | |||
|---|---|---|---|
| Parameters | |||
| IN | sprite:TSprite ang# |
||
| OUT | |||
| DESCRIPTION | |||
RotateTexture
| Function RotateTexture(tex:TTexture,ang#) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture ang# |
||
| OUT | |||
| DESCRIPTION | |||
ScaleEntity
| Function ScaleEntity(ent:TEntity,x#,y#,z#,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity x# y# z# glob=False |
||
| OUT | |||
| DESCRIPTION | |||
ScaleMesh:TMesh
| Function ScaleMesh:TMesh(mesh:TMesh,sx#,sy#,sz#) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh sx# sy# sz# |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
ScaleSprite
| Function ScaleSprite(sprite:TSprite,s_x#,s_y#) | |||
|---|---|---|---|
| Parameters | |||
| IN | sprite:TSprite s_x# s_y# |
||
| OUT | |||
| DESCRIPTION | |||
ScaleTexture
| Function ScaleTexture(tex:TTexture,u_scale#,v_scale#) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture u_scale# v_scale# |
||
| OUT | |||
| DESCRIPTION | |||
SetAnimKey
| Function SetAnimKey(ent:TEntity,frame,pos_key=True,rot_key=True,scale_key=True) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity frame pos_key=True rot_key=True scale_key=True |
||
| OUT | |||
| DESCRIPTION | |||
SetAnimTime
| Function SetAnimTime(ent:TEntity,time#,seq=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity time# seq=0 |
||
| OUT | |||
| DESCRIPTION | |||
SetCubeFace
| Function SetCubeFace(tex:TTexture,face) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture face |
||
| OUT | |||
| DESCRIPTION | |||
SetCubeMode
| Function SetCubeMode(tex:TTexture,mode) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture mode |
||
| OUT | |||
| DESCRIPTION | |||
ShowEntity
| Function ShowEntity(ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
SpriteViewMode
| Function SpriteViewMode(sprite:TSprite,mode) | |||
|---|---|---|---|
| Parameters | |||
| IN | sprite:TSprite mode |
||
| OUT | |||
| DESCRIPTION | |||
TFormNormal
| Function TFormNormal(x#,y#,z#,src_ent:TEntity,dest_ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | x# y# z# src_ent:TEntity dest_ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
TFormPoint
| Function TFormPoint(x#,y#,z#,src_ent:TEntity,dest_ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | x# y# z# src_ent:TEntity dest_ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
TFormVector
| Function TFormVector(x#,y#,z#,src_ent:TEntity,dest_ent:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | x# y# z# src_ent:TEntity dest_ent:TEntity |
||
| OUT | |||
| DESCRIPTION | |||
TFormedX#
| Function TFormedX#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
TFormedY#
| Function TFormedY#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
TFormedZ#
| Function TFormedZ#() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | |||
| DESCRIPTION | |||
Text
| Function Text(x,y,str$) | |||
|---|---|---|---|
| Parameters | |||
| IN | x y str$ |
||
| OUT | |||
| DESCRIPTION | |||
TextureBlend
| Function TextureBlend(tex:TTexture,blend) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture blend |
||
| OUT | |||
| DESCRIPTION | |||
TextureCoords
| Function TextureCoords(tex:TTexture,coords) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture coords |
||
| OUT | |||
| DESCRIPTION | |||
TextureFilter
| Function TextureFilter(match_text$,flags) | |||
|---|---|---|---|
| Parameters | |||
| IN | match_text$ flags |
||
| OUT | |||
| DESCRIPTION | |||
TextureHeight
| Function TextureHeight(tex:TTexture) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture |
||
| OUT | |||
| DESCRIPTION | |||
TextureName$
| Function TextureName$(tex:TTexture) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture |
||
| OUT | |||
| DESCRIPTION | |||
TextureWidth
| Function TextureWidth(tex:TTexture) | |||
|---|---|---|---|
| Parameters | |||
| IN | tex:TTexture |
||
| OUT | |||
| DESCRIPTION | |||
TranslateEntity
| Function TranslateEntity(ent:TEntity,x#,y#,z#,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity x# y# z# glob=False |
||
| OUT | |||
| DESCRIPTION | |||
TriangleNX#
| Function TriangleNX#(surf:TSurface,tri_no) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface tri_no |
||
| OUT | |||
| DESCRIPTION | |||
TriangleNY#
| Function TriangleNY#(surf:TSurface,tri_no) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface tri_no |
||
| OUT | |||
| DESCRIPTION | |||
TriangleNZ#
| Function TriangleNZ#(surf:TSurface,tri_no) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface tri_no |
||
| OUT | |||
| DESCRIPTION | |||
TriangleVertex
| Function TriangleVertex(surf:TSurface,tri_no,corner) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface tri_no corner |
||
| OUT | |||
| DESCRIPTION | |||
TurnEntity
| Function TurnEntity(ent:TEntity,x#,y#,z#,glob=False) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:TEntity x# y# z# glob=False |
||
| OUT | |||
| DESCRIPTION | |||
UpdateNormals
| Function UpdateNormals(mesh:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | mesh:TMesh |
||
| OUT | |||
| DESCRIPTION | |||
UpdateWorld
| Function UpdateWorld(anim_speed#=1.0) | |||
|---|---|---|---|
| Parameters | |||
| IN | anim_speed#=1.0 |
||
| OUT | |||
| DESCRIPTION | |||
VectorPitch#
| Function VectorPitch#(vx#,vy#,vz#) | |||
|---|---|---|---|
| Parameters | |||
| IN | vx# vy# vz# |
||
| OUT | |||
| DESCRIPTION | |||
VectorYaw#
| Function VectorYaw#(vx#,vy#,vz#) | |||
|---|---|---|---|
| Parameters | |||
| IN | vx# vy# vz# |
||
| OUT | |||
| DESCRIPTION | |||
VertexAlpha#
| Function VertexAlpha#(surf:TSurface,vid) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid |
||
| OUT | |||
| DESCRIPTION | |||
VertexBlue#
| Function VertexBlue#(surf:TSurface,vid) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid |
||
| OUT | |||
| DESCRIPTION | |||
VertexColor
| Function VertexColor(surf:TSurface,vid,r#,g#,b#,a#=1.0) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid r# g# b# a#=1.0 |
||
| OUT | |||
| DESCRIPTION | |||
VertexCoords
| Function VertexCoords(surf:TSurface,vid,x#,y#,z#) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid x# y# z# |
||
| OUT | |||
| DESCRIPTION | |||
VertexGreen#
| Function VertexGreen#(surf:TSurface,vid) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid |
||
| OUT | |||
| DESCRIPTION | |||
VertexNormal
| Function VertexNormal(surf:TSurface,vid,nx#,ny#,nz#) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid nx# ny# nz# |
||
| OUT | |||
| DESCRIPTION | |||
VertexRed#
| Function VertexRed#(surf:TSurface,vid) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid |
||
| OUT | |||
| DESCRIPTION | |||
VertexTexCoords
| Function VertexTexCoords(surf:TSurface,vid,u#,v#,w#=0.0,coord_set=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid u# v# w#=0.0 coord_set=0 |
||
| OUT | |||
| DESCRIPTION | |||
VertexU#
| Function VertexU#(surf:TSurface,vid,coord_set=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid coord_set=0 |
||
| OUT | |||
| DESCRIPTION | |||
VertexV#
| Function VertexV#(surf:TSurface,vid,coord_set=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid coord_set=0 |
||
| OUT | |||
| DESCRIPTION | |||
VertexX#
| Function VertexX#(surf:TSurface,vid) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid |
||
| OUT | |||
| DESCRIPTION | |||
VertexY#
| Function VertexY#(surf:TSurface,vid) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid |
||
| OUT | |||
| DESCRIPTION | |||
VertexZ#
| Function VertexZ#(surf:TSurface,vid) | |||
|---|---|---|---|
| Parameters | |||
| IN | surf:TSurface vid |
||
| OUT | |||
| DESCRIPTION | |||
Wireframe
| Function Wireframe(enable) | |||
|---|---|---|---|
| Parameters | |||
| IN | enable |
||
| OUT | |||
| DESCRIPTION | |||
Extended Version
ActivateShader
| Function ActivateShader(Ent:Tentity,mode:Byte = False) | |||
|---|---|---|---|
| Parameters | |||
| IN | Ent:Tentity mode:Byte = False |
||
| OUT | |||
| DESCRIPTION | |||
AddNewtonObject
| Function AddNewtonObject(World:TPhysic,NO:TNewtonObject) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic NO:TNewtonObject |
||
| OUT | |||
| DESCRIPTION | |||
AddPhysicMaterial
| Function AddPhysicMaterial(World:TPhysic,Material:TPhysicMaterial) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic Material:TPhysicMaterial |
||
| OUT | |||
| DESCRIPTION | |||
AddShaderObject
| Function AddShaderObject(bru:TBrush , vert:String = Null , frag:String = Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush vert:String = Null frag:String = Null |
||
| OUT | |||
| DESCRIPTION | This command creates a new shader object and adds it to the specified brush. vert:String - filename of the vertexshader source frag:String - filename of the fragmentshader source GLSL vertex- and pixelshader require a graphics card which supports shader version 2.0. This meet demands ATI from Radeon 9500 and nVidia from Geforce FX. |
||
Example:
'Creating a new Brush for the imp Local Tex:TBrush = CreateBrush() Tex.BrushShininess(10) ' Loading the correct textures Local Decal:TTexture = LoadTexture("media/StoneColor.png") Decal.TextureBlend(2) Local Normalmap:TTexture = LoadTexture("media/StoneNormal.png") Normalmap.TextureBlend(4) 'Applying the Textures to the shader slots BrushShaderTexture(Tex,Decal , 0) BrushShaderTexture(Tex , Normalmap , 1) ' Initiating the shader for the Brush InitShader(Tex) ' Loading the shader AddShaderObject(Tex,"bump.vert" , "bump.frag") 'Setting the shader attributes Tex.ProgramAttriBegin() Tex.SetUI1("colorMap" , 0) Tex.SetUI1("normalMap" , 1) Tex.SetAF3("vTangent" , 1.0 , 0.0 , 0.0) Tex.SetUF1("invRadius",0.001) Tex.ProgramAttriEnd() ' Paint the entity with the brush PaintEntity(ent , Tex) 'Activate the shader ActivateShader(ent , True)
AnimateMD2
| Function AnimateMD2(MD2:TMesh , mode:Int = 1 , Speed:Float = 1.0 , Start_frame:Int = 0 , Last_Frame:Int = - 1 , Transition:Float = 0.0) | |||
|---|---|---|---|
| Parameters | |||
| IN | MD2:TMesh mode:Int = 1 Speed:Float = 1.0 Start_frame:Int = 0 Last_Frame:Int = - 1 Transition:Float = 0.0 |
||
| OUT | |||
| DESCRIPTION | |||
ApplyImpulse
| Function ApplyImpulse(World:TPhysic,mesh:TEntity,impactX:Float,ImpactY:Float,ImpactZ:Float,ForceX:Float,ForceY:Float,ForceZ:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic mesh:TEntity impactX:Float ImpactY:Float ImpactZ:Float ForceX:Float ForceY:Float ForceZ:Float |
||
| OUT | |||
| DESCRIPTION | |||
BackBufferToTexExt
| Function BackBufferToTexExt(tex:TTexture , Buffer:Int = GL_DEPTH_COMPONENT) | ||
|---|---|---|
| Parameters | ||
| IN | tex:TTexture Buffer:Int = GL_DEPTH_COMPONENT |
|
| OUT | ||
| DESCRIPTION | This command is used to copy the current backbuffer into an texture. tex specifies the target texture. Buffer specifies the internal format of the texture. The format must be in conformity with the texture format. It must be one of the following constants: * GL_RGBA8 * GL_DEPTH_COMPONENT In order to to implement shadowmapping, GL_DEPTH_COMPONENT must be used to copy only the depth values of the backbuffer. GL_RGBA8, by contrast, copies the current color values. |
|
Example:
Import klepto.minib3d Graphics3D 800,600,32,0 ClearTextureFilters() Local cam:TCamera=CreateCamera() PositionEntity cam,0,10,-15 CameraClsColor(cam,0,0,128) Local cam2:TCamera = CreateCamera() PositionEntity cam2,0,5,10 RotateEntity cam2,0,180,0 Local light = CreateLight(1) PositionEntity light,20,10,0 Local ent = CreateSphere() PositionEntity(ent,0,4,0) EntityColor ent,255,0,0 Local plane:TMesh = CreateCube() PositionEntity plane , 0 , 10 , 5 ScaleEntity plane ,10,10,0.1 RotateEntity plane,0,0,180 Local tex:TTexture = CreateTexture(512,512,1,1, GL_RGB8 ) EntityTexture plane,tex While Not(KeyDown(KEY_ESCAPE) Or AppTerminate() ) If KeyDown(KEY_UP)=True Then MoveEntity ent,0,0.2,0 If KeyDown(KEY_DOWN)=True Then MoveEntity ent,0,-0.2,0 If KeyDown(KEY_LEFT)=True Then MoveEntity ent,-0.2,0,0 If KeyDown(KEY_RIGHT)=True Then MoveEntity ent,0.2,0,0 If KeyDown(KEY_A)=True Then MoveEntity ent,0,0,0.2 If KeyDown(KEY_S)=True Then MoveEntity ent,0,0,-0.2 HideEntity Cam ShowEntity cam2 SetViewport 0,0,512,512 HideEntity plane RenderWorld BackBufferToTexExt(tex, GL_RGB8 ) ShowEntity plane ShowEntity Cam HideEntity cam2 SetViewport 0,0,800,600 RenderWorld Flip Wend EndGraphics End
BallConstraitGetForce:TVector
| Function BallConstraitGetForce:TVector(BallConstrait:TBallConStrait) | |||
|---|---|---|---|
| Parameters | |||
| IN | BallConstrait:TBallConStrait |
||
| OUT | TVector | ||
| DESCRIPTION | |||
BallConstraitSetConeLimits
| Function BallConstraitSetConeLimits(BallConstrait:TBallConStrait,Vector:TVector,maxConeAngle:Float,MaxTwistAngle:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | BallConstrait:TBallConStrait Vector:TVector maxConeAngle:Float MaxTwistAngle:Float |
||
| OUT | |||
| DESCRIPTION | |||
BrushShaderTexture
| Function BrushShaderTexture(bru:TBrush , texture:TTexture , index = 0) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush texture:TTexture index = 0 |
||
| OUT | |||
| DESCRIPTION | |||
BuildPhysicMaterialLibraries
| Function BuildPhysicMaterialLibraries(World:TPhysic,BuildOption:Int = PHYS_MATERIAL_AVERAGE) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic BuildOption:Int = PHYS_MATERIAL_AVERAGE |
||
| OUT | |||
| DESCRIPTION | |||
CanvasGraphics3D
| Function CanvasGraphics3D(Canvas:TGadget) | |||
|---|---|---|---|
| Parameters | |||
| IN | Canvas:TGadget |
||
| OUT | |||
| DESCRIPTION | |||
ContactInfo
| Function ContactInfo(Info:TContactInfo) | |||
|---|---|---|---|
| Parameters | |||
| IN | Info:TContactInfo |
||
| OUT | |||
| DESCRIPTION | |||
CreateBallConstrait:TBallConstrait
| Function CreateBallConstrait:TBallConstrait(WorldPosition:TVector,body0:TNewtonObject,body1:TNewtonObject) | |||
|---|---|---|---|
| Parameters | |||
| IN | WorldPosition:TVector body0:TNewtonObject body1:TNewtonObject |
||
| OUT | TBallConstrait | ||
| DESCRIPTION | |||
CreatePhysicMaterial:TPhysicMaterial
| Function CreatePhysicMaterial:TPhysicMaterial(Name:String) | |||
|---|---|---|---|
| Parameters | |||
| IN | Name:String |
||
| OUT | TPhysicMaterial | ||
| DESCRIPTION | |||
DeactivateClippingPlane
| Function DeactivateClippingPlane(Clip:Int = 0) | |||
|---|---|---|---|
| Parameters | |||
| IN | Clip:Int = 0 |
||
| OUT | |||
| DESCRIPTION | |||
Destroy
| Function Destroy(Constrait:TConStrait) | |||
|---|---|---|---|
| Parameters | |||
| IN | Constrait:TConStrait |
||
| OUT | |||
| DESCRIPTION | |||
DestroyBody
| Function DestroyBody(World:TPhysic,mesh:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic mesh:TMesh |
||
| OUT | |||
| DESCRIPTION | |||
EntityRenderMode
| Function EntityRenderMode(Entity:TEntity , Mode:Int = RENDER_FULL) | |||
|---|---|---|---|
| Parameters | |||
| IN | Entity:TEntity Mode:Int = RENDER_FULL |
||
| OUT | |||
| DESCRIPTION | |||
EntityShaderTexture
| Function EntityShaderTexture(ent:Tentity , texture:TTexture , Frame = 0 , index = 0) | |||
|---|---|---|---|
| Parameters | |||
| IN | ent:Tentity texture:TTexture Frame = 0 index = 0 |
||
| OUT | |||
| DESCRIPTION | |||
EntityShadow
| Function EntityShadow(MEsh:TMesh , Light:TLight) | |||
|---|---|---|---|
| Parameters | |||
| IN | MEsh:TMesh Light:TLight |
||
| OUT | |||
| DESCRIPTION | |||
GetActiveBodyCount:Int
| Function GetActiveBodyCount:Int(World:TPhysic) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic |
||
| OUT | Int | ||
| DESCRIPTION | |||
GetConstraitStiffiness:Float
| Function GetConstraitStiffiness:Float(Constrait:TConStrait) | |||
|---|---|---|---|
| Parameters | |||
| IN | Constrait:TConStrait |
||
| OUT | Float | ||
| DESCRIPTION | |||
GetNode:Byte Ptr
| Function GetNode:Byte Ptr(World:TPhysic,mesh:TEntity) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic mesh:TEntity |
||
| OUT | Byte Ptr | ||
| DESCRIPTION | |||
GetPhysicTime:Float
| Function GetPhysicTime:Float(World:TPhysic) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic |
||
| OUT | Float | ||
| DESCRIPTION | |||
GetUnActiveBodyCount:Int
| Function GetUnActiveBodyCount:Int(World:TPhysic) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic |
||
| OUT | Int | ||
| DESCRIPTION | |||
HideSurface
| Function HideSurface(Surf:TSurface) | |||
|---|---|---|---|
| Parameters | |||
| IN | Surf:TSurface |
||
| OUT | |||
| DESCRIPTION | |||
InitPhysic:TPhysic
| Function InitPhysic:TPhysic() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | TPhysic | ||
| DESCRIPTION | |||
InitShader
| Function InitShader(Bru:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | Bru:TBrush |
||
| OUT | |||
| DESCRIPTION | |||
ListShaders
| Function ListShaders(bru:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush |
||
| OUT | |||
| DESCRIPTION | |||
LoadMD2:TMesh
| Function LoadMD2:TMesh(Url:Object) | |||
|---|---|---|---|
| Parameters | |||
| IN | Url:Object |
||
| OUT | TMesh | ||
| DESCRIPTION | |||
LoadTerrain:TTerrain
| Function LoadTerrain:TTerrain(URL:String,Chunksize:Int = 64) | |||
|---|---|---|---|
| Parameters | |||
| IN | URL:String Chunksize:Int = 64 |
||
| OUT | TTerrain | ||
| DESCRIPTION | |||
MD2AnimLength:Int
| Function MD2AnimLength:Int(md2:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | md2:TMesh |
||
| OUT | Int | ||
| DESCRIPTION | |||
MD2AnimSpeed
| Function MD2AnimSpeed(md2:TMesh , Speed:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | md2:TMesh Speed:Float |
||
| OUT | |||
| DESCRIPTION | |||
MD2AnimTime:Float
| Function MD2AnimTime:Float(md2:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | md2:TMesh |
||
| OUT | Float | ||
| DESCRIPTION | |||
MD2Animating:Byte
| Function MD2Animating:Byte(md2:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | md2:TMesh |
||
| OUT | Byte | ||
| DESCRIPTION | |||
MeshUseVBO
| Function MeshUseVBO(Mesh:TMesh , State:Byte) | |||
|---|---|---|---|
| Parameters | |||
| IN | Mesh:TMesh State:Byte |
||
| OUT | |||
| DESCRIPTION | |||
OverrideElasticity
| Function OverrideElasticity(Contactinfo:TContactInfo,value:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | Contactinfo:TContactInfo value:Float |
||
| OUT | |||
| DESCRIPTION | |||
OverrideFrictionState
| Function OverrideFrictionState(Contactinfo:TContactInfo,state:Int , id:Int = 0) | |||
|---|---|---|---|
| Parameters | |||
| IN | Contactinfo:TContactInfo state:Int id:Int = 0 |
||
| OUT | |||
| DESCRIPTION | |||
OverrideKineticFriction
| Function OverrideKineticFriction(Contactinfo:TContactInfo,Value:Float,id:Int = 0) | |||
|---|---|---|---|
| Parameters | |||
| IN | Contactinfo:TContactInfo Value:Float id:Int = 0 |
||
| OUT | |||
| DESCRIPTION | |||
OverrideNormalAcceleration
| Function OverrideNormalAcceleration(Contactinfo:TContactInfo,value:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | Contactinfo:TContactInfo value:Float |
||
| OUT | |||
| DESCRIPTION | |||
OverrideNormalDirection
| Function OverrideNormalDirection(Contactinfo:TContactInfo,Value:TVector) | |||
|---|---|---|---|
| Parameters | |||
| IN | Contactinfo:TContactInfo Value:TVector |
||
| OUT | |||
| DESCRIPTION | |||
OverrideSoftness
| Function OverrideSoftness(Contactinfo:TContactInfo,Value:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | Contactinfo:TContactInfo Value:Float |
||
| OUT | |||
| DESCRIPTION | |||
OverrideStaticFriction
| Function OverrideStaticFriction(Contactinfo:TContactInfo,Value:Float,id:Int=0) | |||
|---|---|---|---|
| Parameters | |||
| IN | Contactinfo:TContactInfo Value:Float id:Int=0 |
||
| OUT | |||
| DESCRIPTION | |||
OverrideTangentAcceleration
| Function OverrideTangentAcceleration(Contactinfo:TContactInfo,Value:Float,id:Int = 0) | |||
|---|---|---|---|
| Parameters | |||
| IN | Contactinfo:TContactInfo Value:Float id:Int = 0 |
||
| OUT | |||
| DESCRIPTION | |||
PhxMaterialSetElasticity
| Function PhxMaterialSetElasticity(PhysicMaterial:TPhysicMaterial,Elasticity:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | PhysicMaterial:TPhysicMaterial Elasticity:Float |
||
| OUT | |||
| DESCRIPTION | |||
PhxMaterialSetFriction
| Function PhxMaterialSetFriction(PhysicMaterial:TPhysicMaterial,staticFriction:Float,KineticFriction:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | PhysicMaterial:TPhysicMaterial staticFriction:Float KineticFriction:Float |
||
| OUT | |||
| DESCRIPTION | |||
PhxMaterialSetSoftness
| Function PhxMaterialSetSoftness(PhysicMaterial:TPhysicMaterial,Softness:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | PhysicMaterial:TPhysicMaterial Softness:Float |
||
| OUT | |||
| DESCRIPTION | |||
PhxObjGetPosition:TVector
| Function PhxObjGetPosition:TVector(NewtonObject:TNewtonObject) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject |
||
| OUT | TVector | ||
| DESCRIPTION | |||
PhxObjGetRotation:String
| Function PhxObjGetRotation:String(NewtonObject:TNewtonObject) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject |
||
| OUT | String | ||
| DESCRIPTION | |||
PhxObjGetVelocity:TVector
| Function PhxObjGetVelocity:TVector(NewtonObject:TNewtonObject) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject |
||
| OUT | TVector | ||
| DESCRIPTION | |||
PhxObjOmegaToString:String
| Function PhxObjOmegaToString:String(NewtonObject:TNewtonObject) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject |
||
| OUT | String | ||
| DESCRIPTION | |||
PhxObjSetAutoSleep
| Function PhxObjSetAutoSleep(NewtonObject:TNewtonObject,State:Int = 1) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject State:Int = 1 |
||
| OUT | |||
| DESCRIPTION | |||
PhxObjSetCollisionMode
| Function PhxObjSetCollisionMode(NewtonObject:TNewtonObject,Mode:Int = PHYS_NORMAL_COLLISION) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject Mode:Int = PHYS_NORMAL_COLLISION |
||
| OUT | |||
| DESCRIPTION | |||
PhxObjSetMass
| Function PhxObjSetMass(NewtonObject:TNewtonObject,Mass:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject Mass:Float |
||
| OUT | |||
| DESCRIPTION | |||
PhxObjSetRotation
| Function PhxObjSetRotation(NewtonObject:TNewtonObject,Pitch# , Roll# , Yaw#) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject Pitch# Roll# Yaw# |
||
| OUT | |||
| DESCRIPTION | |||
PhxObjSetSleepTreshold
| Function PhxObjSetSleepTreshold(NewtonObject:TNewtonObject,speedmag:Float,omegamag:Float,frames:Int) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject speedmag:Float omegamag:Float frames:Int |
||
| OUT | |||
| DESCRIPTION | |||
PhxObjSetUserForceCallback
| Function PhxObjSetUserForceCallback(NewtonObject:TNewtonObject,Callback(NewtonObject:TNewtonObject)) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject Callback(NewtonObject:TNewtonObject |
||
| OUT | |||
| DESCRIPTION | |||
PhxObjVelocityToString:String
| Function PhxObjVelocityToString:String(NewtonObject:TNewtonObject) | |||
|---|---|---|---|
| Parameters | |||
| IN | NewtonObject:TNewtonObject |
||
| OUT | String | ||
| DESCRIPTION | |||
PhysicObjectCreate:TNewtonObject
| Function PhysicObjectCreate:TNewtonObject(Mesh:TMesh,T:Int = 0) | |||
|---|---|---|---|
| Parameters | |||
| IN | Mesh:TMesh T:Int = 0 |
||
| OUT | TNewtonObject | ||
| DESCRIPTION | |||
PhysicUpdate
| Function PhysicUpdate(World:TPhysic,UpTime:Float = - 1.0) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic UpTime:Float = - 1.0 |
||
| OUT | |||
| DESCRIPTION | |||
PositionTerrain
| Function PositionTerrain(Terrain:TTerrain , X:Float , Y:Float , Z:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | Terrain:TTerrain X:Float Y:Float Z:Float |
||
| OUT | |||
| DESCRIPTION | |||
ProgramAttriBegin
| Function ProgramAttriBegin(bru:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush |
||
| OUT | |||
| DESCRIPTION | |||
ProgramAttriEnd
| Function ProgramAttriEnd(bru:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush |
||
| OUT | |||
| DESCRIPTION | |||
ScaleTerrain
| Function ScaleTerrain(Terrain:TTerrain , X:Float , Y:Float , Z:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | Terrain:TTerrain X:Float Y:Float Z:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetAD1
| Function SetAD1(bru:TBrush , Name:String , para:Double) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Double |
||
| OUT | |||
| DESCRIPTION | |||
SetAD2
| Function SetAD2(bru:TBrush , Name:String , para:Double, para1:Double) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Double para1:Double |
||
| OUT | |||
| DESCRIPTION | |||
SetAD3
| Function SetAD3(bru:TBrush , Name:String , para:Double, para1:Double, para2:Double) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Double para1:Double para2:Double |
||
| OUT | |||
| DESCRIPTION | |||
SetAD4
| Function SetAD4(bru:TBrush , Name:String , para:Double, para1:Double, para2:Double, para3:Double) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Double para1:Double para2:Double para3:Double |
||
| OUT | |||
| DESCRIPTION | |||
SetAF1
| Function SetAF1(bru:TBrush , Name:String , para:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetAF2
| Function SetAF2(bru:TBrush , Name:String , para:Float, para1:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Float para1:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetAF3
| Function SetAF3(bru:TBrush , Name:String , para:Float, para1:Float, para2:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Float para1:Float para2:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetAF4
| Function SetAF4(bru:TBrush , Name:String , para:Float, para1:Float, para2:Float, para3:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Float para1:Float para2:Float para3:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetAS1
| Function SetAS1(bru:TBrush , Name:String , para:Short) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Short |
||
| OUT | |||
| DESCRIPTION | |||
SetAS2
| Function SetAS2(bru:TBrush , Name:String , para:Short , para1:Short) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Short para1:Short |
||
| OUT | |||
| DESCRIPTION | |||
SetAS3
| Function SetAS3(bru:TBrush , Name:String , para:Short , para1:Short , para2:Short) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Short para1:Short para2:Short |
||
| OUT | |||
| DESCRIPTION | |||
SetAS4
| Function SetAS4(bru:TBrush , Name:String , para:Short , para1:Short , para2:Short , para3:Short) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Short para1:Short para2:Short para3:Short |
||
| OUT | |||
| DESCRIPTION | |||
SetBodyMaterial
| Function SetBodyMaterial(World:TPhysic,NObject:TNewtonObject,MAterial:Object) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic NObject:TNewtonObject MAterial:Object |
||
| OUT | |||
| DESCRIPTION | |||
SetClippingPlane
| Function SetClippingPlane(X:Float , Y:Float , Z:Float , NX:Float , NY:Float , NZ:Float , Clip:Int = 0 , Camera:TCamera = Null) | |||
|---|---|---|---|
| Parameters | |||
| IN | X:Float Y:Float Z:Float NX:Float NY:Float NZ:Float Clip:Int = 0 Camera:TCamera = Null |
||
| OUT | |||
| DESCRIPTION | |||
SetCollisionMode
| Function SetCollisionMode(World:TPhysic,Material1:Object,Material2:Object,Mode:Int = PHYS_NORMAL_COLLISION) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic Material1:Object Material2:Object Mode:Int = PHYS_NORMAL_COLLISION |
||
| OUT | |||
| DESCRIPTION | |||
SetConstraitCollisionState
| Function SetConstraitCollisionState(Constrait:TConStrait,state:Int = 0) | |||
|---|---|---|---|
| Parameters | |||
| IN | Constrait:TConStrait state:Int = 0 |
||
| OUT | |||
| DESCRIPTION | |||
SetConstraitStiffness
| Function SetConstraitStiffness(Constrait:TConStrait,stiffiness:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | Constrait:TConStrait stiffiness:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetDefaultElasticity
| Function SetDefaultElasticity(World:TPhysic,Value:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic Value:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetDefaultFriction
| Function SetDefaultFriction(World:TPhysic,staticFriction:Float,kineticfriction:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic staticFriction:Float kineticfriction:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetDefaultSoftiness
| Function SetDefaultSoftiness(World:TPhysic,Value:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic Value:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetM2
| Function SetM2(bru:TBrush , Name:String , Matrix:Float[,] , Trans:Int) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String Matrix:Float[ ] Trans:Int |
||
| OUT | |||
| DESCRIPTION | |||
SetM3
| Function SetM3(bru:TBrush , Name:String , Matrix:Float[,] , Trans:Int) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String Matrix:Float[ ] Trans:Int |
||
| OUT | |||
| DESCRIPTION | |||
SetM4
| Function SetM4(bru:TBrush , Name:String , Matrix:Float[,] , Trans:Int) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String Matrix:Float[ ] Trans:Int |
||
| OUT | |||
| DESCRIPTION | |||
SetPhysicMaterialCollision
| Function SetPhysicMaterialCollision(World:TPhysic,M1:Object,M2:Object,state:Int = 1) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic M1:Object M2:Object state:Int = 1 |
||
| OUT | |||
| DESCRIPTION | |||
SetPhysicModel
| Function SetPhysicModel(World:TPhysic,SolverModel:Int,FrictionModel:Int) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic SolverModel:Int FrictionModel:Int |
||
| OUT | |||
| DESCRIPTION | |||
SetShadowMode
| Function SetShadowMode(ZMode:Int = 1 , SRender:Int = 0) | |||
|---|---|---|---|
| Parameters | |||
| IN | ZMode:Int = 1 SRender:Int = 0 |
||
| OUT | |||
| DESCRIPTION | |||
SetUF1
| Function SetUF1(bru:TBrush , Name:String , para:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetUF2
| Function SetUF2(bru:TBrush , Name:String , para:Float, para1:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Float para1:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetUF3
| Function SetUF3(bru:TBrush , Name:String , para:Float, para1:Float, para2:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Float para1:Float para2:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetUF4
| Function SetUF4(bru:TBrush , Name:String , para:Float, para1:Float, para2:Float, para3:Float) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Float para1:Float para2:Float para3:Float |
||
| OUT | |||
| DESCRIPTION | |||
SetUI1
| Function SetUI1(bru:TBrush , Name:String , para:Int) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Int |
||
| OUT | |||
| DESCRIPTION | |||
SetUI2
| Function SetUI2(bru:TBrush , Name:String , para:Int , para1:Int) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Int para1:Int |
||
| OUT | |||
| DESCRIPTION | |||
SetUI3
| Function SetUI3(bru:TBrush , Name:String , para:Int , para1:Int , para2:Int) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Int para1:Int para2:Int |
||
| OUT | |||
| DESCRIPTION | |||
SetUI4
| Function SetUI4(bru:TBrush , Name:String , para:Int , para1:Int , para2:Int , para3:Int) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush Name:String para:Int para1:Int para2:Int para3:Int |
||
| OUT | |||
| DESCRIPTION | |||
SetWorldSize
| Function SetWorldSize(World:TPhysic,V1:TVector,V2:TVector) | |||
|---|---|---|---|
| Parameters | |||
| IN | World:TPhysic V1:TVector V2:TVector |
||
| OUT | |||
| DESCRIPTION | |||
ShaderActivate
| Function ShaderActivate(bru:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush |
||
| OUT | |||
| DESCRIPTION | |||
ShaderDeActivate
| Function ShaderDeActivate(bru:TBrush) | |||
|---|---|---|---|
| Parameters | |||
| IN | bru:TBrush |
||
| OUT | |||
| DESCRIPTION | |||
ShowShadow
| Function ShowShadow(Active:Byte) | |||
|---|---|---|---|
| Parameters | |||
| IN | Active:Byte |
||
| OUT | |||
| DESCRIPTION | |||
ShowSurface
| Function ShowSurface(Surf:TSurface) | |||
|---|---|---|---|
| Parameters | |||
| IN | Surf:TSurface |
||
| OUT | |||
| DESCRIPTION | |||
TerrainY
| Function TerrainY(Terrain:TTerrain,X:Float,Y:Float,Z:Float,Mode:Int = 1) | |||
|---|---|---|---|
| Parameters | |||
| IN | Terrain:TTerrain X:Float Y:Float Z:Float Mode:Int = 1 |
||
| OUT | |||
| DESCRIPTION | |||
TextureTerrain
| Function TextureTerrain(Terrain:TTerrain , File:String , Layer:Int = 0) | |||
|---|---|---|---|
| Parameters | |||
| IN | Terrain:TTerrain File:String Layer:Int = 0 |
||
| OUT | |||
| DESCRIPTION | |||
TrisRendered:Int
| Function TrisRendered:Int() | |||
|---|---|---|---|
| Parameters | |||
| IN | |
||
| OUT | Int | ||
| DESCRIPTION | |||
UpdateCanvas3D
| Function UpdateCanvas3D(Canvas:TGadget) | |||
|---|---|---|---|
| Parameters | |||
| IN | Canvas:TGadget |
||
| OUT | |||
| DESCRIPTION | |||
UpdateVBOBuffer
| Function UpdateVBOBuffer(Mesh:TMesh) | |||
|---|---|---|---|
| Parameters | |||
| IN | Mesh:TMesh |
||
| OUT | |||
| DESCRIPTION | |||
VectorDistance:Float
| Function VectorDistance:Float(Entity:TEntity,Vector:TVector) | |||
|---|---|---|---|
| Parameters | |||
| IN | Entity:TEntity Vector:TVector |
||
| OUT | Float | ||
| DESCRIPTION | |||