| Angros.Openb3d: | Functions | Types | Modinfo | Source |

# OpenB3D library wrapper

Online Blitz3D doc links.

## Functions Summary

AddAnimSeq | Online doc
AddMesh | Online doc
AddTriangle | Online doc
AddVertex | Online doc
AmbientLight | Online doc
Animate | Online doc
Animating | Online doc
AnimLength | Online doc
AnimSeq | Online doc
AnimTime | Online doc
AntiAlias | Online doc
BackBufferToTex | Copy the contents of the backbuffer to a texture.
BeginMax2D | Begin using Max2D functions.
BrushAlpha | Online doc
BrushBlend | Online doc
BrushColor | Online doc
BrushFX | Online doc
BrushShininess | Online doc
BrushTexture | Online doc
BufferToTex | Copy a pixmap buffer to texture, buffer must be a byte ptr.
CameraClsColor | Online doc
CameraClsMode | Online doc
CameraFogColor | Online doc
CameraFogMode | Online doc
CameraFogRange | Online doc
CameraPick | Online doc
CameraProject | Online doc
CameraProjMode | Online doc
CameraRange | Online doc
CameraToTex | Copy a rendered camera view to texture.
CameraViewport | Online doc
CameraZoom | Online doc
ClearCollisions | Online doc
ClearSurface | Online doc
ClearTextureFilters | Online doc
ClearWorld | Online doc
CollisionEntity | Online doc
CollisionNX | Online doc
CollisionNY | Online doc
CollisionNZ | Online doc
Collisions | Online doc
CollisionSurface | Online doc
CollisionTime | Online doc
CollisionTriangle | Online doc
CollisionX | Online doc
CollisionY | Online doc
CollisionZ | Online doc
CopyEntity | Online doc
CopyMesh | Online doc
CountChildren | Online doc
CountCollisions | Online doc
CountSurfaces | Online doc
CountTriangles | Online doc
CountVertices | Online doc
CreateBlob | undocumented.
CreateBrush | Online doc
CreateCamera | Online doc
CreateCone | Online doc
CreateCube | Online doc
CreateCylinder | Online doc
CreateFluid | undocumented.
CreateGeosphere | undocumented.
CreateLight | Online doc
CreateMesh | Online doc
CreateOcTree | undocumented.
CreatePivot | Online doc
CreatePlane | Online doc
CreateQuad | undocumented.
CreateShader | Load shader from two strings, vertex and fragment.
CreateShadow | undocumented.
CreateSphere | Online doc
CreateSprite | Online doc
CreateStencil | undocumented.
CreateSurface | Online doc
CreateTerrain | Online doc
CreateTexture | Online doc
CreateVoxelSprite | undocumented.
DeltaPitch | Online doc
DeltaYaw | Online doc
DepthBufferToTex | Copy the contents of the depthbuffer to a texture.
EndMax2D | End using Max2D functions.
EntityAlpha | Online doc
EntityAutoFade | Online doc
EntityBlend | Online doc
EntityBox | Online doc
EntityClass | Online doc
EntityCollided | Online doc
EntityColor | Online doc
EntityDistance | Online doc
EntityFX | Online doc
EntityInView | Online doc
EntityName | Online doc
EntityOrder | Online doc
EntityParent | Online doc
EntityPick | Online doc
EntityPickMode | Online doc
EntityPitch | Online doc
EntityRadius | Online doc
EntityRoll | Online doc
EntityScaleX | undocumented.
EntityScaleY | undocumented.
EntityScaleZ | undocumented.
EntityShininess | Online doc
EntityTexture | Online doc
EntityType | Online doc
EntityVisible | Online doc
EntityX | Online doc
EntityY | Online doc
EntityYaw | Online doc
EntityZ | Online doc
ExtractAnimSeq | Online doc
FindChild | Online doc
FindSurface | Online doc
FitMesh | Online doc
FlipMesh | Online doc
FreeBrush | Online doc
FreeEntity | Online doc
FreeShadow | undocumented.
FreeTexture | Online doc
GeosphereHeight | undocumented.
GetBrushTexture | Online doc
GetChild | Online doc
GetEntityBrush | Online doc
GetEntityType | Online doc
GetMatElement | Online doc
GetParentEntity | undocumented.
GetSurface | Online doc
GetSurfaceBrush | Online doc
Graphics3D | Online doc
GraphicsResize | undocumented.
HandleSprite | Online doc
HideEntity | Online doc
LightColor | Online doc
LightConeAngles | Online doc
LightRange | Online doc
LinePick | Online doc
LoadAnimMesh | Online doc
LoadAnimTexture | Online doc
LoadBrush | Online doc
LoadGeosphere | undocumented.
LoadMaterial | undocumented.
LoadMesh | Online doc
LoadShader | Load shader from two files, vertex and fragment.
LoadSprite | Online doc
LoadTerrain | Online doc
LoadTexture | Online doc
MeshCSG | undocumented.
MeshCullRadius | undocumented.
MeshDepth | Online doc
MeshesIntersect | Online doc
MeshHeight | Online doc
MeshWidth | Online doc
ModifyGeosphere | undocumented.
ModifyTerrain | Online doc
MoveEntity | Online doc
NameEntity | Online doc
OctreeBlock | undocumented.
OctreeMesh | undocumented.
PaintEntity | Online doc
PaintMesh | Online doc
PaintSurface | Online doc
PickedEntity | Online doc
PickedNX | Online doc
PickedNY | Online doc
PickedNZ | Online doc
PickedSurface | Online doc
PickedTime | Online doc
PickedTriangle | Online doc
PickedX | Online doc
PickedY | Online doc
PickedZ | Online doc
PointEntity | Online doc
PositionEntity | Online doc
PositionMesh | Online doc
PositionTexture | Online doc
ProjectedX | Online doc
ProjectedY | Online doc
ProjectedZ | Online doc
RenderWorld | Online doc
RepeatMesh | Like CopyMesh but for instancing effects.
ResetEntity | Online doc
RotateEntity | Online doc
RotateMesh | Online doc
RotateSprite | Online doc
RotateTexture | Online doc
ScaleEntity | Online doc
ScaleMesh | Online doc
ScaleSprite | Online doc
ScaleTexture | Online doc
SetAnimTime | Online doc
SetCubeFace | Online doc
SetCubeMode | Online doc
SetFloat | Set a shader variable name of a uniform float type to a float value.
SetFloat2 | Set a shader variable name of a uniform vec2 type to 2 float values.
SetFloat3 | Set a shader variable name of a uniform vec3 type to 3 float values.
SetFloat4 | Set a shader variable name of a uniform vec4 type to 4 float values.
SetInteger | Set a shader variable name of a uniform int type to an integer value.
SetInteger2 | Set a shader variable name of a uniform ivec2 type to 2 integer values.
SetInteger3 | Set a shader variable name of a uniform ivec3 type to 3 integer values.
SetInteger4 | Set a shader variable name of a uniform ivec4 type to 4 integer values.
ShadeEntity | Apply shader to an entity.
ShadeMesh | Apply shader to a mesh.
ShaderMaterial | Load a texture for 3D texture sampling.
ShaderTexture | Load a texture for 2D texture sampling.
ShadeSurface | Apply shader to a surface.
ShowEntity | Online doc
SpriteRenderMode | undocumented.
SpriteViewMode | Online doc
StencilAlpha | undocumented.
StencilClsColor | undocumented.
StencilClsMode | undocumented.
StencilMesh | undocumented.
StencilMode | undocumented.
TerrainHeight | Online doc
TerrainX | Online doc
TerrainY | Online doc
TerrainZ | Online doc
Text | Draw text, does not need Max2D.
TexToBuffer | Copy a texture to a pixmap buffer, buffer must be a byte ptr.
TextureBlend | Online doc
TextureCoords | Online doc
TextureFilter | Online doc
TextureHeight | Online doc
TextureName | Online doc
TextureWidth | Online doc
TFormedX | Online doc
TFormedY | Online doc
TFormedZ | Online doc
TFormNormal | Online doc
TFormPoint | Online doc
TFormVector | Online doc
TranslateEntity | Online doc
TriangleVertex | Online doc
TurnEntity | Online doc
UpdateNormals | Online doc
UpdateTexCoords | undocumented.
UpdateWorld | Online doc
UseFloat | Bind a float variable to a shader variable name of a uniform float type.
UseFloat2 | Bind 2 float variables to a shader variable name of a uniform vec2 type.
UseFloat3 | Bind 3 float variables to a shader variable name of a uniform vec3 type.
UseFloat4 | Bind 4 float variables to a shader variable name of a uniform vec4 type.
UseInteger | Bind an integer variable to a shader variable name of a uniform int type.
UseInteger2 | Bind 2 integer variables to a shader variable name of a uniform ivec2 type.
UseInteger3 | Bind 3 integer variables to a shader variable name of a uniform ivec3 type.
UseInteger4 | Bind 4 integer variables to a shader variable name of a uniform ivec4 type.
UseMatrix | Send matrix data to a shader variable name of a uniform mat4 type.
UseStencil | undocumented.
UseSurface | undocumented.
VectorPitch | Online doc
VectorYaw | Online doc
VertexAlpha | Online doc
VertexBlue | Online doc
VertexColor | Online doc
VertexCoords | Online doc
VertexGreen | Online doc
VertexNormal | Online doc
VertexNX | Online doc
VertexNY | Online doc
VertexNZ | Online doc
VertexRed | Online doc
VertexTexCoords | Online doc
VertexU | Online doc
VertexV | Online doc
VertexW | Online doc
VertexX | Online doc
VertexY | Online doc
VertexZ | Online doc
VoxelSpriteMaterial | undocumented.
Wireframe | Online doc

