Functions
Function Vec2:TVec2( x:Float,y:Float )
Function Vec3:TVec3( x:Float,y:Float,z:Float )
Function Vec4:TVec4(x:Float,y:Float,z:Float,w:Float)
Function Int4:TInt4(x:Int,y:Int,z:Int,w:Int)
Function PlaneFromPointNormal:TPlane( p:TVec3,n:TVec3 )
Function Plane:TPlane(nx:Float,ny:Float,nz:Float,d:Float)
Function QuatFromAngleAxis:TQuat( v:TVec4 )
Function QuatFromMat4:TQuat(m:TMat4)
Function QuatFromEuler:TQuat( euler:TVec3 )
Function QuatFromVec3s:TQuat( xAxis:TVec3, yAxis:TVec3, zAxis:TVec3 )
Function Quat:TQuat( w:Float, x:Float, y:Float, z:Float )
Function Mat4FromIdentity:TMat4()
Function Mat4FromTranslation:TMat4( v:TVec3 )
Function Mat4FromScale:TMat4( v:TVec3 )
Function Mat4FromQuat:TMat4( q:TQuat)
Function Mat4FromAngleAxis:TMat4( v:TVec4 )
Function Mat4FromFrustum:TMat4( near_left:Float,near_right:Float,near_bottom:Float,near_top:Float,near:Float,far:Float )
Function Mat4FromInfiniteFrustum:TMat4( near_left:Float,near_right:Float,near_bottom:Float,near_top:Float,near:Float )
Function Mat4FromPitch:TMat4(q:Float)
Function Mat4FromYaw:TMat4(q:Float)
Function Mat4FromRoll:TMat4(q:Float)
Function Mat4FromEuler:TMat4( rot:TVec3)
Function Mat4FromPerspective:TMat4( fov:Float, aspect:Float, near:Float, far:Float, inverse:Int = True )
Function Mat4FromOrtho:TMat4( zoom:Float, aspect:Float, near:Float, far:Float, inverse:Int = True )
Function Mat4FromVec3:TMat4(vec:TVec3,roll:Float=0.0)
Function Mat4FromNormal:TMat4(nor:TVec3,axis:Int=1)
Function Round:Float(value:Float)
Function Clamp:Float(value:Float,vmin:Float,vmax:Float)
Function ColorHSVFromARGB:TColorHSV(argb:Int)
Function ColorHSVFromRGBAquad:TColorHSV( r:Int, g:Int, b:Int ,a:Int = 255 )
Function ColorRGB:TColorRGB(r:Float,g:Float,b:Float,a:Float=1.0)
Function ColorRGBFromRGBAquad:TColorRGB( r:Int, g:Int, b:Int ,a:Int = 255 )
Function ColorRGBFromARGB:TColorRGB(argb:Int,alpha:Int=True)
Function ColorRGBFromBGR:TColorRGB(argb:Int)
Function ColorYUVFromRGB:TColorYUV(rgb:TColorRGB)
Function ColorYUVFromARGB:TColorYUV(argb:Int)
Function HardwareInfoInfo:String()
Function EntityGetFromID:TEntity(id:Int)
Function EntityGetFromUniqueID:TEntity(id:Int)
Function MaterialGetFromID:TMaterial(id:Int)
Function MaterialGetFromUniqueID:TMaterial(id:Int)
Function CustomInt:TCustomInt(name:String,value:Int)
Function CustomFloat:TCustomFloat(name:String,value:Int)
Function CustomBool:TCustomBool(name:String,value:Int)
Function CustomString:TCustomString(name:String,value:String)
Function CustomFile:TCustomFile(name:String,value:String)
Function CustomColor:TCustomColor(name:String,value:TColorRGB)
Function TextureGetFromID:TTexture(id:Int)
Function TextureGetFromUniqueID:TTexture(id:Int)
Function TextureLoad:TTexture(url:String,RenderMode:Int =0,alpha:Int = 0)
Function LightmapGetFromID:TLightmap(id:Int)
Function LightmapGetFromUniqueID:TLightmap(id:Int)
Function ShaderGetFromID:TShader(id:Int)
Function ShaderGetFromUniqueID:TShader(id:Int)
Function ShaderLoad:TShader(url:THostObject)
Function CreatePlane:TPrimitivePlane(w:Float=1.0,d:Float=1.0,xsegs:Int=10,zsegs:Int=10)
Function CreateQuad:TPrimitivePlane(w:Float=1.0,d:Float=1.0)
Function CreateCube:TPrimitiveCube(width:Float=1.0,height:Float=1.0,depth:Float=1.0)
Function CreateCylinder:TPrimitiveCylinder(radius:Float=0.5,height:Float=1.0,segs:Int=8)
Function CreateSphere:TPrimitiveSphere(radius:Float=1.0,segs:Int=8)
Function CreateCone:TPrimitiveCone(radius:Float=0.5,height:Float=1.0,segs:Int=8)
Function CreateDisc:TPrimitiveDisc(radius:Float=0.5,segs:Int=8)
Function ClearIDs(id:Int = -1)
Function DeleteEntity(e:TEntity)
Function DeleteShader(s:TShader)
Function DeleteLightmap(l:TLightmap)
Function DeleteTexture(t:TTexture)
Function DeleteMaterial(m:TMaterial)
Function LightSetSceneAmbient(rgb:TColorRGB)
Function LightGetSceneAmbient:TColorRGB()
Function FileRequest:String(title:String,filter:String="",file:String="",save:Int=False)
Function FileWrite:TFile(url:String)
Function FileRead:TFile(url:String)
Function Shutdown( ask:Int=True )
Function Print( t:String="" )
Function Notify( title:String, text:String, serious:Int=False)
Function Confirm( title:String, text:String, serious:Int=False)
Function Proceed( title:String, text:String, serious:Int=False)
Function GetSelection:THostList()
Function SetSelection(s:THostList)
Function Materials:THostList()
Function Shaders:THostList()
Function Textures:THostList()
Function Lightmaps:THostList()
Function Entities:THostList()
Function SelectionAdd(e:TEntity)
Function SelectionMove(vec:TVec3,rot:TVec3=Null)
Function SelectionTurn(vec:TVec3)
Function SelectionScale(vec:TVec3)
Function SceneReset:Int(mustclear:Int=False)
Function SceneMerge(file:String)
Function SceneOpen(file:String)
Function SceneSave:Int(file:String="")
Function SceneExport(file:String="")
Function SceneGetFilename:String()
Function LightmapRenderer:TLightmapRenderer()
Function PackLightmap(lmap:TLightmap,force:Int = False)
Types
Type TVec2
Field x:Float,y:Float
Method Copy:TVec2( )
Method Normalize:TVec2()
Method Angle:Float()
Method Minus:TVec2(v:TVec2)
Method Length:Float()
Method ClosestToLine:TVec2(a:TVec2,b:TVec2,segment:Int=False)
Method Distance:Float(v:TVec2)
Method DistanceToLine:Float(a:TVec2,b:TVec2,segment:Int=False)
Method SideOfLine:Int(a:TVec2,b:TVec2)
Method Clamp:TVec2(_min:Float,_max:Float)
EndType
Type TVec3
Field x:Float,y:Float,z:Float
Method Copy:TVec3( )
Method MajorAxis:Int()
Method IsColinear:Int( v:TVec3 )
Method Distance:Float(v:TVec3)
Method Length:Float()
Method Dot:Float( v:TVec3 )
Method Inverse:TVec3()
Method Plus:TVec3( v:TVec3)
Method Minus:TVec3( v:TVec3)
Method Times:TVec3( v:TVec3 )
Method Scale:TVec3( scale:Float )
Method Cross:TVec3( v:TVec3 )
Method Normalize:TVec3()
Method Yaw:Float()
Method Pitch:Float()
Method Clamp:TVec3(_min:Float,_max:Float)
Method DistanceSquared:Float( b:TVec3)
EndType
Type TVec4
Field x:Float,y:Float,z:Float,w:Float
Method ToString:String()
Method Clamp:TVec4(_min:Float,_max:Float)
EndType
Type TInt4
Field x:Int,y:Int,z:Int,w:Int
Method Clamp:TInt4(_min:Int,_max:Int)
EndType
Type TPlane
Field nx:Float,ny:Float,nz:Float,d:Float
Method ToString:String()
Method Copy:TPlane()
Method Normal:TVec3()
Method Origin:TVec3()
Method Normalize:TPlane()
Method DistanceToVec3:Float( v:TVec3 )
Method DotVec3:Float( v:TVec3 )
Method RayIntersection:TVec3(a:TVec3,b:TVec3)
EndType
Type TQuat
Field x:Float,y:Float,z:Float,w:Float
Method Copy:TQuat()
Method ToAngleAxis:TVec4()
Method Inverse:TQuat()
Method Plus:TQuat(q:TQuat)
Method Minus:TQuat(q:TQuat)
Method TimesQuat:TQuat(q:TQuat)
Method TimesVec3:TVec3( v:TVec3 )
Method Scale:TQuat(scale:Float)
Method dot:Float(q:TQuat)
Method Length:Float()
Method Normalize:TQuat()
Method Slerp:TQuat( q:TQuat, a:Float)
Method I:TVec3()
Method J:TVec3()
Method K:TVec3()
Method Pitch:Float()
Method Yaw:Float()
Method Roll:Float()
EndType
Type TMat4
Field ix:Float,iy:Float,iz:Float,iw:Float
Field jx:Float,jy:Float,jz:Float,jw:Float
Field kx:Float,ky:Float,kz:Float,kw:Float
Field tx:Float,ty:Float,tz:Float,tw:Float
Method Scale:TVec3()
Method Copy:TMat4()
Method Orthogonalize:TMat4()
Method TimesVec3:TVec3( v:TVec3)
Method TimesVec3N:TVec3( v:TVec3)
Method TimesMat4:TMat4( m:TMat4)
Method AffineDeterminant:Float()
Method AffineInverse:TMat4( t:TMat4 = Null)
Method Transpose:TMat4()
Method Pitch:Float()
Method Yaw:Float()
Method Roll:Float()
EndType
Type TColor
Method toARGB:Int() Abstract
EndType
Type TColorHSV
Field h:Float,s:Float,v:Float,a:Float
Method toRGB:TColorRGB()
Method toARGB:Int()
EndType
Type TColorRGB
Field r:Float,g:Float,b:Float,a:Float
Method Copy:TColorRGB()
Method toHSV:TColorHSV()
Method toARGB:Int()
Method Blend(t:TColorRGB,blend:Float)
Method Scale(rblend:Float,gblend:Float,bblend:Float)
Method Contrast( contrast:Float, middle:Float=0.5 )
Method Saturate( saturation:Float )
Method Gamma( gr:Float,gg:Float,gb:Float )
EndType
Type TColorYUV
Field y:Float,u:Float,v:Float,a:Float
Method toRGB:TColorRGB()
Method toARGB:Int()
EndType
Type TEntity
Method SetCulling(i:Int)
Method GetCulling:Int()
Method SetZOrder(o:Int)
Method GetZOrder:Int()
Method Free()
Method SetName(text:String)
Method GetName:String()
Method GetParent:TEntity()
Method IsAncestor:Int( entity:TEntity )
Method SetVisible( vis:Int )
Method GetVisible:Int( space:Int = 0 )
Method GetPosition:TVec3(world:Int = 0)
Method GetScale:TVec3(world:Int = 0)
Method GetRotation:TVec3(world:Int = 0)
Method GetQuat:TQuat(world:Int = 0)
Method GetMatrix:TMat4(world:Int = 0)
Method SetPosition( p:TVec3, world:Int = 0)
Method Move( dis:TVec3 ,world:Int = 0)
Method Turn( turn:TVec3, world:Int = 0)
Method SetRotation(rotation:THostObject, world:Int = 0)
Method SetScale( s:THostObject, world:Int = 0)
Method SetParent(newParent:TEntity, inplace:Int = False)
Method LookAt( o:THostObject )
Method AlignToVec3( nor:TVec3, axis:Int = 0, blend:Float = 1.0 )
Method DistanceTo:Float(e:THostObject)
Method FindChild:TEntity(name:String)
Method SetPositionKey(frame:Float,pos:TVec3)
Method SetRotationKey(frame:Float,rot:TQuat)
Method SetScaleKey(frame:Float,sca:TVec3)
Method DeleteKeyframe(frame:Float)
Method GetFrameCount:Float()
Method SetAnimTime(frame:Float,frameblend:Float = 1.0,frst:Int=True)
Method Children:THostList()
Method GetMaterial:TMaterial(layer:Int=0)
Method SetMaterial(mat:TMaterial,layer:Int=0,recursive:Int=False)
EndType
Type TRenderElement
Method SetCulling(bool:Int)
Method SetMaterial(mat:TMaterial,layer:Int=0)
Method GetMaterial:TMaterial(layer:Int=0)
EndType
Type TMaterial
Method Free()
Method SetReceiveBackLight(bool:Int)
Method GetReceiveBackLight:Int()
Method SetCastShadows(bool:Int)
Method GetCastShadows:Int()
Method SetReceiveShadows(bool:Int)
Method GetReceiveShadows:Int()
Method SetAffectGI(bool:Int)
Method GetAffectGI:Int()
Method SetReceiveGI(bool:Int)
Method GetReceiveGI:Int()
Method GetLightMethod:Int()
Method SetLightMethod(m:Int)
Method SetLightmap(lmap:TLightmap)
Method GetLightmap:TLightmap()
Method GetLockAmbient:Int()
Method GetLockSpecular:Int()
Method SetLockSpecular(bool:Int)
Method SetLockAmbient(bool:Int)
Method SetMaskRef(f:Float)
Method GetMaskRef:Float()
Method SetShader(s:TShader)
Method GetShader:TShader()
Method GetUniform:TUniform(unam:String)
Method SetUniform:Int(unam:String,value:THostObject)
Method SetName(Name:String)
Method GetName:String()
Method SetRenderMode(Mode:Int)
Method AddRenderMode(Mode:Int)
Method RemoveRenderMode(Mode:Int)
Method GetRenderMode:Int(Mode:Int=0)
Method SetBlendMode(Mode:Int)
Method GetBlendMode:Int()
Method SetSpecularLevel(spec:Float)
Method GetSpecularLevel:Float()
Method SetGlossiness(g:Float)
Method GetGlossiness:Float()
Method SetAmbient(rgb:TColorRGB)
Method GetAmbient:TColorRGB()
Method SetDiffuse(rgb:TColorRGB)
Method GetDiffuse:TColorRGB()
Method SetAlpha(Alpha:Float)
Method GetAlpha:Float()
Method SetSpecular(rgb:TColorRGB)
Method GetSpecular:TColorRGB()
Method SetSelfIllumination(rgb:TColorRGB)
Method GetSelfIllumination:TColorRGB()
Method SetLineWidth(Width:Float)
Method GetLineWidth:Float()
Method SetPointSize(Size:Float)
Method GetPointSize:Float()
Method SetTexture(Texture:TTexture, Index:Int=0)
Method GetTexture:TTexture(Index:Int=0)
EndType
Type TPhotonObject
Method SetID(id:Int)
Method GetID:Int()
Method GetUniqueID:Int()
Method AddCustomProperty(custom:TCustomClass)
Method RemoveCustomProperty(custom:TCustomClass)
Method FindCustomProperty:TCustomClass(name:String)
EndType
Type TCustomClass
Method SetName(n:String)
Method GetName:String()
EndType
Type TCustomInt
Method Set(val:Int)
Method Get:Int()
EndType
Type TCustomFloat
Method Set(val:Float)
Method Get:Float()
EndType
Type TCustomBool
Method Set(val:Int)
Method Get:Int()
EndType
Type TCustomString
Method Set(val:String)
Method Get:String()
EndType
Type TCustomFile
Method Set(val:String)
Method Get:String()
EndType
Type TCustomColor
Method Set(val:TColorRGB)
Method Get:TColorRGB()
EndType
Type TTexture
Method Reload(url:String = "")
Method Free(remove:Int=True)
Method SetAlphaSource(i:Int)
Method GetAlphaSource:Int()
Method SetAutoName(bool:Int)
Method GetAutoName:Int()
Method SetName(Name:String)
Method GetName:String()
Method SetFilename(Filename:String)
Method GetFilename:String()
Method GetRelativeFilename:String(currentpath:String)
Method SetAlphaKey(rgb:TColorRGB)
Method GetAlphaKey:TColorRGB()
Method GetWidth:Int()
Method GetHeight:Int()
Method SetCubeFace:Int(Face:Int)
Method GetCubeFace:Int()
Method SetRenderMode:Int(Mode:Int)
Method AddRenderMode:Int(Mode:Int)
Method RemoveRenderMode(Mode:Int)
Method GetRenderMode:Int(Mode:Int)
Method SetBlendMode:Int(Mode:Int)
Method GetBlendMode:Int()
Method SetCubeMode:Int(Mode:Int)
Method GetCubeMode:Int()
Method SetCoordSet:Int(UVSet:Int)
Method GetCoordSet:Int()
Method GetFilter:Int()
Method SetFilter:Int(Filter:Int)
Method SetAnisotropy(a:Float)
Method GetAnisotropy:Float()
Method SetClamp(UWrap:Int, VWrap:Int)
Method GetClampU:Int()
Method GetClampV:Int()
Method SetMatrix( m:TMat4 )
Method SetRotation( r:TVec3 )
Method Turn( r:TVec3 )
Method GetRotation:TVec3()
Method SetPosition(p:TVec3)
Method Move(p:TVec3)
Method GetPosition:TVec3()
Method SetScale(s:TVec3)
Method GetScale:TVec3()
Method Lock:Int()
Method Unlock()
Method ReadPixel:Int(x:Int,y:Int)
Method GetMipMapLevels:Int()
Method WritePixel(x:Int,y:Int,rgba:Int,miplevel:Int=0)
Method Copy:TTexture()
EndType
Type TLightmap
Method SetSize(w:Int,h:Int)
Method SetPixel(x:Int,y:Int,rgb:TColorRGB)
Method GetPixel:TColorRGB(x:Int,y:Int)
Method SetPixelNormal(x:Int,y:Int,v:TVec3)
Method GetPixelNormal:TVec3(x:Int,y:Int)
Method GetPixelTangent:TVec3(x:Int,y:Int)
Method GetPixelBinormal:TVec3(x:Int,y:Int)
Method GetPixelPosition:TVec3(x:Int,y:Int)
Method SetPackAgain(bool:Int)
Method GetPackAgain:Int()
Method SetNeedPrepare(bool:Int)
Method GetNeedPrepare:Int()
Method GetSplitAngle:Float()
Method SetSplitAngle(a:Float)
Method GetNonUniform:Int()
Method SetNonUniform(bool:Int)
Method GetPackMethod:Int()
Method SetPackMethod(m:Int)
Method GetExistingChannel:Int()
Method SetExistingChannel(c:Int)
Method GetFlatAxis:Int()
Method SetFlatAxis(axis:Int)
Method GetCheckContinuity:Int()
Method SetCheckContinuity(bool:Int)
Method GetAdvancedPacking:Int()
Method SetAdvancedPacking(bool:Int)
Method GetCustomTexelEnabled:Int()
Method SetCustomTexelEnabled(bool:Int)
Method GetCustomTexelRes:Float()
Method SetCustomTexelRes(res:Float)
Method SetPackSpacing(i:Int)
Method GetPackSpacing:Int()
Method Update(brightness:Float=1.0,contrast:Float=1.0,saturation:Float=1.0)
EndType
Type TShader
Method SetEnabled(bool:Int)
Method GetEnabled:Int()
Method GetFilename:String( fshader:Int=True )
Method GetRelativeFilename:String(currentpath:String,fshader:Int = True)
Method GetError:String()
Method GetStatus:Int()
Method GetInfo:String()
Method GetUniform:TUniform( uname:String )
Method SetUniform:Int( uname:String, value:THostObject )
EndType
Type TUniform
Method Set(value:THostObject)
EndType
Type TSurface
Method SetMaterial(mat:TMaterial,layer:Int=0)
Method GetMaterial:TMaterial(layer:Int=0)
Method CountVertices:Int()
Method Clear()
Method CreateVertex:Int(pos:TVec3)
Method SetVertexPosition:Int(Vertex:Int, pos:TVec3)
Method GetVertexPosition:TVec3(Vertex:Int)
Method SetVertexNormal:Int(Vertex:Int, nor:TVec3)
Method GetVertexNormal:TVec3(Vertex:Int)
Method SetVertexUV:Int(Vertex:Int, uv:TVec3, UVSet:Int=0)
Method GetVertexUV:TVec3(Vertex:Int, UVSet:Int=0 )
Method SetVertexColor:Int(Vertex:Int, rgb:TColorRGB )
Method SetVertexLight:Int(Vertex:Int, rgb:TColorRGB )
Method GetVertexLight:TColorRGB(Vertex:Int)
Method SetVertexDiffuse:Int(Vertex:Int, rgb:TColorRGB )
Method GetVertexDiffuse:TColorRGB(Vertex:Int)
Method GetVertexColor:TColorRGB(Vertex:Int)
Method CountTriangles:Int()
Method CreateTriangle:Int(V0:Int, V1:Int, V2:Int)
Method SetTriangle:Int(Triangle:Int, V0:Int, V1:Int, V2:Int)
Method GetTriangleVertex:Int(Triangle:Int, Vertex:Int)
Method GetTriangleNormal:TVec3(Triangle:Int)
Method Scale( scale:TVec3 )
Method Translate( trans:TVec3 )
Method GetWidth:Float()
Method GetHeight:Float()
Method GetDepth:Float()
Method Normalize()
Method Invert()
Method SmoothNormals()
Method SetColor( rgb:TColorRGB )
Method UpdateTangents()
Method GetVertexTangent:TVec4(Vertex:Int)
Method SetVertexTangent(Vertex:Int, t:TVec4)
EndType
Type TPivot
Method Copy:TPivot()
Method SetShowIcon( bool:Int )
Method GetShowIcon:Int()
Method SetColor(rgb:TColorRGB)
Method GetColor:TColorRGB()
EndType
Type TWireSurface
Method Clear()
Method CreateVertex:Int(x:Float, y:Float, z:Float, r:Float = 1.0, g:Float = 1.0, b:Float = 1.0)
Method SetVertexPosition(index:Int,pos:TVec3)
Method VertexX:Float(index:Int)
Method VertexY:Float(index:Int)
Method VertexZ:Float(index:Int)
Method CreateLine:Int(v0:Int,v1:Int)
Method CreateLine3D:Int(x0:Float,y0:Float,z0:Float,x1:Float,y1:Float,z1:Float,r0:Float,g0:Float,b0:Float,r1:Float=-1,g1:Float=-1,b1:Float=-1)
EndType
Type TPrimitivePlane
Field width:Float
Field depth:Float
Field xsegs:Int
Field zsegs:Int
EndType
Type TPrimitive
Method Copy:TPrimitive()
Method ConvertToMesh:TMesh()
Method Build() Abstract
EndType
Type TMesh
Method Copy:TMesh()
Method CountTriangles:Int()
Method CountVertices:Int()
Method Surfaces:THostList()
Method CountSurfaces:Int()
Method CreateSurface:TSurface()
Method CreateWireSurface:TWireSurface()
Method GetSurface:TRenderElement(Index:Int=0)
Method ScaleVertices( scale:TVec3 )
Method ScaleUV( scale:TVec3, set:Int = 0 )
Method TranslateVertices( trans:TVec3 )
Method SetPivotPosition( pos:TVec3 )
Method CollapseTransform(keeppos:Int=True)
Method GetWidth:Float()
Method GetHeight:Float()
Method GetDepth:Float()
Method Invert()
Method SmoothNormals()
Method UpdateTangents()
Method SetColor( rgb:TColorRGB )
Method Attach( mesh:TEntity )
EndType
Type TGeometry
Method SetOverrideMaterial(bool:Int)
Method GetOverrideMaterial:Int()
Method SetReceiveBackLight(bool:Int)
Method GetReceiveBackLight:Int()
Method SetCastShadows(bool:Int)
Method GetCastShadows:Int()
Method SetReceiveShadows(bool:Int)
Method GetReceiveShadows:Int()
Method SetAffectGI(bool:Int)
Method GetAffectGI:Int()
Method SetReceiveGI(bool:Int)
Method GetReceiveGI:Int()
EndType
Type TPrimitiveCube
Field width:Float
Field height:Float
Field depth:Float
EndType
Type TPrimitiveCylinder
Field radius:Float
Field height:Float
Field segs:Int
Field cap:Int
EndType
Type TPrimitiveSphere
Field radius:Float
Field segs:Int
EndType
Type TPrimitiveCone
Field radius:Float
Field height:Float
Field segs:Int
Field cap:Int
EndType
Type TPrimitiveDisc
Field radius:Float
Field segs:Int
EndType
Type TTerrainLayer
Method SetBlend:Float(x,z,b:Float)
Method GetBlend:Float(x,z)
EndType
Type TTerrain
Method Copy:TTerrain()
Method Free()
Method SetSize(w:Int,d:Int)
Method SetTilingUV(tu:Float,tv:Float,set:Int)
Method SetOffsetUV(u:Float,v:Float,set:Int)
Method GetOffsetU:Float(set:Int=0)
Method GetOffsetV:Float(set:Int=0)
Method GetTilingU:Float(set:Int=0)
Method GetTilingV:Float(set:Int=0)
Method AddLayer()
Method CountLayers:Int()
Method GetLayer:TTerrainLayer(l:Int)
Method RemoveLayer(l:Int)
Method GetWidth:Int()
Method GetDepth:Int()
Method SetMaterial(mat:TMaterial,layer:Int=0,recursive:Int=False)
Method GetMaterial:TMaterial(layer:Int=0)
Method GetBlend:Float(x:Float,z:Float,lay:Int)
Method SetBlend(x:Float,z:Float,lay:Int,blend:Float,sub:Float=0.0)
Method GetNormal:TVec3(x:Int,z:Int)
Method GetColor:TColorRGB(x:Int,z:Int)
Method SetColor(x:Int,z:Int,c:TColorRGB)
Method GetHeight:Float(x:Float,z:Float)
Method SetHeight:Int(x:Float,z:Float,h:Float)
Method Smoothen(iter:Int=0,p:Float=1.0)
Method Erode(iter:Int=10)
Method GenerateFractal(rough:Float,crease:Float,falloff:Float=0.48,fscale:Int=7,seed:Int=12345)
EndType
Type TCamera
Method SetShowIcon(bool:Int)
Method InView( ent:TEntity )
Method SetViewport(vx:Int,vy:Int,vw:Int,vh:Int)
Method GetFOV:Float()
Method SetFOV(angle:Float)
Method GetZoom:Float()
Method SetZoom(z:Float)
Method SetProjectionMode(mode:Int)
Method GetProjectionMode:Int()
Method SetRange(near:Float,far:Float)
Method GetRangeNear:Float()
Method GetRangeFar:Float()
Method SetFogMode(mode:Int)
Method GetFogMode:Int()
Method SetFogColor(rgb:TColorRGB)
Method GetFogColor:TColorRGB()
Method SetFogRange(near:Float,far:Float)
Method SetFogDensity(dens:Float)
Method SetClearMode( mode )
Method SetClearColor( rgb:TColorRGB )
Method GetClearColor:TColorRGB()
Method GetProjection:TMat4()
Method Project:TVec3( p:TVec3, ignorez:Int = False,ret:TVec3 = Null )
Method GetMousePos:TVec3( v:TVec2 )
Method GetMouseDir:TVec3( v:TVec2 )
Method UnProject:TVec3( v:TVec3 )
EndType
Type TSky
Method Copy:TSky()
Method SetMode(i:Int)
Method GetMode:Int()
Method SetIntensity(i:Float)
Method GetIntensity:Float()
Method SetTheta(t:Float)
Method GetTheta:Float()
Method SetPhi(p:Float)
Method GetPhi:Float()
Method SetTurbidity(t:Float)
Method GetTurbidity:Float()
Method GetTopColor:TColorRGB()
Method SetTopColor(c:TColorRGB)
Method GetBottomColor:TColorRGB()
Method SetBottomColor(c:TColorRGB)
Method SetGradientPos(p:Float)
Method GetGradientPos:Float()
Method SetGradientBlend(p:Float)
Method GetGradientBlend:Float()
Method GetColor:TColorRGB(dir:TVec3)
EndType
Type TLight
Method SetShowIcon( bool:Int )
Method GetShowIcon:Int()
Method SetShowFalloff( bool:Int )
Method GetShowFalloff:Int()
Method SetRadius(rad:Float)
Method GetRadius:Float()
Method SetRangeNear(near:Float)
Method GetRangeNear:Float()
Method SetRangeFar(far:Float)
Method GetRangeFar:Float()
Method SetAngleInner(inner:Float)
Method GetAngleInner:Float()
Method SetAngleOuter(outer:Float)
Method GetAngleOuter:Float()
Method SetOvershoot(bool:Int)
Method GetOvershoot:Int()
Method SetInfinite(bool:Int)
Method GetInfinite:Int()
Method SetCastShadows(bool:Int)
Method GetCastShadows:Int()
Method SetSoftShadows(bool:Int)
Method GetSoftShadows:Int()
Method SetColor(rgb:TColorRGB)
Method GetColor:TColorRGB()
Method SetSpecular(rgb:TColorRGB)
Method GetSpecular:TColorRGB()
Method SetDiffuse(rgb:TColorRGB)
Method GetDiffuse:TColorRGB()
Method SetIntensity(i:Float)
Method GetIntensity:Float()
Method SetActive(bool:Int)
Method GetActive:Int()
Method GetTarget:TEntity()
Method GetTargetPosition:TVec3( space:Int = 1 )
Method SetTargetPosition( pos:TVec3, space:Int = 1)
Method SetMode( mo:Int )
Method GetMode:Int()
EndType
Type TInstance
Method GetPosition:TVec3()
Method GetNormal:TVec3()
Method GetColor:TColorRGB()
Method SetColor( rgb:TColorRGB )
Method GetClass:Int()
Method GetUID:Int()
EndType
Type TQuadInstanceSetting
Method SetName(s:String)
Method SetAlignment(a:Int)
Method SetDensity(d:Float)
Method GetDensity:Float()
Method SetMode( i:Int )
Method SetScaleRange(a:Float,b:Float)
Method SetRotationRange(a:Float,b:Float)
Method SetCorner(i:Int,x:Float,y:Float)
Method SetSize(w:Float,h:Float)
Method SetOrigin(x:Float,y:Float)
EndType
Type TInstanciator
Method AddSetting:TQuadInstanceSetting()
Method GetSetting:TQuadInstanceSetting( class:Int )
Method RemoveSetting(class:Int,kill_instances:Int=True)
Method SetMaterial(mat:TMaterial,layer:Int=0,recursive:Int=False)
Method GetMaterial:TMaterial(layer:Int=0)
Method GetCount:Int()
Method GetInstanceList:THostList()
Method SetRenderDensity(rd:Float)
Method GetRenderDensity:Float()
Method SetRange(s:Float)
Method GetRange:Float()
Method SetSorting(bool:Int)
Method GetSorting:Int()
Method RemoveInstances(pos:TVec3,r:Float)
Method AddInstance(pos:TVec3,nor:TVec3,class:Int,uid:Int=-1,check_density:Int = True)
Method Clear()
Method ForceRefresh()
EndType
Type TFile
Method Close()
Method Seek(pos:Int)
Method Position:Int()
Method Size:Int()
Method Eof:Int()
Method WriteByte(b:Int)
Method WriteShort(s:Int)
Method WriteInt(i:Int)
Method WriteFloat(f:Float)
Method WriteDouble(d:Float)
Method WriteWString(s:String)
Method WriteString(s:String)
Method WriteLine(s:String)
Method ReadByte:Int()
Method ReadShort:Int()
Method ReadInt:Int()
Method ReadFloat:Float()
Method ReadDouble:Float()
Method ReadWString:String()
Method ReadString:String()
Method ReadLine:String()
EndType
Type TLightmapWizard
Method SetSize( s:Int )
Method GetSize:Int()
Method SetCount( c:Int )
Method GetCount:Int()
Method SetPadding( c:Int )
Method GetPadding:Int()
Method SetTransparencyRule( alpha:Int,mask:Int )
Method SetSizeRule( lessthan:Int, thin:Int, lmethod:Int )
Method SetMatch_NoLight( in:String )
Method SetMatch_VertexLight( in:String )
Method SetMatch_Lightmap( in:String )
Method SetForceFullbright( bool:Int )
Method GetForceFullbright:Int()
Method Compute()
EndType
Type TAmbOccRenderer
Method GetIgnoreTextures:Int()
Method SetIgnoreTextures(bool:Int)
Method GetRayDistance:Float()
Method SetRayDistance(d:Float)
Method GetRaysPerSample:Int()
Method SetRaysPerSample(i:Int)
Method GetUseAmbientLights:Int()
Method SetUseAmbientLights(bool:Int)
EndType
Type TPathTraceRenderer
Method GetIgnoreTextures:Int()
Method SetIgnoreTextures(bool:Int)
Method GetLightBounces:Int()
Method SetLightBounces(i:Int)
Method GetRaysPerSample:Int()
Method SetRaysPerSample(i:Int)
EndType
Type TLightmapRenderer
Method GetClearBefore:Int()
Method SetClearBefore(bool:Int)
Method GetDirectEnabled:Int()
Method SetDirectEnabled(bool:Int)
Method GetGIRenderer:TGIRenderer()
Method SetGIRenderer(g:TGIRenderer)
Method GetRayBias:Float()
Method SetRayBias(f:Float)
Method GetShadowsEnabled:Int()
Method SetShadowsEnabled(bool:Int)
Method GetBackfaceShadows:Int()
Method SetBackfaceShadows(bool:Int)
Method GetAntiAliasEnabled:Int()
Method SetAntiAliasEnabled(bool:Int)
Method GetSoftShadowsEnabled:Int()
Method SetSoftShadowsEnabled(bool:Int)
Method GetSoftShadowSamples:Int()
Method SetSoftShadowSamples(samples:Int)
Method GetDirectMultiply:Float()
Method SetDirectMultiply(f:Float)
Method GetGIMultiply:Float()
Method SetGIMultiply(f:Float)
Method GetAdaptiveSubDivEnabled:Int()
Method SetAdaptiveSubDivEnabled(bool:Int)
Method GetSubDivContrast:Float()
Method SetSubDivContrast(f:Float)
Method GetMaxSubDiv:Int()
Method SetMaxSubDiv(i:Int)
Method GetMinSubDiv:Int()
Method SetMinSubDiv(i:Int)
Method Render()
EndType
Constants
Const AXIS_X:Int = 0
Const AXIS_Y:Int = 1
Const AXIS_Z:Int = 2
Const PICK_MODE_NONE:Int = 0
Const PICK_MODE_BOX:Int = 1
Const PICK_MODE_GEO:Int = 2
Const SPACE_LOCAL:Int = 0
Const SPACE_WORLD:Int = 1
Const MATERIAL_WIRE:Int = 0
Const MATERIAL_FILL:Int = 0
Const MATERIAL_FLAT:Int = 0
Const MATERIAL_TWOSIDED:Int = 0
Const MATERIAL_NOFOG:Int = 0
Const MATERIAL_FULLBRIGHT:Int = 0
Const MATERIAL_VERTEXCOLOR:Int = 0
Const MATERIAL_VERTEXALPHA:Int = 0
Const MATERIAL_ZWRITE:Int = 0
Const MATERIAL_ZREAD:Int = 0
Const MATERIAL_MASK:Int = 0
Const MATERIAL_BACKSIDE:Int = 0
Const MATERIAL_SOLID:Int = 0
Const MATERIAL_ALPHA:Int = 1
Const MATERIAL_MULTIPLY:Int = 2
Const MATERIAL_ADDITIVE:Int = 3
Const MATERIAL_MULTIPLY2X:Int = 4
Const MATERIAL_LIGHTNONE:Int = 0
Const MATERIAL_LIGHTVERTEX:Int = 1
Const MATERIAL_LIGHTMAP:Int = 2
Const TEXTURE_RIGHT:Int = 0
Const TEXTURE_LEFT:Int = 1
Const TEXTURE_TOP:Int = 2
Const TEXTURE_BOTTOM:Int = 3
Const TEXTURE_BACK:Int = 4
Const TEXTURE_FRONT:Int = 5
Const TEXTURE_COMPRESSED:Int = 0
Const TEXTURE_MIPMAP:Int = 0
Const TEXTURE_SPHEREMAP:Int = 0
Const TEXTURE_CUBEMAP:Int = 0
Const TEXTURE_PROJECTED:Int = 0
Const TEXTURE_DEPTH:Int = 0
Const TEXTURE_COLOR:Int = 0
Const TEXTURE_CUBEMODE_UVW:Int = 0
Const TEXTURE_CUBEMODE_REFLECTION:Int = 1
Const TEXTURE_CUBEMODE_NORMAL:Int = 2
Const TEXTURE_POINTSAMPLING:Int = 0
Const TEXTURE_BILINEAR:Int = 1
Const TEXTURE_TRILINEAR:Int = 2
Const TEXTURE_REPEAT:Int = 0
Const TEXTURE_CLAMP:Int = 1
Const TEXTURE_CROP:Int = 2
Const TEXTURE_REPLACE:Int = 0
Const TEXTURE_MODULATE:Int = 1
Const TEXTURE_MODULATE2X:Int = 2
Const TEXTURE_MODULATE4X:Int = 3
Const TEXTURE_DECAL:Int = 4
Const TEXTURE_BLEND:Int = 5
Const TEXTURE_ADD:Int = 6
Const TEXTURE_SUBTRACT:Int = 7
Const TEXTURE_INTERPOLATE:Int = 8
Const TEXTURE_DOT3:Int = 9
Const ALPHA_NONE:Int = 0
Const ALPHA_ALPHA:Int = 1
Const ALPHA_KEY:Int = 2
Const ALPHA_RGB:Int = 3
Const PACK_ANGLE:Int = 0
Const PACK_PLANE:Int = 1
Const PACK_FLAT:Int = 2
Const PACK_EXISTING:Int = 3
Const FOG_NONE:Int = 0
Const FOG_LINEAR:Int = 1
Const FOG_EXP:Int = 2
Const FOG_EXP2:Int = 3
Const CLEAR_COLOR:Int = 1
Const CLEAR_DEPTH:Int = 2
Const SKY_PHYSICAL:Int = 0
Const SKY_GRADIENT:Int = 1
Const SKY_STANDARD:Int = 2
Const LIGHT_OMNI:Int = 0
Const LIGHT_SPOT:Int = 1
Const LIGHT_TARGET_SPOT:Int = 2
Const LIGHT_DIRECTIONAL:Int = 3
Const LIGHT_TARGET_DIRECTIONAL:Int = 4
Const LIGHT_AMBIENT:Int = 5
Const INSTANCE_ALIGN_PERPENDICULAR:Int = 0
Const INSTANCE_ALIGN_PARALLEL:Int = 1
Const INSTANCE_ALIGN_VERTICAL:Int = 2
Const INSTANCE_ALIGN_SHADER:Int = 3
Stats
239 Functions
239 Types
592 Methods
239 Constants