ModuleInfo "Version: 1.00"
ModuleInfo "License: zlib/libpng"
ModuleInfo "Copyright: 2014 Mark Mcvittie, Bruce A Henderson"
ModuleInfo "History: 1.00 Initial Release"
import brl.blitz
import openb3d.openb3dlib
import brl.glmax2d
import brl.bmploader
import brl.pngloader
import brl.jpgloader
import brl.retro
import brl.map
TGlobal^Object{
-New()="_openb3d_openb3d_TGlobal_New"
}="openb3d_openb3d_TGlobal"
TEntity^Object{
-New()="_openb3d_openb3d_TEntity_New"
}="openb3d_openb3d_TEntity"
TCamera^Object{
-New()="_openb3d_openb3d_TCamera_New"
}="openb3d_openb3d_TCamera"
TLight^Object{
-New()="_openb3d_openb3d_TLight_New"
}="openb3d_openb3d_TLight"
TPivot^Object{
-New()="_openb3d_openb3d_TPivot_New"
}="openb3d_openb3d_TPivot"
TMesh^Object{
-New()="_openb3d_openb3d_TMesh_New"
}="openb3d_openb3d_TMesh"
TSprite^Object{
-New()="_openb3d_openb3d_TSprite_New"
}="openb3d_openb3d_TSprite"
TBone^Object{
-New()="_openb3d_openb3d_TBone_New"
}="openb3d_openb3d_TBone"
TSurface^Object{
-New()="_openb3d_openb3d_TSurface_New"
}="openb3d_openb3d_TSurface"
TTexture^Object{
-New()="_openb3d_openb3d_TTexture_New"
}="openb3d_openb3d_TTexture"
TBrush^Object{
-New()="_openb3d_openb3d_TBrush_New"
}="openb3d_openb3d_TBrush"
TAnimation^Object{
-New()="_openb3d_openb3d_TAnimation_New"
}="openb3d_openb3d_TAnimation"
TPick^Object{
-New()="_openb3d_openb3d_TPick_New"
}="openb3d_openb3d_TPick"
TTerrain^Object{
-New()="_openb3d_openb3d_TTerrain_New"
}="openb3d_openb3d_TTerrain"
TShader^Object{
-New()="_openb3d_openb3d_TShader_New"
}="openb3d_openb3d_TShader"
TShadowObject^Object{
-New()="_openb3d_openb3d_TShadowObject_New"
}="openb3d_openb3d_TShadowObject"
THardwareInfo^Object{
-New()="_openb3d_openb3d_THardwareInfo_New"
}="openb3d_openb3d_THardwareInfo"
AddMesh%(mesh1:TMesh,mesh2:TMesh)="openb3d_openb3d_AddMesh"
AddTriangle%(surf:TSurface,v0%,v1%,v2%)="openb3d_openb3d_AddTriangle"
AddVertex%(surf:TSurface,x#,y#,z#,u#=0.000000000#,v#=0.000000000#,w#=0.000000000#)="openb3d_openb3d_AddVertex"
AmbientLight%(r#,g#,b#)="openb3d_openb3d_AmbientLight"
Animate%(ent:TEntity,Mode%=1,speed#=1.00000000#,seq%=0,trans%=0)="openb3d_openb3d_Animate"
Animating%(ent:TEntity)="openb3d_openb3d_Animating"
AnimLength%(ent:TEntity)="openb3d_openb3d_AnimLength"
AnimSeq%(ent:TEntity)="openb3d_openb3d_AnimSeq"
AnimTime#(ent:TEntity)="openb3d_openb3d_AnimTime"
BrushAlpha%(brush:TBrush,a#)="openb3d_openb3d_BrushAlpha"
BrushBlend%(brush:TBrush,blend%)="openb3d_openb3d_BrushBlend"
BrushColor%(brush:TBrush,r#,g#,b#)="openb3d_openb3d_BrushColor"
BrushFX%(brush:TBrush,fx%)="openb3d_openb3d_BrushFX"
BrushShininess%(brush:TBrush,s#)="openb3d_openb3d_BrushShininess"
BrushTexture%(brush:TBrush,tex:TTexture,frame%=0,index%=0)="openb3d_openb3d_BrushTexture"
CameraClsColor%(cam:TCamera,r#,g#,b#)="openb3d_openb3d_CameraClsColor"
CameraClsMode%(cam:TCamera,cls_depth%,cls_zbuffer%)="openb3d_openb3d_CameraClsMode"
CameraFogColor%(cam:TCamera,r#,g#,b#)="openb3d_openb3d_CameraFogColor"
CameraFogMode%(cam:TCamera,Mode%)="openb3d_openb3d_CameraFogMode"
CameraFogRange%(cam:TCamera,nnear#,nfar#)="openb3d_openb3d_CameraFogRange"
CameraPick:TEntity(cam:TCamera,x#,y#)="openb3d_openb3d_CameraPick"
CameraProject%(cam:TCamera,x#,y#,z#)="openb3d_openb3d_CameraProject"
CameraProjMode%(cam:TCamera,Mode%)="openb3d_openb3d_CameraProjMode"
CameraRange%(cam:TCamera,nnear#,nfar#)="openb3d_openb3d_CameraRange"
CameraViewport%(cam:TCamera,x%,y%,width%,height%)="openb3d_openb3d_CameraViewport"
CameraZoom%(cam:TCamera,zoom#)="openb3d_openb3d_CameraZoom"
ClearCollisions%()="openb3d_openb3d_ClearCollisions"
ClearSurface%(surf:TSurface,clear_verts%=1,clear_tris%=1)="openb3d_openb3d_ClearSurface"
ClearTextureFilters%()="openb3d_openb3d_ClearTextureFilters"
ClearWorld%(entities%=1,brushes%=1,textures%=1)="openb3d_openb3d_ClearWorld"
CollisionEntity:TEntity(ent:TEntity,index%)="openb3d_openb3d_CollisionEntity"
CollisionNX#(ent:TEntity,index%)="openb3d_openb3d_CollisionNX"
CollisionNY#(ent:TEntity,index%)="openb3d_openb3d_CollisionNY"
CollisionNZ#(ent:TEntity,index%)="openb3d_openb3d_CollisionNZ"
Collisions%(src_no%,dest_no%,method_no%,response_no%=0)="openb3d_openb3d_Collisions"
CollisionSurface:TSurface(ent:TEntity,index%)="openb3d_openb3d_CollisionSurface"
CollisionTime#(ent:TEntity,index%)="openb3d_openb3d_CollisionTime"
CollisionTriangle%(ent:TEntity,index%)="openb3d_openb3d_CollisionTriangle"
CollisionX#(ent:TEntity,index%)="openb3d_openb3d_CollisionX"
CollisionY#(ent:TEntity,index%)="openb3d_openb3d_CollisionY"
CollisionZ#(ent:TEntity,index%)="openb3d_openb3d_CollisionZ"
CopyEntity:TEntity(ent:TEntity,parent:TEntity="bbNullObject")="openb3d_openb3d_CopyEntity"
CopyMesh:TMesh(mesh:TMesh,parent:TEntity="bbNullObject")="openb3d_openb3d_CopyMesh"
CountChildren%(ent:TEntity)="openb3d_openb3d_CountChildren"
CountCollisions%(ent:TEntity)="openb3d_openb3d_CountCollisions"
CountSurfaces%(mesh:TMesh)="openb3d_openb3d_CountSurfaces"
CountTriangles%(surf:TSurface)="openb3d_openb3d_CountTriangles"
CountVertices%(surf:TSurface)="openb3d_openb3d_CountVertices"
CreateBrush:TBrush(r#=255.000000#,g#=255.000000#,b#=255.000000#)="openb3d_openb3d_CreateBrush"
CreateCamera:TCamera(parent:TEntity="bbNullObject")="openb3d_openb3d_CreateCamera"
CreateCone:TMesh(segments%=8,solid%=1,parent:TEntity="bbNullObject")="openb3d_openb3d_CreateCone"
CreateCylinder:TMesh(segments%=8,solid%=1,parent:TEntity="bbNullObject")="openb3d_openb3d_CreateCylinder"
CreateCube:TMesh(parent:TEntity="bbNullObject")="openb3d_openb3d_CreateCube"
CreateMesh:TMesh(parent:TEntity="bbNullObject")="openb3d_openb3d_CreateMesh"
CreateLight:TLight(light_type%=1,parent:TEntity="bbNullObject")="openb3d_openb3d_CreateLight"
CreatePivot:TPivot(parent:TEntity="bbNullObject")="openb3d_openb3d_CreatePivot"
CreateSphere:TMesh(segments%=8,parent:TEntity="bbNullObject")="openb3d_openb3d_CreateSphere"
CreateSprite:TSprite(parent:TEntity="bbNullObject")="openb3d_openb3d_CreateSprite"
CreateSurface:TSurface(mesh:TMesh,brush:TBrush="bbNullObject")="openb3d_openb3d_CreateSurface"
CreateTexture:TTexture(width%,height%,flags%=9,frames%=1)="openb3d_openb3d_CreateTexture"
DeltaPitch#(ent1:TEntity,ent2:TEntity)="openb3d_openb3d_DeltaPitch"
DeltaYaw#(ent1:TEntity,ent2:TEntity)="openb3d_openb3d_DeltaYaw"
EntityAlpha%(ent:TEntity,alpha#)="openb3d_openb3d_EntityAlpha"
EntityBlend%(ent:TEntity,blend%)="openb3d_openb3d_EntityBlend"
EntityBox%(ent:TEntity,x#,y#,z#,w#,h#,d#)="openb3d_openb3d_EntityBox"
EntityClass$(ent:TEntity)="openb3d_openb3d_EntityClass"
EntityCollided:TEntity(ent:TEntity,type_no%)="openb3d_openb3d_EntityCollided"
EntityColor%(ent:TEntity,red#,green#,blue#)="openb3d_openb3d_EntityColor"
EntityDistance#(ent1:TEntity,ent2:TEntity)="openb3d_openb3d_EntityDistance"
EntityFX%(ent:TEntity,fx%)="openb3d_openb3d_EntityFX"
EntityInView%(ent:TEntity,cam:TCamera)="openb3d_openb3d_EntityInView"
EntityName$(ent:TEntity)="openb3d_openb3d_EntityName"
EntityOrder%(ent:TEntity,order%)="openb3d_openb3d_EntityOrder"
EntityParent%(ent:TEntity,parent_ent:TEntity,glob%=1)="openb3d_openb3d_EntityParent"
EntityPick:TEntity(ent:TEntity,Range#)="openb3d_openb3d_EntityPick"
EntityPickMode%(ent:TEntity,pick_mode%,obscurer%=1)="openb3d_openb3d_EntityPickMode"
EntityPitch#(ent:TEntity,glob%=0)="openb3d_openb3d_EntityPitch"
EntityRadius%(ent:TEntity,radius_x#,radius_y#=0.000000000#)="openb3d_openb3d_EntityRadius"
EntityRoll#(ent:TEntity,glob%=1)="openb3d_openb3d_EntityRoll"
EntityShininess%(ent:TEntity,shine#)="openb3d_openb3d_EntityShininess"
EntityTexture%(ent:TEntity,tex:TTexture,frame%=0,index%=0)="openb3d_openb3d_EntityTexture"
EntityType%(ent:TEntity,type_no%,recursive%=0)="openb3d_openb3d_EntityType"
EntityVisible%(src_ent:TEntity,dest_ent:TEntity)="openb3d_openb3d_EntityVisible"
EntityX#(ent:TEntity,glob%=0)="openb3d_openb3d_EntityX"
EntityY#(ent:TEntity,glob%=0)="openb3d_openb3d_EntityY"
EntityYaw#(ent:TEntity,glob%=0)="openb3d_openb3d_EntityYaw"
EntityZ#(ent:TEntity,glob%=0)="openb3d_openb3d_EntityZ"
ExtractAnimSeq%(ent:TEntity,first_frame%,last_frame%,seq%=0)="openb3d_openb3d_ExtractAnimSeq"
FindChild:TEntity(ent:TEntity,child_name$)="openb3d_openb3d_FindChild"
FindSurface:TSurface(mesh:TMesh,brush:TBrush)="openb3d_openb3d_FindSurface"
FitMesh%(mesh:TMesh,x#,y#,z#,width#,height#,depth#,uniform%=0)="openb3d_openb3d_FitMesh"
FlipMesh%(mesh:TMesh)="openb3d_openb3d_FlipMesh"
FreeBrush%(brush:TBrush)="openb3d_openb3d_FreeBrush"
FreeEntity%(ent:TEntity)="openb3d_openb3d_FreeEntity"
FreeTexture%(tex:TTexture)="openb3d_openb3d_FreeTexture"
GetBrushTexture:TTexture(brush:TBrush,index%=0)="openb3d_openb3d_GetBrushTexture"
GetChild:TEntity(ent:TEntity,child_no%)="openb3d_openb3d_GetChild"
GetEntityBrush:TBrush(ent:TEntity)="openb3d_openb3d_GetEntityBrush"
GetEntityType%(ent:TEntity)="openb3d_openb3d_GetEntityType"
GetMatElement#(ent:TEntity,row%,col%)="openb3d_openb3d_GetMatElement"
GetParent:TEntity(ent:TEntity)="openb3d_openb3d_GetParent"
GetSurface:TSurface(mesh:TMesh,surf_no%)="openb3d_openb3d_GetSurface"
GetSurfaceBrush:TBrush(surf:TSurface)="openb3d_openb3d_GetSurfaceBrush"
HandleSprite%(sprite:TSprite,h_x#,h_y#)="openb3d_openb3d_HandleSprite"
HideEntity%(ent:TEntity)="openb3d_openb3d_HideEntity"
LightColor%(light:TLight,red#,green#,blue#)="openb3d_openb3d_LightColor"
LightConeAngles%(light:TLight,inner_ang#,outer_ang#)="openb3d_openb3d_LightConeAngles"
LightRange%(light:TLight,Range#)="openb3d_openb3d_LightRange"
LinePick:TEntity(x#,y#,z#,dx#,dy#,dz#,radius#=0.000000000#)="openb3d_openb3d_LinePick"
LoadAnimMesh:TMesh(file$,parent:TEntity="bbNullObject")="openb3d_openb3d_LoadAnimMesh"
LoadAnimTexture:TTexture(file$,flags%,frame_width%,frame_height%,first_frame%,frame_count%)="openb3d_openb3d_LoadAnimTexture"
LoadBrush:TBrush(file$,flags%=9,u_scale#=1.00000000#,v_scale#=1.00000000#)="openb3d_openb3d_LoadBrush"
LoadMesh:TMesh(file$,parent:TEntity="bbNullObject")="openb3d_openb3d_LoadMesh"
LoadTexture:TTexture(file$,flags%=9)="openb3d_openb3d_LoadTexture"
LoadSprite:TSprite(tex_file$,tex_flag%=1,parent:TEntity="bbNullObject")="openb3d_openb3d_LoadSprite"
MeshDepth#(mesh:TMesh)="openb3d_openb3d_MeshDepth"
MeshHeight#(mesh:TMesh)="openb3d_openb3d_MeshHeight"
MeshWidth#(mesh:TMesh)="openb3d_openb3d_MeshWidth"
MoveEntity%(ent:TEntity,x#,y#,z#)="openb3d_openb3d_MoveEntity"
NameEntity%(ent:TEntity,name$)="openb3d_openb3d_NameEntity"
PaintEntity%(ent:TEntity,brush:TBrush)="openb3d_openb3d_PaintEntity"
PaintMesh%(mesh:TMesh,brush:TBrush)="openb3d_openb3d_PaintMesh"
PaintSurface%(surf:TSurface,brush:TBrush)="openb3d_openb3d_PaintSurface"
PickedEntity:TEntity()="openb3d_openb3d_PickedEntity"
PickedNX#()="openb3d_openb3d_PickedNX"
PickedNY#()="openb3d_openb3d_PickedNY"
PickedNZ#()="openb3d_openb3d_PickedNZ"
PickedSurface:TSurface()="openb3d_openb3d_PickedSurface"
PickedTime#()="openb3d_openb3d_PickedTime"
PickedTriangle%()="openb3d_openb3d_PickedTriangle"
PickedX#()="openb3d_openb3d_PickedX"
PickedY#()="openb3d_openb3d_PickedY"
PickedZ#()="openb3d_openb3d_PickedZ"
PointEntity%(ent:TEntity,target_ent:TEntity,roll#=0.000000000#)="openb3d_openb3d_PointEntity"
PositionEntity%(ent:TEntity,x#,y#,z#,glob%=0)="openb3d_openb3d_PositionEntity"
PositionMesh%(mesh:TMesh,px#,py#,pz#)="openb3d_openb3d_PositionMesh"
PositionTexture%(tex:TTexture,u_pos#,v_pos#)="openb3d_openb3d_PositionTexture"
ProjectedX#()="openb3d_openb3d_ProjectedX"
ProjectedY#()="openb3d_openb3d_ProjectedY"
ProjectedZ#()="openb3d_openb3d_ProjectedZ"
RenderWorld%()="openb3d_openb3d_RenderWorld"
ResetEntity%(ent:TEntity)="openb3d_openb3d_ResetEntity"
RotateEntity%(ent:TEntity,x#,y#,z#,glob%=0)="openb3d_openb3d_RotateEntity"
RotateMesh%(mesh:TMesh,pitch#,yaw#,roll#)="openb3d_openb3d_RotateMesh"
RotateSprite%(sprite:TSprite,ang#)="openb3d_openb3d_RotateSprite"
RotateTexture%(tex:TTexture,ang#)="openb3d_openb3d_RotateTexture"
ScaleEntity%(ent:TEntity,x#,y#,z#,glob%=0)="openb3d_openb3d_ScaleEntity"
ScaleMesh%(mesh:TMesh,sx#,sy#,sz#)="openb3d_openb3d_ScaleMesh"
ScaleSprite%(sprite:TSprite,s_x#,s_y#)="openb3d_openb3d_ScaleSprite"
ScaleTexture%(tex:TTexture,u_scale#,v_scale#)="openb3d_openb3d_ScaleTexture"
SetAnimTime%(ent:TEntity,time#,seq%=0)="openb3d_openb3d_SetAnimTime"
SetCubeFace%(tex:TTexture,face%)="openb3d_openb3d_SetCubeFace"
SetCubeMode%(tex:TTexture,Mode%)="openb3d_openb3d_SetCubeMode"
ShowEntity%(ent:TEntity)="openb3d_openb3d_ShowEntity"
SpriteViewMode%(sprite:TSprite,Mode%)="openb3d_openb3d_SpriteViewMode"
TextureBlend%(tex:TTexture,blend%)="openb3d_openb3d_TextureBlend"
TextureCoords%(tex:TTexture,coords%)="openb3d_openb3d_TextureCoords"
TextureHeight%(tex:TTexture)="openb3d_openb3d_TextureHeight"
TextureFilter%(match_text$,flags%)="openb3d_openb3d_TextureFilter"
TextureName$(tex:TTexture)="openb3d_openb3d_TextureName"
TextureWidth%(tex:TTexture)="openb3d_openb3d_TextureWidth"
TFormedX#()="openb3d_openb3d_TFormedX"
TFormedY#()="openb3d_openb3d_TFormedY"
TFormedZ#()="openb3d_openb3d_TFormedZ"
TFormNormal%(x#,y#,z#,src_ent:TEntity,dest_ent:TEntity)="openb3d_openb3d_TFormNormal"
TFormPoint%(x#,y#,z#,src_ent:TEntity,dest_ent:TEntity)="openb3d_openb3d_TFormPoint"
TFormVector%(x#,y#,z#,src_ent:TEntity,dest_ent:TEntity)="openb3d_openb3d_TFormVector"
TranslateEntity%(ent:TEntity,x#,y#,z#,glob%=0)="openb3d_openb3d_TranslateEntity"
TriangleVertex%(surf:TSurface,tri_no%,corner%)="openb3d_openb3d_TriangleVertex"
TurnEntity%(ent:TEntity,x#,y#,z#,glob%=0)="openb3d_openb3d_TurnEntity"
UpdateNormals%(mesh:TMesh)="openb3d_openb3d_UpdateNormals"
UpdateWorld%(anim_speed#=1.00000000#)="openb3d_openb3d_UpdateWorld"
VectorPitch#(vx#,vy#,vz#)="openb3d_openb3d_VectorPitch"
VectorYaw#(vx#,vy#,vz#)="openb3d_openb3d_VectorYaw"
VertexAlpha#(surf:TSurface,vid%)="openb3d_openb3d_VertexAlpha"
VertexBlue#(surf:TSurface,vid%)="openb3d_openb3d_VertexBlue"
VertexColor%(surf:TSurface,vid%,r#,g#,b#,a#=1.00000000#)="openb3d_openb3d_VertexColor"
VertexCoords%(surf:TSurface,vid%,x#,y#,z#)="openb3d_openb3d_VertexCoords"
VertexGreen#(surf:TSurface,vid%)="openb3d_openb3d_VertexGreen"
VertexNormal%(surf:TSurface,vid%,nx#,ny#,nz#)="openb3d_openb3d_VertexNormal"
VertexNX#(surf:TSurface,vid%)="openb3d_openb3d_VertexNX"
VertexNY#(surf:TSurface,vid%)="openb3d_openb3d_VertexNY"
VertexNZ#(surf:TSurface,vid%)="openb3d_openb3d_VertexNZ"
VertexRed#(surf:TSurface,vid%)="openb3d_openb3d_VertexRed"
VertexTexCoords%(surf:TSurface,vid%,u#,v#,w#=0.000000000#,coord_set%=0)="openb3d_openb3d_VertexTexCoords"
VertexU#(surf:TSurface,vid%,coord_set%=0)="openb3d_openb3d_VertexU"
VertexV#(surf:TSurface,vid%,coord_set%=0)="openb3d_openb3d_VertexV"
VertexW#(surf:TSurface,vid%,coord_set%=0)="openb3d_openb3d_VertexW"
VertexX#(surf:TSurface,vid%)="openb3d_openb3d_VertexX"
VertexY#(surf:TSurface,vid%)="openb3d_openb3d_VertexY"
VertexZ#(surf:TSurface,vid%)="openb3d_openb3d_VertexZ"
Wireframe%(enable%)="openb3d_openb3d_Wireframe"
AddAnimSeq%(ent:TEntity,length%)="openb3d_openb3d_AddAnimSeq"
AlignToVector%(entity:TEntity,x#,y#,z#,axis%,rate%=1)="openb3d_openb3d_AlignToVector"
CreatePlane:TMesh(divisions%=1,parent:TEntity="bbNullObject")="openb3d_openb3d_CreatePlane"
CreateTerrain:TTerrain(size%,parent:TEntity="bbNullObject")="openb3d_openb3d_CreateTerrain"
LoadAnimSeq%(ent:TEntity,file$)="openb3d_openb3d_LoadAnimSeq"
LoadTerrain:TTerrain(file$,parent:TEntity="bbNullObject")="openb3d_openb3d_LoadTerrain"
MeshesIntersect%(mesh1:TMesh,mesh2:TMesh)="openb3d_openb3d_MeshesIntersect"
ModifyTerrain%(terr:TTerrain,x%,z%,new_height#)="openb3d_openb3d_ModifyTerrain"
SetAnimKey%(ent:TEntity,frame#,pos_key%=1,rot_key%=1,scale_key%=1)="openb3d_openb3d_SetAnimKey"
TerrainHeight#(terr:TTerrain,x%,z%)="openb3d_openb3d_TerrainHeight"
TerrainX#(terr:TTerrain,x#,y#,z#)="openb3d_openb3d_TerrainX"
TerrainY#(terr:TTerrain,x#,y#,z#)="openb3d_openb3d_TerrainY"
TerrainZ#(terr:TTerrain,x#,y#,z#)="openb3d_openb3d_TerrainZ"