## Types Summary

TBlitz2D | Blitz2D.
TBlob | Blob entity.
TBrush | Brush.
TCamera | Camera entity.
TEntity | Entity.
TFluid | Fluid mesh entity.
TGeosphere | Geosphere terrain entity.
TGlobal | Global.
THardwareInfo | Hardware-info.
TLight | Light entity.
TMaterial | Material texture.
TMesh | Mesh entity.
TOcTree | Octree terrain entity.
TPivot | Pivot entity.
TShader | Shader.
TShadowObject | Shadow-object.
TSprite | Sprite mesh entity.
TStencil | Stencil.
TSurface | Surface.
TTerrain | Terrain entity.
TTexture | Texture.
TVoxelSprite | Voxelsprite mesh entity.

## Functions

Function AddAnimSeq:Int( ent:TEntity, length:Int )
Description | Online doc

Function AddMesh( mesh1:TMesh, mesh2:TMesh )
Description | Online doc

Function AddTriangle:Int( surf:TSurface, v0:Int, v1:Int, v2:Int )
Description | Online doc

Function AddVertex:Int( surf:TSurface, x:Float, y:Float, z:Float, u:Float=0, v:Float=0, w:Float=0 )
Description | Online doc

Function AmbientLight( r:Float, g:Float, b:Float )
Description | Online doc

Function Animate( ent:TEntity, Mode:Int=1, speed:Float=1, seq:Int=0, trans:Int=0 )
Description | Online doc

Function Animating:Int( ent:TEntity )
Description | Online doc

Function AnimLength( ent:TEntity )
Description | Online doc

Function AnimSeq:Int( ent:TEntity )
Description | Online doc

Function AnimTime:Float( ent:TEntity )
Description | Online doc

Function AntiAlias( samples:Int )
Description | Online doc

Function BackBufferToTex( tex:TTexture, frame:Int=0 )
Description | Copy the contents of the backbuffer to a texture.

Function BeginMax2D()
Description | Begin using Max2D functions.

Function BrushAlpha( brush:TBrush, a:Float )
Description | Online doc

Function BrushBlend( brush:TBrush, blend:Int )
Description | Online doc

Function BrushColor( brush:TBrush, r:Float, g:Float, b:Float )
Description | Online doc

Function BrushFX( brush:TBrush, fx:Int )
Description | Online doc

Function BrushShininess( brush:TBrush, s:Float )
Description | Online doc

Function BrushTexture( brush:TBrush, tex:TTexture, frame:Int=0, index:Int=0 )
Description | Online doc

Function BufferToTex( tex:TTexture, buffer:Byte Ptr, frame:Int=0 )
Description | Copy a pixmap buffer to texture, buffer must be a byte ptr.

Function CameraClsColor( cam:TCamera, r:Float, g:Float, b:Float )
Description | Online doc

Function CameraClsMode( cam:TCamera, cls_depth:Int, cls_zbuffer:Int )
Description | Online doc

Function CameraFogColor( cam:TCamera, r:Float, g:Float, b:Float )
Description | Online doc

Function CameraFogMode( cam:TCamera, Mode:Int )
Description | Online doc

Function CameraFogRange( cam:TCamera, nnear:Float, nfar:Float )
Description | Online doc

Function CameraPick:TEntity( cam:TCamera, x:Float, y:Float )
Description | Online doc

Function CameraProject( cam:TCamera, x:Float, y:Float, z:Float )
Description | Online doc

Function CameraProjMode( cam:TCamera, Mode:Int )
Description | Online doc

Function CameraRange( cam:TCamera, nnear:Float, nfar:Float )
Description | Online doc

Function CameraToTex( tex:TTexture, cam:TCamera, frame:Int=0 )
Description | Copy a rendered camera view to texture.

Function CameraViewport( cam:TCamera, x:Int, y:Int, width:Int, height:Int )
Description | Online doc

Function CameraZoom( cam:TCamera, zoom:Float )
Description | Online doc

Function ClearCollisions()
Description | Online doc

Function ClearSurface( surf:TSurface, clear_verts:Int=True, clear_tris:Int=True )
Description | Online doc

Function ClearTextureFilters()
Description | Online doc

Function ClearWorld( entities:Int=True, brushes:Int=True, textures:Int=True )
Description | Online doc

Function CollisionEntity:TEntity( ent:TEntity, index:Int )
Description | Online doc

Function CollisionNX:Float( ent:TEntity, index:Int )
Description | Online doc

Function CollisionNY:Float( ent:TEntity, index:Int )
Description | Online doc

Function CollisionNZ:Float( ent:TEntity, index:Int )
Description | Online doc

Function Collisions( src_no:Int, dest_no:Int, method_no:Int, response_no:Int=0 )
Description | Online doc

Function CollisionSurface:TSurface( ent:TEntity, index:Int )
Description | Online doc

Function CollisionTime:Float( ent:TEntity, index:Int )
Description | Online doc

Function CollisionTriangle:Int( ent:TEntity, index:Int )
Description | Online doc

Function CollisionX:Float( ent:TEntity, index:Int )
Description | Online doc

Function CollisionY:Float( ent:TEntity, index:Int )
Description | Online doc

Function CollisionZ:Float( ent:TEntity, index:Int )
Description | Online doc

Function CopyEntity:TEntity( ent:TEntity, parent:TEntity=Null )
Description | Online doc

Function CopyMesh:TMesh( mesh:TMesh, parent:TEntity=Null )
Description | Online doc

Function CountChildren:Int( ent:TEntity )
Description | Online doc

Function CountCollisions:Int( ent:TEntity )
Description | Online doc

Function CountSurfaces:Int( mesh:TMesh )
Description | Online doc

Function CountTriangles:Int( surf:TSurface )
Description | Online doc

Function CountVertices:Int( surf:TSurface )
Description | Online doc

Function CreateBlob:TBlob( fluid:TFluid, radius:Float, parent_ent:TEntity=Null )
Description | undocumented.

Function CreateBrush:TBrush( r:Float=255, g:Float=255, b:Float=255 )
Description | Online doc

Function CreateCamera:TCamera( parent:TEntity=Null )
Description | Online doc

Function CreateCone:TMesh( segments:Int=8, solid:Int=True, parent:TEntity=Null )
Description | Online doc

Function CreateCube:TMesh( parent:TEntity=Null )
Description | Online doc

Function CreateCylinder:TMesh( segments:Int=8, solid:Int=True, parent:TEntity=Null )
Description | Online doc

Function CreateFluid:TFluid()
Description | undocumented.

Function CreateGeosphere:TGeosphere( size:Int, parent:TEntity=Null )
Description | undocumented.

Function CreateLight:TLight( light_type:Int=1, parent:TEntity=Null )
Description | Online doc

Function CreateMesh:TMesh( parent:TEntity=Null )
Description | Online doc

Function CreateOcTree:TOcTree( w:Float, h:Float, d:Float, parent_ent:TEntity=Null )
Description | undocumented.

Function CreatePivot:TPivot( parent:TEntity=Null )
Description | Online doc

Function CreatePlane:TMesh( divisions:Int=1, parent:TEntity=Null )
Description | Online doc

Function CreateQuad:TMesh( parent:TEntity=Null )
Description | undocumented.

Function CreateShader:TShader( ShaderName:String, VshaderString:String, FshaderString:String )
Description | Load shader from two strings, vertex and fragment.

Function CreateShadow:TShadowObject( parent:TMesh, Static:Int=False )
Description | undocumented.

Function CreateSphere:TMesh( segments:Int=8, parent:TEntity=Null )
Description | Online doc

Function CreateSprite:TSprite( parent:TEntity=Null )
Description | Online doc

Function CreateStencil:TStencil()
Description | undocumented.

Function CreateSurface:TSurface( mesh:TMesh, brush:TBrush=Null )
Description | Online doc

Function CreateTerrain:TTerrain( size:Int, parent:TEntity=Null )
Description | Online doc

Function CreateTexture:TTexture( width:Int, height:Int, flags:Int=9, frames:Int=1 )
Description | Online doc

Function CreateVoxelSprite:TVoxelSprite( slices:Int=64, parent:TEntity=Null )
Description | undocumented.

Function DeltaPitch:Float( ent1:TEntity, ent2:TEntity )
Description | Online doc

Function DeltaYaw:Float( ent1:TEntity, ent2:TEntity )
Description | Online doc

Function DepthBufferToTex( tex:TTexture, frame:Int=0 )
Description | Copy the contents of the depthbuffer to a texture.

Function EndMax2D()
Description | End using Max2D functions.

Function EntityAlpha( ent:TEntity, alpha:Float )
Description | Online doc

Function EntityAutoFade( ent:TEntity, near:Float, far:Float )
Description | Online doc

Function EntityBlend( ent:TEntity, blend:Int )
Description | Online doc

Function EntityBox( ent:TEntity, x:Float, y:Float, z:Float, w:Float, h:Float, d:Float )
Description | Online doc

Function EntityClass:String( ent:TEntity )
Description | Online doc

Function EntityCollided:TEntity( ent:TEntity, type_no:Int )
Description | Online doc

Function EntityColor( ent:TEntity, red:Float, green:Float, blue:Float )
Description | Online doc

Function EntityDistance:Float( ent1:TEntity, ent2:TEntity )
Description | Online doc

Function EntityFX( ent:TEntity, fx:Int )
Description | Online doc

Function EntityInView:Int( ent:TEntity, cam:TCamera )
Description | Online doc

Function EntityName:String( ent:TEntity )
Description | Online doc

Function EntityOrder( ent:TEntity, order:Int )
Description | Online doc

Function EntityParent( ent:TEntity, parent_ent:TEntity, glob:Int=True )
Description | Online doc

Function EntityPick:TEntity( ent:TEntity, Range:Float )
Description | Online doc

Function EntityPickMode( ent:TEntity, pick_mode:Int, obscurer:Int=True )
Description | Online doc

Function EntityPitch:Float( ent:TEntity, glob:Int=False )
Description | Online doc

Function EntityRadius( ent:TEntity, radius_x:Float, radius_y:Float=0 )
Description | Online doc

Function EntityRoll:Float( ent:TEntity, glob:Int=True )
Description | Online doc

Function EntityScaleX:Float( ent:TEntity, glob:Int=False )
Description | undocumented.

Function EntityScaleY:Float( ent:TEntity, glob:Int=False )
Description | undocumented.

Function EntityScaleZ:Float( ent:TEntity, glob:Int=False )
Description | undocumented.

Function EntityShininess( ent:TEntity, shine:Float )
Description | Online doc

Function EntityTexture( ent:TEntity, tex:TTexture, frame:Int=0, index:Int=0 )
Description | Online doc

Function EntityType( ent:TEntity, type_no:Int, recursive:Int=False )
Description | Online doc

Function EntityVisible:Int( src_ent:TEntity, dest_ent:TEntity )
Description | Online doc

Function EntityX:Float( ent:TEntity, glob:Int=False )
Description | Online doc

Function EntityY:Float( ent:TEntity, glob:Int=False )
Description | Online doc

Function EntityYaw:Float( ent:TEntity, glob:Int=False )
Description | Online doc

Function EntityZ:Float( ent:TEntity, glob:Int=False )
Description | Online doc

Function ExtractAnimSeq:Int( ent:TEntity, first_frame:Int, last_frame:Int, seq:Int=0 )
Description | Online doc

Function FindChild:TEntity( ent:TEntity, child_name:String )
Description | Online doc

Function FindSurface:TSurface( mesh:TMesh, brush:TBrush )
Description | Online doc

Function FitMesh( mesh:TMesh, x:Float, y:Float, z:Float, width:Float, height:Float, depth:Float, uniform:Int=False )
Description | Online doc

Function FlipMesh( mesh:TMesh )
Description | Online doc

Function FreeBrush( brush:TBrush )
Description | Online doc

Function FreeEntity( ent:TEntity )
Description | Online doc

Function FreeShadow( shad:TShadowObject )
Description | undocumented.

Function FreeTexture( tex:TTexture )
Description | Online doc

Function GeosphereHeight( geo:TGeosphere, h:Float )
Description | undocumented.

Function GetBrushTexture:TTexture( brush:TBrush, index:Int=0 )
Description | Online doc

Function GetChild:TEntity( ent:TEntity, child_no:Int )
Description | Online doc

Function GetEntityBrush:TBrush( ent:TEntity )
Description | Online doc

Function GetEntityType:Int( ent:TEntity )
Description | Online doc

Function GetMatElement:Float( ent:TEntity, row:Int, col:Int )
Description | Online doc

Function GetParentEntity:TEntity( ent:TEntity )
Description | undocumented.

Function GetSurface:TSurface( mesh:TMesh, surf_no:Int )
Description | Online doc

Function GetSurfaceBrush:TBrush( surf:TSurface )
Description | Online doc

Function Graphics3D( width%, height%, depth%=0, Mode%=0, rate%=60, flags%=-1, usecanvas%=False )
Description | Online doc
Information | The flags argument sets the graphics buffers (back, alpha, depth, stencil and accum). The usecanvas argument is set to true if using maxgui with a canvas context.

Function GraphicsResize( width:Int, height:Int )
Description | undocumented.

Function HandleSprite( sprite:TSprite, h_x:Float, h_y:Float )
Description | Online doc

Function HideEntity( ent:TEntity )
Description | Online doc

Function LightColor( light:TLight, red:Float, green:Float, blue:Float )
Description | Online doc

Function LightConeAngles( light:TLight, inner_ang:Float, outer_ang:Float )
Description | Online doc

Function LightRange( light:TLight, Range:Float )
Description | Online doc

Function LinePick:TEntity( x:Float, y:Float, z:Float, dx:Float, dy:Float, dz:Float, radius:Float=0 )
Description | Online doc

Function LoadAnimMesh:TMesh( file:String, parent:TEntity=Null )
Description | Online doc

Function LoadAnimTexture:TTexture( file:String, flags:Int, frame_width:Int, frame_height:Int, first_frame:Int, frame_count:Int )
Description | Online doc

Function LoadBrush:TBrush( file:String, flags:Int=1, u_scale:Float=1, v_scale:Float=1 )
Description | Online doc

Function LoadGeosphere:TGeosphere( file:String, parent:TEntity=Null )
Description | undocumented.

Function LoadMaterial:TMaterial( filename:String, flags:Int, frame_width:Int, frame_height:Int, first_frame:Int, frame_count:Int )
Description | undocumented.

Function LoadMesh:TMesh( file:String, parent:TEntity=Null )
Description | Online doc

Function LoadShader:TShader( ShaderName:String, VshaderFileName:String, FshaderFileName:String )
Description | Load shader from two files, vertex and fragment.

Function LoadSprite:TSprite( tex_file:String, tex_flag:Int=1, parent:TEntity=Null )
Description | Online doc

Function LoadTerrain:TTerrain( file:String, parent:TEntity=Null )
Description | Online doc

Function LoadTexture:TTexture( file:String, flags:Int=1 )
Description | Online doc

Function MeshCSG:TMesh( m1:TMesh, m2:TMesh, method_no:Int=1 )
Description | undocumented.

Function MeshCullRadius( ent:TEntity, radius:Float )
Description | undocumented.

Function MeshDepth:Float( mesh:TMesh )
Description | Online doc

Function MeshesIntersect:Int( mesh1:TMesh, mesh2:TMesh )
Description | Online doc

Function MeshHeight:Float( mesh:TMesh )
Description | Online doc

Function MeshWidth:Float( mesh:TMesh )
Description | Online doc

Function ModifyGeosphere( geo:TGeosphere, x:Int, z:Int, new_height:Float )
Description | undocumented.

Function ModifyTerrain( terr:TTerrain, x:Int, z:Int, new_height:Float )
Description | Online doc

Function MoveEntity( ent:TEntity, x:Float, y:Float, z:Float )
Description | Online doc

Function NameEntity( ent:TEntity, name:String )
Description | Online doc

Function OctreeBlock( octree:TOcTree, mesh:TMesh, level:Int, X:Float, Y:Float, Z:Float, Near:Float=0, Far:Float=1000 )
Description | undocumented.

Function OctreeMesh( octree:TOcTree, mesh:TMesh, level:Int, X:Float, Y:Float, Z:Float, Near:Float=0, Far:Float=1000 )
Description | undocumented.

Function PaintEntity( ent:TEntity, brush:TBrush )
Description | Online doc

Function PaintMesh( mesh:TMesh, brush:TBrush )
Description | Online doc

Function PaintSurface( surf:TSurface, brush:TBrush )
Description | Online doc

Function PickedEntity:TEntity()
Description | Online doc

Function PickedNX:Float()
Description | Online doc

Function PickedNY:Float()
Description | Online doc

Function PickedNZ:Float()
Description | Online doc

Function PickedSurface:TSurface()
Description | Online doc

Function PickedTime:Float()
Description | Online doc

Function PickedTriangle:Int()
Description | Online doc

Function PickedX:Float()
Description | Online doc

Function PickedY:Float()
Description | Online doc

Function PickedZ:Float()
Description | Online doc

Function PointEntity( ent:TEntity, target_ent:TEntity, roll:Float=0 )
Description | Online doc

Function PositionEntity( ent:TEntity, x:Float, y:Float, z:Float, glob:Int=False )
Description | Online doc

Function PositionMesh( mesh:TMesh, px:Float, py:Float, pz:Float )
Description | Online doc

Function PositionTexture( tex:TTexture, u_pos:Float, v_pos:Float )
Description | Online doc

Function ProjectedX:Float()
Description | Online doc

Function ProjectedY:Float()
Description | Online doc

Function ProjectedZ:Float()
Description | Online doc

Function RenderWorld()
Description | Online doc

Function RepeatMesh:TMesh( mesh:TMesh, parent:TEntity=Null )
Description | Like CopyMesh but for instancing effects.

Function ResetEntity( ent:TEntity )
Description | Online doc

Function RotateEntity( ent:TEntity, x:Float, y:Float, z:Float, glob:Int=False )
Description | Online doc

Function RotateMesh( mesh:TMesh, pitch:Float, yaw:Float, roll:Float )
Description | Online doc

Function RotateSprite( sprite:TSprite, ang:Float )
Description | Online doc

Function RotateTexture( tex:TTexture, ang:Float )
Description | Online doc

Function ScaleEntity( ent:TEntity, x:Float, y:Float, z:Float, glob:Int=False )
Description | Online doc

Function ScaleMesh( mesh:TMesh, sx:Float, sy:Float, sz:Float )
Description | Online doc

Function ScaleSprite( sprite:TSprite, s_x:Float, s_y:Float )
Description | Online doc

Function ScaleTexture( tex:TTexture, u_scale:Float, v_scale:Float )
Description | Online doc

Function SetAnimTime( ent:TEntity, time:Float, seq:Int=0 )
Description | Online doc

Function SetCubeFace( tex:TTexture, face:Int )
Description | Online doc

Function SetCubeMode( tex:TTexture, Mode:Int )
Description | Online doc

Function SetFloat( material:TShader, name:String, v1:Float )
Description | Set a shader variable name of a uniform float type to a float value.

Function SetFloat2( material:TShader, name:String, v1:Float, v2:Float )
Description | Set a shader variable name of a uniform vec2 type to 2 float values.

Function SetFloat3( material:TShader, name:String, v1:Float, v2:Float, v3:Float )
Description | Set a shader variable name of a uniform vec3 type to 3 float values.

Function SetFloat4( material:TShader, name:String, v1:Float, v2:Float, v3:Float, v4:Float )
Description | Set a shader variable name of a uniform vec4 type to 4 float values.

Function SetInteger( material:TShader, name:String, v1:Int )
Description | Set a shader variable name of a uniform int type to an integer value.

Function SetInteger2( material:TShader, name:String, v1:Int, v2:Int )
Description | Set a shader variable name of a uniform ivec2 type to 2 integer values.

Function SetInteger3( material:TShader, name:String, v1:Int, v2:Int, v3:Int )
Description | Set a shader variable name of a uniform ivec3 type to 3 integer values.

Function SetInteger4( material:TShader, name:String, v1:Int, v2:Int, v3:Int, v4:Int )
Description | Set a shader variable name of a uniform ivec4 type to 4 integer values.

Function ShadeEntity( ent:TEntity, material:TShader )
Description | Apply shader to an entity.

Function ShadeMesh( mesh:TMesh, material:TShader )
Description | Apply shader to a mesh.

Function ShaderMaterial( material:TShader, tex:TMaterial, name:String, index:Int=0 )
Description | Load a texture for 3D texture sampling.

Function ShaderTexture( material:TShader, tex:TTexture, name:String, index:Int=0 )
Description | Load a texture for 2D texture sampling.

Function ShadeSurface( surf:TSurface, material:TShader )
Description | Apply shader to a surface.

Function ShowEntity( ent:TEntity )
Description | Online doc

Function SpriteRenderMode( sprite:TSprite, Mode:Int )
Description | undocumented.

Function SpriteViewMode( sprite:TSprite, Mode:Int )
Description | Online doc

Function StencilAlpha( stencil:TStencil, a:Float )
Description | undocumented.

Function StencilClsColor( stencil:TStencil, r:Float, g:Float, b:Float )
Description | undocumented.

Function StencilClsMode( stencil:TStencil, cls_depth:Int, cls_zbuffer:Int )
Description | undocumented.

Function StencilMesh( stencil:TStencil, mesh:TMesh, Mode:Int=1 )
Description | undocumented.

Function StencilMode( stencil:TStencil, m:Int, o:Int=1 )
Description | undocumented.

Function TerrainHeight:Float( terr:TTerrain, x:Int, z:Int )
Description | Online doc

Function TerrainX:Float( terr:TTerrain, x:Float, y:Float, z:Float )
Description | Online doc

Function TerrainY:Float( terr:TTerrain, x:Float, y:Float, z:Float )
Description | Online doc

Function TerrainZ:Float( terr:TTerrain, x:Float, y:Float, z:Float )
Description | Online doc

Function Text( x%, y%, str$ )
Description | Draw text, does not need Max2D.

Function TexToBuffer( tex:TTexture, buffer:Byte Ptr, frame:Int=0 )
Description | Copy a texture to a pixmap buffer, buffer must be a byte ptr.

Function TextureBlend( tex:TTexture, blend:Int )
Description | Online doc

Function TextureCoords( tex:TTexture, coords:Int )
Description | Online doc

Function TextureFilter( match_text:String, flags:Int )
Description | Online doc

Function TextureHeight:Int( tex:TTexture )
Description | Online doc

Function TextureName:String( tex:TTexture )
Description | Online doc

Function TextureWidth:Int( tex:TTexture )
Description | Online doc

Function TFormedX:Float()
Description | Online doc

Function TFormedY:Float()
Description | Online doc

Function TFormedZ:Float()
Description | Online doc

Function TFormNormal( x:Float, y:Float, z:Float, src_ent:TEntity, dest_ent:TEntity )
Description | Online doc

Function TFormPoint( x:Float, y:Float, z:Float, src_ent:TEntity, dest_ent:TEntity )
Description | Online doc

Function TFormVector( x:Float, y:Float, z:Float, src_ent:TEntity, dest_ent:TEntity )
Description | Online doc

Function TranslateEntity( ent:TEntity, x:Float, y:Float, z:Float, glob:Int=False )
Description | Online doc

Function TriangleVertex:Int( surf:TSurface, tri_no:Int, corner:Int )
Description | Online doc

Function TurnEntity( ent:TEntity, x:Float, y:Float, z:Float, glob:Int=False )
Description | Online doc

Function UpdateNormals( mesh:TMesh )
Description | Online doc

Function UpdateTexCoords( surf:TSurface )
Description | undocumented.

Function UpdateWorld( anim_speed:Float=1 )
Description | Online doc

Function UseFloat( material:TShader, name:String, v1:Float Var )
Description | Bind a float variable to a shader variable name of a uniform float type.

Function UseFloat2( material:TShader, name:String, v1:Float Var, v2:Float Var )
Description | Bind 2 float variables to a shader variable name of a uniform vec2 type.

Function UseFloat3( material:TShader, name:String, v1:Float Var, v2:Float Var, v3:Float Var )
Description | Bind 3 float variables to a shader variable name of a uniform vec3 type.

Function UseFloat4( material:TShader, name:String, v1:Float Var, v2:Float Var, v3:Float Var, v4:Float Var )
Description | Bind 4 float variables to a shader variable name of a uniform vec4 type.

Function UseInteger( material:TShader, name:String, v1:Int Var )
Description | Bind an integer variable to a shader variable name of a uniform int type.

Function UseInteger2( material:TShader, name:String, v1:Int Var, v2:Int Var )
Description | Bind 2 integer variables to a shader variable name of a uniform ivec2 type.

Function UseInteger3( material:TShader, name:String, v1:Int Var, v2:Int Var, v3:Int Var )
Description | Bind 3 integer variables to a shader variable name of a uniform ivec3 type.

Function UseInteger4( material:TShader, name:String, v1:Int Var, v2:Int Var, v3:Int Var, v4:Int Var )
Description | Bind 4 integer variables to a shader variable name of a uniform ivec4 type.

Function UseMatrix( material:TShader, name:String, Mode:Int )
Description | Send matrix data to a shader variable name of a uniform mat4 type.

Function UseStencil( stencil:TStencil )
Description | undocumented.

Function UseSurface( material:TShader, name:String, surf:TSurface, vbo:Int )
Description | undocumented.

Function VectorPitch:Float( vx:Float, vy:Float, vz:Float )
Description | Online doc

Function VectorYaw:Float( vx:Float, vy:Float, vz:Float )
Description | Online doc

Function VertexAlpha:Float( surf:TSurface, vid:Int )
Description | Online doc

Function VertexBlue:Float( surf:TSurface, vid:Int )
Description | Online doc

Function VertexColor( surf:TSurface, vid:Int, r:Float, g:Float, b:Float, a:Float=1 )
Description | Online doc

Function VertexCoords( surf:TSurface, vid:Int, x:Float, y:Float, z:Float )
Description | Online doc

Function VertexGreen:Float( surf:TSurface, vid:Int )
Description | Online doc

Function VertexNormal( surf:TSurface, vid:Int, nx:Float, ny:Float, nz:Float )
Description | Online doc

Function VertexNX:Float( surf:TSurface, vid:Int )
Description | Online doc

Function VertexNY:Float( surf:TSurface, vid:Int )
Description | Online doc

Function VertexNZ:Float( surf:TSurface, vid:Int )
Description | Online doc

Function VertexRed:Float( surf:TSurface, vid:Int )
Description | Online doc

Function VertexTexCoords( surf:TSurface, vid:Int, u:Float, v:Float, w:Float=0, coord_set:Int=0 )
Description | Online doc

Function VertexU:Float( surf:TSurface, vid:Int, coord_set:Int=0 )
Description | Online doc

Function VertexV:Float( surf:TSurface, vid:Int, coord_set:Int=0 )
Description | Online doc

Function VertexW:Float( surf:TSurface, vid:Int, coord_set:Int=0 )
Description | Online doc

Function VertexX:Float( surf:TSurface, vid:Int )
Description | Online doc

Function VertexY:Float( surf:TSurface, vid:Int )
Description | Online doc

Function VertexZ:Float( surf:TSurface, vid:Int )
Description | Online doc

Function VoxelSpriteMaterial( voxelspr:TVoxelSprite, mat:TMaterial )
Description | undocumented.

Function Wireframe( enable:Int )
Description | Online doc

## Types

Type TBlitz2D
Description | Blitz2D.

Type TBlob Extends TEntity
Description | Blob entity.

Type TBrush
Description | Brush.

Type TCamera Extends TEntity
Description | Camera entity.

Type TEntity
Description | Entity.
Information | Contains Function CountAllChildren:Int( ent:TEntity, no_children:Int=0 ) and Method GetChildFromAll:TEntity( child_no:Int, no_children:Int Var, ent:TEntity=Null ).

Type TFluid Extends TMesh
Description | Fluid mesh entity.

Type TGeosphere Extends TTerrain
Description | Geosphere terrain entity.

Type TGlobal
Description | Global.

Type THardwareInfo
Description | Hardware-info.
Information | Contains Function GetInfo() and DisplayInfo(LogFile:Int=False).

Type TLight Extends TEntity
Description | Light entity.

Type TMaterial Extends TTexture
Description | Material texture.

Type TMesh Extends TEntity
Description | Mesh entity.

Type TOcTree Extends TTerrain
Description | Octree terrain entity.

Type TPivot Extends TEntity
Description | Pivot entity.

Type TShader
Description | Shader.

Type TShadowObject
Description | Shadow-object.

Type TSprite Extends TMesh
Description | Sprite mesh entity.

Type TStencil
Description | Stencil.

Type TSurface
Description | Surface.

Type TTerrain Extends TEntity
Description | Terrain entity.

Type TTexture
Description | Texture.

Type TVoxelSprite Extends TMesh
Description | Voxelsprite mesh entity.

## Module Information

Version | Wrapper 0.5 / Library 0.8
License | Wrapper Public Domain / Library LGPL
Author | Openb3d wrapper in BlitzMax by Mark Mcvittie
Credits | OpenB3D library in C++ by Angelo Rosina
Credits | miniB3D in BlitzMax by Simon Harrison