API Classes

Bloom

Bloom post-process object holding internal states and resources.

Create with CreateBloomFromAssets or CreateBloomFromFile, use with ApplyBloom, finally call DestroyBloom to dispose of resources when done.

Related functions: ApplyBloom, CreateBloomFromAssets, CreateBloomFromFile and DestroyBloom.

Camera

Add this component to a Node to implement the camera aspect.

Create a camera component with Scene.CreateCamera, use CreateCamera to create a complete camera node.

Related classes: Node and Scene.


MethodPrototype
GetFovnumber ()
Return the camera field of view.
GetIsOrthographicboolean ()
Return true if orthographic projection is used, false if perspective projection.
GetSizenumber ()
GetZFarnumber ()
Return the camera far clipping plane.
GetZNearnumber ()
Return the camera near clipping plane.
GetZRangeCameraZRange ()
IsValidboolean ()
SetFovnil (number v)
Set the camera field of view.
SetIsOrthographicnil (boolean v)
Configure the camera to use orthographic or perspective projection.
SetSizenil (number v)
SetZFarnil (number v)
Set the camera far clipping plane.
SetZNearnil (number v)
Set the camera near clipping plane.
SetZRangenil (CameraZRange z)
operator==boolean (Camera c)

CameraZRange

Related classes: Camera.


MemberType
zfarnumber
znearnumber

MethodPrototype
ConstructorCameraZRange ()

Canvas

Holds the canvas properties of a scene, see the canvas member of class Scene.

Related classes: Scene.


MemberType
clear_colorboolean
clear_zboolean
colorColor

Collision

Collision component, see Physics.

Related classes: Node and Scene.


MethodPrototype
GetCollisionResourcestring ()
GetHeightnumber ()
GetLocalTransformMat4 ()
GetMassnumber ()
Return the collision shape mass in Kg.
GetRadiusnumber ()
GetTypeCollisionType ()
Return the CollisionType of a Collision component.
IsValidboolean ()
SetCollisionResourcenil (string path)
SetHeightnil (number height)
SetLocalTransformnil (Mat4 m)
SetMassnil (number mass)
Set the collision shape mass in Kg.
SetRadiusnil (number radius)
SetSizenil (Vec3 size)
SetTypenil (CollisionType type)
Set the CollisionType of a Collision component.
operator==boolean (Collision c)

Color

Four-component RGBA color object.

Related classes: Canvas, ColorList, Environment, ForwardPipelineFog, ForwardPipelineLight, Light, Picture, Scene, Vertex and Vertices.

Related functions: AlphaScale, ChromaScale, Clamp, ColorFromABGR32, ColorFromRGBA32, ColorFromVector3, ColorFromVector4, ColorI, ColorToABGR32, ColorToGrayscale, ColorToRGBA32, CreateLinearLight, CreatePointLight, CreateSpotLight, FromHLS, ImGuiColorButton, ImGuiColorEdit, ImGuiGetColorU32, ImGuiImageButton, ImGuiImage, ImGuiPushStyleColor, ImGuiTextColored, MakeForwardPipelineLinearLight, MakeForwardPipelinePointLight, MakeForwardPipelineSpotLight, MakeVertex, SetSaturation, SetView2D, SetViewClear, SetViewOrthographic, SetViewPerspective, SubmitModelToForwardPipeline and ToHLS.


MemberType
Blackstatic Color
Bluestatic Color
Greenstatic Color
Greystatic Color
Onestatic Color
Orangestatic Color
Purplestatic Color
Redstatic Color
Transparentstatic Color
Whitestatic Color
Yellowstatic Color
Zerostatic Color
anumber
bnumber
gnumber
rnumber

MethodPrototype
ConstructorColor ()
Construct a new color object. The red, green, blue and alpha components are in normalized range [0;1].
ConstructorColor (Color color)
Construct a new color object. The red, green, blue and alpha components are in normalized range [0;1].
ConstructorColor (number r, number g, number b)
Construct a new color object. The red, green, blue and alpha components are in normalized range [0;1].
ConstructorColor (number r, number g, number b, number a)
Construct a new color object. The red, green, blue and alpha components are in normalized range [0;1].
operator!=boolean (Color color)
operator*Color (Color color)
operator*Color (number k)
operator*=nil (Color color)
operator*=nil (number k)
operator+Color (Color color)
operator+Color (number k)
operator+=nil (Color color)
operator+=nil (number k)
operator-Color (Color color)
operator-Color (number k)
operator-=nil (Color color)
operator-=nil (number k)
operator/Color (Color color)
operator/Color (number k)
operator/=nil (Color color)
operator/=nil (number k)
operator==boolean (Color color)

ColorList


MethodPrototype
atColor (int idx)
clearnil ()
push_backnil (Color v)
reservenil (int size)
sizeint ()

Contact

Object containing the world space position, normal and depth of a contact as reported by the collision system.

Related classes: ContactList.


MemberType
NVec3
PVec3
dnumber

ContactList

Related functions: GetNodePairContacts.


MethodPrototype
atContact (int idx)
clearnil ()
push_backnil (Contact v)
reservenil (int size)
sizeint ()

Data

Related functions: LoadDataFromFile, LoadSceneBinaryFromDataAndAssets, LoadSceneBinaryFromDataAndFile, SaveDataToFile and SaveSceneBinaryToData.


MethodPrototype
ConstructorData ()
GetSizeint ()
Rewindnil ()

DearImguiContext

Context to render immediate GUI.

Related functions: ImGuiBeginFrame, ImGuiEndFrame and ImGuiInitContext.

DirEntry

Related classes: DirEntryList.


MemberType
namestring
typeint

DirEntryList

Related functions: ListDirRecursive and ListDir.


MethodPrototype
atDirEntry (int idx)
clearnil ()
push_backnil (DirEntry v)
reservenil (int size)
sizeint ()

Environment

Environment properties of a scene, see environment member of the Scene class.

Related classes: Scene.


MemberType
ambientColor
brdf_mapTextureRef
fog_colorColor
fog_farnumber
fog_nearnumber

File

Interface to a file on the host local filesystem.

Related functions: Close, GetSize, IsEOF, IsValid, OpenTemp, OpenText, OpenWriteText, OpenWrite, Open, ReadFloat, ReadString, ReadUInt16, ReadUInt32, ReadUInt8, Rewind, Seek, Tell, WriteFloat, WriteString, WriteUInt16, WriteUInt32 and WriteUInt8.

FileFilter

Related classes: FileFilterList.


MemberType
namestring
patternstring

FileFilterList

Related functions: OpenFileDialog and SaveFileDialog.


MethodPrototype
atFileFilter (int idx)
clearnil ()
push_backnil (FileFilter v)
reservenil (int size)
sizeint ()

Font

Font object for realtime rendering.

Related functions: ComputeTextHeight, ComputeTextRect, DrawText, LoadFontFromAssets and LoadFontFromFile.

ForwardPipeline

Rendering pipeline implementing a forward rendering strategy.

The main characteristics of this pipeline are:

  • Render in two passes: opaque display lists then transparent ones.
  • Fixed 8 light slots supporting 1 linear light with PSSM shadow mapping, 1 spot with shadow mapping and up to 6 point lights with no shadow mapping.

Related functions: Cast_Pipeline_To_ForwardPipeline, CreateForwardPipeline, DestroyForwardPipeline, PrepareSceneForwardPipelineCommonRenderData, PrepareSceneForwardPipelineViewDependentRenderData, SubmitModelToForwardPipeline, SubmitSceneToForwardPipeline and SubmitSceneToPipeline.

ForwardPipelineAAA

Related functions: CreateForwardPipelineAAAFromAssets, CreateForwardPipelineAAAFromFile, DestroyForwardPipelineAAA, IsValid, SubmitSceneToForwardPipeline and SubmitSceneToPipeline.


MethodPrototype
Flipnil (ViewState view_state)

ForwardPipelineAAAConfig

Related functions: CreateForwardPipelineAAAFromAssets, CreateForwardPipelineAAAFromFile, LoadForwardPipelineAAAConfigFromAssets, LoadForwardPipelineAAAConfigFromFile, SaveForwardPipelineAAAConfigToFile, SubmitSceneToForwardPipeline and SubmitSceneToPipeline.


MemberType
bloom_biasnumber
bloom_intensitynumber
bloom_thresholdnumber
exposurenumber
gammanumber
max_distancenumber
motion_blurnumber
sample_countint
temporal_aa_weightnumber
z_thicknessnumber

MethodPrototype
ConstructorForwardPipelineAAAConfig ()

ForwardPipelineFog

Fog properties for the forward pipeline.

Related functions: GetSceneForwardPipelineFog and SubmitModelToForwardPipeline.


MemberType
colorColor
farnumber
nearnumber

MethodPrototype
ConstructorForwardPipelineFog ()

ForwardPipelineLight

Single light for the forward pipeline. The complete lighting rig is passed as a ForwardPipelineLights, see PrepareForwardPipelineLights.

Related classes: ForwardPipelineLightList.

Related functions: MakeForwardPipelineLinearLight, MakeForwardPipelinePointLight and MakeForwardPipelineSpotLight.


MemberType
diffuseColor
inner_anglenumber
outer_anglenumber
prioritynumber
pssm_splitVec4
radiusnumber
specularColor
typeForwardPipelineLightType
worldMat4

MethodPrototype
ConstructorForwardPipelineLight ()

ForwardPipelineLightList

Related functions: GetSceneForwardPipelineLights and PrepareForwardPipelineLights.


MethodPrototype
atForwardPipelineLight (int idx)
clearnil ()
push_backnil (ForwardPipelineLight v)
reservenil (int size)
sizeint ()

ForwardPipelineLights

Related functions: PrepareForwardPipelineLights and SubmitModelToForwardPipeline.

FrameBuffer

Related functions: CreateFrameBuffer, DestroyFrameBuffer, GetColorTexture, GetDepthTexture, GetTextures and IsValid.


MemberType
handleFrameBufferHandle

FrameBufferHandle

Related classes: FrameBuffer and OpenVREyeFrameBuffer.

Related functions: ApplyBloom, ComputeSAO, SetViewFrameBuffer, SubmitSceneToForwardPipeline and SubmitSceneToPipeline.

Frustum

A view frustum, perspective or orthographic, holding the necessary information to perform culling queries. It can be used to test wether a volume is inside or outside the frustum it represents.

Related classes: ViewState.

Related functions: MakeFrustum, TestVisibility and TransformFrustum.


MethodPrototype
GetBottomVec4 ()
GetFarVec4 ()
GetLeftVec4 ()
GetNearVec4 ()
GetRightVec4 ()
GetTopVec4 ()
SetBottomnil (Vec4 plane)
SetFarnil (Vec4 plane)
SetLeftnil (Vec4 plane)
SetNearnil (Vec4 plane)
SetRightnil (Vec4 plane)
SetTopnil (Vec4 plane)

Gamepad

Helper class holding the current and previous device state to enable delta state queries.

Use GetGamepadNames to query for available gamepad devices.


MethodPrototype
Axesnumber (GamepadAxes axis)
Return the value of a gamepad axis.
Connectedboolean ()
Gamepad was connected since the last update.
ConstructorGamepad ()
ConstructorGamepad (string name)
Disconnectedboolean ()
Gamepad was disconnected since the last update.
Downboolean (GamepadButton btn)
DtAxesnumber (GamepadAxes axis)
IsConnectedboolean ()
Gamepad is currently connected.
Pressedboolean (GamepadButton btn)
Releasedboolean (GamepadButton btn)
Updatenil ()

GamepadState

Related functions: ReadGamepad.


MethodPrototype
Axesnumber (GamepadAxes idx)
Buttonboolean (GamepadButton btn)
IsConnectedboolean ()

Geometry

Base geometry object. Before a geometry can be displayed, it must be converted to Model by the asset compiler (see Compiling to Assets).

To programmatically create a geometry use GeometryBuilder.

Related classes: GeometryBuilder.

Related functions: SaveGeometryToFile.

GeometryBuilder

Use the geometry builder to programmatically create geometries. No optimization are performed by the geometry builder on the input data.

To programmatically build a geometry for immediate display see ModelBuilder to directly build models.


MethodPrototype
AddPolygonnil (UInt32List idxs, int material)
AddQuadnil (int a, int b, int c, int d, int material)
AddTrianglenil (int a, int b, int c, int material)
AddVertexnil (Vertex vtx)
Clearnil ()
ConstructorGeometryBuilder ()
MakeGeometry ()

IVideoStreamer

Related functions: IsValid, MakeVideoStreamer and UpdateTexture.


MethodPrototype
Closeint (pointer h)
FreeFrameint (pointer h, int frame)
GetDurationint (pointer h)
GetFrameint, pointer, int, int, int, VideoFrameFormat (pointer h, pointer ptr, int width, int height, int pitch, VideoFrameFormat format)
GetTimeStampint (pointer h)
IsEndedint (pointer h)
Openpointer (string name)
Pauseint (pointer h)
Playint (pointer h)
Seekint (pointer h, int t)
Shutdownnil ()
Startupint ()

ImDrawList

Immediate GUI drawing list. This object can be used to perform custom drawing operations on top of an imgui window.

Related functions: ImGuiGetWindowDrawList.


MethodPrototype
AddBezierCubicnil (Vec2 pos0, Vec2 cp0, Vec2 cp1, Vec2 pos1, int col, number thickness)
AddBezierCubicnil (Vec2 pos0, Vec2 cp0, Vec2 cp1, Vec2 pos1, int col, number thickness, int num_segments)
AddCirclenil (Vec2 centre, number radius, int col)
AddCirclenil (Vec2 centre, number radius, int col, int num_segments)
AddCirclenil (Vec2 centre, number radius, int col, int num_segments, number thickness)
AddCircleFillednil (Vec2 centre, number radius, int col)
AddCircleFillednil (Vec2 centre, number radius, int col, int num_segments)
AddConvexPolyFillednil (Vec2List points, int col)
AddImagenil (Texture tex, Vec2 a, Vec2 b)
AddImagenil (Texture tex, Vec2 a, Vec2 b, Vec2 uv_a, Vec2 uv_b)
AddImagenil (Texture tex, Vec2 a, Vec2 b, Vec2 uv_a, Vec2 uv_b, int col)
AddImageQuadnil (Texture tex, Vec2 a, Vec2 b, Vec2 c, Vec2 d)
AddImageQuadnil (Texture tex, Vec2 a, Vec2 b, Vec2 c, Vec2 d, Vec2 uv_a, Vec2 uv_b, Vec2 uv_c, Vec2 uv_d)
AddImageQuadnil (Texture tex, Vec2 a, Vec2 b, Vec2 c, Vec2 d, Vec2 uv_a, Vec2 uv_b, Vec2 uv_c, Vec2 uv_d, int col)
AddImageRoundednil (Texture tex, Vec2 a, Vec2 b, Vec2 uv_a, Vec2 uv_b, int col, number rounding)
AddImageRoundednil (Texture tex, Vec2 a, Vec2 b, Vec2 uv_a, Vec2 uv_b, int col, number rounding, ImDrawFlags flags)
AddLinenil (Vec2 a, Vec2 b, int col)
AddLinenil (Vec2 a, Vec2 b, int col, number thickness)
AddPolylinenil (Vec2List points, int col, boolean closed, number thickness)
AddQuadnil (Vec2 a, Vec2 b, Vec2 c, Vec2 d, int col)
AddQuadnil (Vec2 a, Vec2 b, Vec2 c, Vec2 d, int col, number thickness)
AddQuadFillednil (Vec2 a, Vec2 b, Vec2 c, Vec2 d, int col)
AddRectnil (Vec2 a, Vec2 b, int col)
AddRectnil (Vec2 a, Vec2 b, int col, number rounding)
AddRectnil (Vec2 a, Vec2 b, int col, number rounding, int rounding_corner_flags)
AddRectnil (Vec2 a, Vec2 b, int col, number rounding, int rounding_corner_flags, number thickness)
AddRectFillednil (Vec2 a, Vec2 b, int col)
AddRectFillednil (Vec2 a, Vec2 b, int col, number rounding)
AddRectFillednil (Vec2 a, Vec2 b, int col, number rounding, int rounding_corner_flags)
AddRectFilledMultiColornil (Vec2 a, Vec2 b, int col_upr_left, int col_upr_right, int col_bot_right, int col_bot_left)
AddTextnil (Vec2 pos, int col, string text)
AddTextnil (ImFont font, number font_size, Vec2 pos, int col, string text)
AddTextnil (ImFont font, number font_size, Vec2 pos, int col, string text, number wrap_width)
AddTextnil (ImFont font, number font_size, Vec2 pos, int col, string text, number wrap_width, Vec4 cpu_fine_clip_rect)
AddTrianglenil (Vec2 a, Vec2 b, Vec2 c, int col)
AddTrianglenil (Vec2 a, Vec2 b, Vec2 c, int col, number thickness)
AddTriangleFillednil (Vec2 a, Vec2 b, Vec2 c, int col)
ChannelsMergenil ()
ChannelsSetCurrentnil (int channel_index)
ChannelsSplitnil (int channels_count)
GetClipRectMaxVec2 ()
GetClipRectMinVec2 ()
PathArcTonil (Vec2 centre, number radius, number a_min, number a_max)
PathArcTonil (Vec2 centre, number radius, number a_min, number a_max, int num_segments)
PathArcToFastnil (Vec2 centre, number radius, int a_min_of_12, int a_max_of_12)
PathBezierCubicCurveTonil (Vec2 p1, Vec2 p2, Vec2 p3)
PathBezierCubicCurveTonil (Vec2 p1, Vec2 p2, Vec2 p3, int num_segments)
PathClearnil ()
PathFillConvexnil (int col)
PathLineTonil (Vec2 pos)
PathLineToMergeDuplicatenil (Vec2 pos)
PathRectnil (Vec2 rect_min, Vec2 rect_max)
PathRectnil (Vec2 rect_min, Vec2 rect_max, number rounding)
PathRectnil (Vec2 rect_min, Vec2 rect_max, number rounding, ImDrawFlags flags)
PathStrokenil (int col, boolean closed)
PathStrokenil (int col, boolean closed, number thickness)
PopClipRectnil ()
PopTextureIDnil ()
PushClipRectnil (Vec2 clip_rect_min, Vec2 clip_rect_max)
PushClipRectnil (Vec2 clip_rect_min, Vec2 clip_rect_max, boolean intersect_with_curent_clip_rect)
PushClipRectFullScreennil ()
PushTextureIDnil (Texture tex)

ImFont

Immediate GUI font.

Related classes: ImDrawList.

Related functions: ImGuiGetFont and ImGuiPushFont.

Instance

Component to instantiate a scene as a child of a node upon setup.

Related classes: Node and Scene.


MethodPrototype
ClearOnInstantiateAnimnil ()
GetOnInstantiateAnimstring ()
GetOnInstantiateAnimLoopModeAnimLoopMode ()
GetOnInstantiatePlayAnimRefScenePlayAnimRef ()
GetPathstring ()
IsValidboolean ()
SetOnInstantiateAnimnil (string anim)
SetOnInstantiateAnimLoopModenil (AnimLoopMode loop_mode)
SetPathnil (string path)
operator==boolean (Instance i)

IntRect

Related classes: MonitorMode.

Related functions: ApplyBloom, ComputeSAO, Crop, FitsInside, GetHeight, GetMonitorRect, GetSize, GetWidth, GetX, GetY, Grow, Inside, Intersection, Intersects, MakeRectFromWidthHeight, Offset, SetHeight, SetWidth, SetX, SetY, SubmitSceneToForwardPipeline, SubmitSceneToPipeline, ToFloatRect and ToIntRect.


MemberType
exint
eyint
sxint
syint

MethodPrototype
ConstructorIntRect ()
ConstructorIntRect (int x, int y)
ConstructorIntRect (int sx, int sy, int ex, int ey)
ConstructorIntRect (IntRect rect)

IsoSurface

An iso-surface represents points of a constant value within a volume of space. This class holds a fixed-size 3-dimensional grid of values that can efficiently be converted to a Model at runtime.

Related functions: GaussianBlurIsoSurface, IsoSurfaceSphere, IsoSurfaceToModel and NewIsoSurface.

iVec2

2-dimensional integer vector.

Related classes: Vec3, Vec4 and iVec2List.

Related functions: Dist2, Dist, Dot, GetMonitorSizeMM, GetSize, GetWindowPos, ImGuiDragIntVec2, ImGuiInputIntVec2, ImGuiSliderIntVec2, Inside, Len2, Len, Max, Min, Normalize, OpenVRGetFrameBufferSize, Reverse, SetWindowPos and UpdateTexture.


MemberType
Onestatic iVec2
Zerostatic iVec2
xint
yint

MethodPrototype
ConstructoriVec2 ()
ConstructoriVec2 (int x, int y)
ConstructoriVec2 (iVec2 v)
ConstructoriVec2 (Vec3 v)
ConstructoriVec2 (Vec4 v)
Setnil (int x, int y)
operator*iVec2 (iVec2 v)
operator*iVec2 (int k)
operator*iVec2 (Mat3 m)
operator*=nil (iVec2 v)
operator*=nil (int k)
operator+iVec2 (iVec2 v)
operator+iVec2 (int k)
operator+=nil (iVec2 v)
operator+=nil (int k)
operator-iVec2 (iVec2 v)
operator-iVec2 (int k)
operator-=nil (iVec2 v)
operator-=nil (int k)
operator/iVec2 (iVec2 v)
operator/iVec2 (int k)
operator/=nil (iVec2 v)
operator/=nil (int k)

iVec2List


MethodPrototype
atiVec2 (int idx)
clearnil ()
push_backnil (iVec2 v)
reservenil (int size)
sizeint ()

JSON

JSON read/write object.

Related functions: GetJsonBool, GetJsonFloat, GetJsonInt, GetJsonString, LoadJsonFromAssets, LoadJsonFromFile, SaveJsonToFile and SetJsonValue.

Joystick


MethodPrototype
Axesnumber (int axis)
AxesCountint ()
ButtonsCountint ()
Connectedboolean ()
ConstructorJoystick ()
ConstructorJoystick (string name)
Disconnectedboolean ()
Downboolean (int btn)
DtAxesnumber (int axis)
GetDeviceNamestring ()
IsConnectedboolean ()
Pressedboolean (int btn)
Releasedboolean (int btn)
Updatenil ()

JoystickState

Related functions: ReadJoystick.


MethodPrototype
Axesnumber (int idx)
Buttonboolean (int btn)
IsConnectedboolean ()

Keyboard

Helper class holding the current and previous device state to enable delta state queries.

Use GetKeyboardNames to query for available keyboard devices.

Related functions: FpsController.


MethodPrototype
ConstructorKeyboard ()
ConstructorKeyboard (string name)
Downboolean (Key key)
GetOldStateKeyboardState ()
GetStateKeyboardState ()
Pressedboolean (Key key)
Releasedboolean (Key key)
Updatenil ()

KeyboardState

Related classes: Keyboard.

Related functions: ImGuiBeginFrame and ReadKeyboard.


MethodPrototype
Keyboolean (Key key)

Light

Add this component to a node to turn it into a light source, see Using the Forward Pipeline.

Related classes: Node and Scene.


MethodPrototype
GetDiffuseColorColor ()
GetDiffuseIntensitynumber ()
GetInnerAnglenumber ()
GetOuterAnglenumber ()
GetPSSMSplitVec4 ()
GetPrioritynumber ()
GetRadiusnumber ()
Get the light range in meters.
GetShadowTypeLightShadowType ()
GetSpecularColorColor ()
GetSpecularIntensitynumber ()
GetTypeLightType ()
Return the LightType.
IsValidboolean ()
SetDiffuseColornil (Color v)
SetDiffuseIntensitynil (number v)
SetInnerAnglenil (number v)
SetOuterAnglenil (number v)
SetPSSMSplitnil (Vec4 v)
SetPrioritynil (number v)
SetRadiusnil (number v)
Set the light range in meters. No light will be contributed to elements further away than this distance from the node world position.
SetShadowTypenil (LightShadowType v)
SetSpecularColornil (Color v)
SetSpecularIntensitynil (number v)
SetTypenil (LightType v)
Set the LightType.
operator==boolean (Light l)

LuaObject

Opaque reference to an Lua object. This type is used to transfer values between VMs, see Scripting.

Related classes: LuaObjectList and SceneLuaVM.

LuaObjectList

Related classes: SceneLuaVM.


MethodPrototype
atLuaObject (int idx)
clearnil ()
push_backnil (LuaObject v)
reservenil (int size)
sizeint ()

Mat3

A 3x3 matrix used to store rotation.

Related classes: Vec2 and iVec2.

Related functions: CrossProductMat3, Det, DrawSprites, GetColumn, GetRMatrix, GetRotationMatrix, GetRow, GetScale, GetTranslation, GetX, GetY, GetZ, Inverse, MakeUniformSetValue, Mat3LookAt, Normalize, Orthonormalize, QuaternionFromMatrix3, RotationMat2D, RotationMat3, RotationMatXYZ, RotationMatXY, RotationMatXZY, RotationMatX, RotationMatYXZ, RotationMatYZX, RotationMatY, RotationMatZXY, RotationMatZYX, RotationMatZ, ScaleMat3, SetAxises, SetColumn, SetMaterialValue, SetRow, SetScale, SetTranslation, SetX, SetY, SetZ, ToEuler, ToMatrix3, TransformationMat4, TranslationMat3, Transpose and VectorMat3.

Mat4

A 3x4 matrix used to store complete transformation including rotation, scale and position.

Related classes: Collision, ForwardPipelineLight, Mat4List, MinMax, Node, OpenVREye, OpenVRState, SceneBullet3Physics, SpatializedSourceState, Transform, VRControllerState, VRController, VRGenericTrackerState, VRGenericTracker and ViewState.

Related functions: ComputeOrthographicViewState, ComputePerspectiveViewState, ComputeSortKeyFromWorld, CreateCamera, CreateInstanceFromAssets, CreateInstanceFromFile, CreateLinearLight, CreateObject, CreateOrthographicCamera, CreatePhysicCube, CreatePhysicSphere, CreatePointLight, CreateSceneRootNode, CreateSpotLight, Decompose, DrawModel, DrawText, GetColumn, GetRMatrix, GetR, GetRotationMatrix, GetRotation, GetRow, GetS, GetScale, GetT, GetTranslation, GetX, GetY, GetZ, InverseFast, Inverse, LerpAsOrthonormalBase, MakeForwardPipelineLinearLight, MakeForwardPipelinePointLight, MakeForwardPipelineSpotLight, MakeFrustum, MakePlane, MakeUniformSetValue, Mat4LookAtUp, Mat4LookAt, Mat4LookTowardUp, Mat4LookToward, OpenVRGetState, Orthonormalize, RotationMat4, ScaleMat4, SetColumn, SetListener, SetMaterialValue, SetRow, SetS, SetScale, SetSourceTransform, SetT, SetTransform, SetTranslation, SetViewOrthographic, SetViewPerspective, SetViewTransform, SetX, SetY, SetZ, SubmitModelToForwardPipeline, TransformFrustum, TransformationMat4 and TranslationMat4.

Mat44

A 4x4 matrix used to store projection matrices.

Related classes: OpenVREye and ViewState.

Related functions: Compute2DProjectionMatrix, ComputeOrthographicProjectionMatrix, ComputePerspectiveProjectionMatrix, ComputeSAO, ExtractZRangeFromOrthographicProjectionMatrix, ExtractZRangeFromPerspectiveProjectionMatrix, ExtractZRangeFromProjectionMatrix, ExtractZoomFactorFromProjectionMatrix, GetColumn, GetRow, Inverse, MakeFrustum, MakeUniformSetValue, ProjectOrthoToClipSpace, ProjectOrthoToScreenSpace, ProjectToClipSpace, ProjectToScreenSpace, ProjectZToClipSpace, SetColumn, SetMaterialValue, SetRow, SetViewTransform, UnprojectFromClipSpace, UnprojectFromScreenSpace, UnprojectOrthoFromClipSpace and UnprojectOrthoFromScreenSpace.

Mat4List

Related functions: DrawModel.


MethodPrototype
atMat4 (int idx)
clearnil ()
push_backnil (Mat4 v)
reservenil (int size)
sizeint ()

Material

High-level description of visual aspects of a surface. A material is comprised of a PipelineProgramRef, per-uniform value or texture, and a RenderState.

See Using the Forward Pipeline and Writing a Pipeline Shader.

Related classes: MaterialList and Object.

Related functions: CreateMaterial, CreateMissingMaterialProgramValuesFromAssets, CreateMissingMaterialProgramValuesFromFile, GetMaterialAlphaCut, GetMaterialAmbientUsesUV1, GetMaterialBlendMode, GetMaterialDepthTest, GetMaterialDiffuseUsesUV1, GetMaterialFaceCulling, GetMaterialNormalMapInWorldSpace, GetMaterialSkinning, GetMaterialSpecularUsesUV1, GetMaterialTexture, GetMaterialTextures, GetMaterialValues, GetMaterialWriteRGBA, GetMaterialWriteZ, SetMaterialAlphaCut, SetMaterialAmbientUsesUV1, SetMaterialBlendMode, SetMaterialDepthTest, SetMaterialDiffuseUsesUV1, SetMaterialFaceCulling, SetMaterialNormalMapInWorldSpace, SetMaterialProgram, SetMaterialSkinning, SetMaterialSpecularUsesUV1, SetMaterialTextureRef, SetMaterialTexture, SetMaterialValue, SetMaterialWriteRGBA, SetMaterialWriteZ and UpdateMaterialPipelineProgramVariant.

MaterialList

Related classes: Scene.

Related functions: CreateObject, CreatePhysicCube and CreatePhysicSphere.


MethodPrototype
atMaterial (int idx)
clearnil ()
push_backnil (Material v)
reservenil (int size)
sizeint ()

MaterialRef

Reference to a Material inside a PipelineResources object.

MinMax

3D bounding volume defined by a minimum and maximum position.

Related classes: Node, Object and Scene.

Related functions: ClassifyLine, ClassifySegment, ComputeMinMaxBoundingSphere, Contains, GetArea, GetCenter, IntersectRay, MinMaxFromPositionSize, Overlap, TestVisibility and Union.


MemberType
mnVec3
mxVec3

MethodPrototype
ConstructorMinMax ()
ConstructorMinMax (Vec3 min, Vec3 max)
operator!=boolean (MinMax minmax)
operator*MinMax (Mat4 m)
operator==boolean (MinMax minmax)

Model

Runtime version of a Geometry. A model can be drawn to screen by calling DrawModel or by assigning it to the Object component of a node.

To programmatically create a model see ModelBuilder.

Related classes: ModelBuilder and PipelineResources.

Related functions: CreateCapsuleModel, CreateConeModel, CreateCubeModel, CreateCylinderModel, CreatePlaneModel, CreateSphereModel, DrawModel, LoadModelFromAssets, LoadModelFromFile and SubmitModelToForwardPipeline.

ModelBuilder

Use the model builder to programmatically build models at runtime.

The input data is optimized upon submission.

Related functions: IsoSurfaceToModel.


MethodPrototype
AddPolygonnil (UInt32List idxs)
AddQuadnil (int a, int b, int c, int d)
AddTrianglenil (int a, int b, int c)
AddVertexint (Vertex vtx)
Add a vertex to the builder database. Use the returned optimized index to submit primitives using methods such as ModelBuilder.AddTriangle.
Clearnil ()
Clear all submitted data up to this point.
ConstructorModelBuilder ()
EndListnil (int material)
End the current primitive list and start a new one.
GetCurrentListIndexCountint ()

Return the number of indexes in the current list.

See ModelBuilder.EndList.

MakeModelModel (VertexLayout decl)
Create a model from all data submitted up to this point.

ModelRef

Reference to a Model inside a PipelineResources object.

See LoadModelFromFile, LoadModelFromAssets and PipelineResources.AddModel.

Related classes: Object, PipelineResources and Scene.

Related functions: CreateObject, CreatePhysicCube and CreatePhysicSphere.

Monitor

Related classes: MonitorList.

Related functions: GetMonitorModes, GetMonitorName, GetMonitorRect, GetMonitorSizeMM, IsMonitorConnected, IsPrimaryMonitor and NewFullscreenWindow.

MonitorList

Related functions: GetMonitors.


MethodPrototype
atMonitor (int idx)
clearnil ()
push_backnil (Monitor v)
reservenil (int size)
sizeint ()

MonitorMode

Related classes: MonitorModeList.


MemberType
frequencyint
namestring
rectIntRect
rotationMonitorRotation
supported_rotationsint

MonitorModeList

Related functions: GetMonitorModes.


MethodPrototype
atMonitorMode (int idx)
clearnil ()
push_backnil (MonitorMode v)
reservenil (int size)
sizeint ()

Mouse

Helper class holding the current and previous device state to enable delta state queries.

Use GetMouseNames to query for available mouse devices.

Related functions: FpsController.


MethodPrototype
ConstructorMouse ()
ConstructorMouse (string name)
Downboolean (int button)
DtXint ()
DtYint ()
GetOldStateMouseState ()
GetStateMouseState ()
HWheelint ()
Pressedboolean (int button)
Releasedboolean (int button)
Updatenil ()
Wheelint ()
Xint ()
Yint ()

MouseState

Related classes: Mouse.

Related functions: ImGuiBeginFrame and ReadMouse.


MethodPrototype
Buttonboolean (MouseButton btn)
HWheelint ()
Wheelint ()
Xint ()
Yint ()

Node

The base element of a scene, see Working with Scene.

Related classes: NodeList, Object, RaycastOut, SceneBullet3Physics, SceneLuaVM, SceneView, Scene and Transform.

Related functions: CreateCamera, CreateInstanceFromAssets, CreateInstanceFromFile, CreateLinearLight, CreateObject, CreateOrthographicCamera, CreatePhysicCube, CreatePhysicSphere, CreatePointLight, CreateSceneRootNode, CreateScript, CreateSpotLight, DuplicateNodeAndChildrenFromAssets, DuplicateNodeAndChildrenFromFile, DuplicateNodeFromAssets, DuplicateNodeFromFile, GetNodePairContacts and GetNodesInContact.


MethodPrototype
ComputeCameraViewStateViewState (Vec2 aspect_ratio)
ComputeWorldMat4 ()
DestroyInstancenil ()
Disablenil ()
Enablenil ()
GetCameraCamera ()
Return the Camera component of the node.
GetCollisionCollision (int slot)
Return the Collision component attached to the Node at the desired slot.
GetCollisionCountint ()
Return the amount of Collision components of a Node.
GetFlagsint ()
GetInstanceInstance ()
Return the Instance component of a Node.
GetInstanceSceneAnimSceneAnimRef (string path)
GetInstanceSceneViewSceneView ()
GetLightLight ()
Return the Light component of the node.
GetMinMaxboolean, MinMax (PipelineResources resources)
GetNamestring ()
Return the node name.
GetObjectObject ()
Return Object component of the node.
GetRigidBodyRigidBody ()
Return the RigidBody component of a Node.
GetScriptScript (int idx)
GetScriptCountint ()
GetTransformTransform ()
Return the Transform component of the node.
GetUidint ()
Return the unique ID.
GetWorldMat4 ()
HasCameraboolean ()
Return true if the Node has a Camera component.
HasInstanceboolean ()
Return true if the Node has an Instance component.
HasLightboolean ()
Return true if the Node has a Light component.
HasObjectboolean ()
Return true if the Node has an Object (a geometry) component.
HasRigidBodyboolean ()
Return true if the Node has a RigidBody component.
HasTransformboolean ()
Return true if the Node has a Transform component.
IsEnabledboolean ()
IsInstantiatedByNode ()
IsItselfEnabledboolean ()
IsValidboolean ()
Return true if the Node still exist.
RemoveCameranil ()
Remove the Camera component from the Node.
RemoveCollisionnil (Collision c)
Remove the Collision component attached to the slot of the Node.
RemoveCollisionnil (int slot)
Remove the Collision component attached to the slot of the Node.
RemoveLightnil ()
Remove the Light component from the Node.
RemoveObjectnil ()
Remove the Object component from the Node.
RemoveRigidBodynil ()
Remove the RigidBody component from the Node.
RemoveScriptnil (Script s)
RemoveScriptnil (int slot)
RemoveTransformnil ()
Remove the Transform component from the Node.
SetCameranil (Camera c)
Set the Camera component of a node. See Scene.CreateCamera.
SetCollisionnil (int slot, Collision c)
Set the Collision component of a Node at the desired slot. This is how you combine several collision shapes on a single node.
SetFlagsnil (int flags)
SetInstancenil (Instance instance)
Set the Instance component of a Node.
SetLightnil (Light l)
SetNamenil (string name)
Set the node name.
SetObjectnil (Object o)

Set the Object component of a node.

See Scene.CreateObject.

SetRigidBodynil (RigidBody b)
Set the RigidBody component of a node.
SetScriptnil (int idx, Script s)
SetTransformnil (Transform t)

Set the Transform component of a node.

See Scene.CreateTransform.

SetWorldnil (Mat4 world)
SetupInstanceFromAssetsboolean (PipelineResources resources, PipelineInfo pipeline)
SetupInstanceFromAssetsboolean (PipelineResources resources, PipelineInfo pipeline, LoadSaveSceneFlags flags)
SetupInstanceFromFileboolean (PipelineResources resources, PipelineInfo pipeline)
SetupInstanceFromFileboolean (PipelineResources resources, PipelineInfo pipeline, LoadSaveSceneFlags flags)
StartOnInstantiateAnimnil ()
StopOnInstantiateAnimnil ()
operator==boolean (Node n)
Return true if both objects point to the same node instance, false otherwise.

NodeList

Related classes: SceneView and Scene.

Related functions: DuplicateNodeAndChildrenFromAssets, DuplicateNodeAndChildrenFromFile, DuplicateNodesAndChildrenFromAssets, DuplicateNodesAndChildrenFromFile, DuplicateNodesFromAssets, DuplicateNodesFromFile and GetNodesInContact.


MethodPrototype
atNode (int idx)
clearnil ()
push_backnil (Node v)
reservenil (int size)
sizeint ()

NodePairContacts

Related classes: SceneBullet3Physics.

Related functions: GetNodePairContacts, GetNodesInContact and SceneUpdateSystems.

Object

This components draws a Model. It stores the material table used to draw the model.

Related classes: Node and Scene.


MethodPrototype
ClearModelRefnil ()
GetBoneNode (int idx)
GetBoneCountint ()
GetMaterialMaterial (int slot_idx)
Return the object Material at index.
GetMaterialMaterial (string name)
Return the object Material at index.
GetMaterialCountint ()
Return the number of Material in the object material table.
GetMaterialNamestring (int slot_idx)
GetMinMaxboolean, MinMax (PipelineResources resources)
GetModelRefModelRef ()
Return the ModelRef to display.
IsValidboolean ()
SetBoneboolean (int idx, Node node)
SetBoneCountnil (int count)
SetMaterialnil (int slot_idx, Material mat)
Set the object Material at index.
SetMaterialCountnil (int count)
Set the number of Material in the object material table.
SetMaterialNamenil (int slot_idx, string name)
SetModelRefnil (ModelRef r)
Set the ModelRef to display.
operator==boolean (Object o)

OpenVREye

Matrices for a VR eye, see OpenVRState.

Related classes: OpenVRState.


MemberType
offsetMat4
projectionMat44

OpenVREyeFrameBuffer

Framebuffer for a VR eye. Render to two such buffer, one for each eye, before submitting them using OpenVRSubmitFrame.

Related functions: OpenVRCreateEyeFrameBuffer, OpenVRDestroyEyeFrameBuffer, OpenVRGetColorTexture, OpenVRGetDepthTexture and OpenVRSubmitFrame.


MethodPrototype
GetHandleFrameBufferHandle ()

OpenVRState

OpenVR state including the body and head transformations, the left and right eye states and the render target dimensions expected by the backend.

Related functions: OpenVRGetState and OpenVRStateToViewState.


MemberType
bodyMat4
headMat4
heightint
inv_headMat4
leftOpenVREye
rightOpenVREye
widthint

Picture

The picture origin (0, 0) is in the top-left corner of its frame with the X and Y axises increasing toward the right and bottom.

To load and save a picture use LoadPicture, LoadPNG or SavePNG.

The Picture.SetData and Picture.GetData methods can be used to transfer data to and from a picture object.

Related functions: CaptureTexture, CreateTextureFromPicture, LoadBMP, LoadGIF, LoadJPG, LoadPNG, LoadPSD, LoadPicture, LoadTGA, SaveBMP, SavePNG, SaveTGA and UpdateTextureFromPicture.


MethodPrototype
ConstructorPicture ()
ConstructorPicture (Picture picture)
ConstructorPicture (int width, int height, PictureFormat format)
ConstructorPicture (VoidPointer data, int width, int height, PictureFormat format)
CopyDatanil (VoidPointer data, int width, int height, PictureFormat format)
GetDatapointer ()
GetFormatPictureFormat ()
GetHeightint ()
Return the picture height.
GetPixelRGBAColor (int x, int y)
GetWidthint ()
Return the picture width.
SetDatanil (VoidPointer data, int width, int height, PictureFormat format)
SetPixelRGBAnil (int x, int y, Color col)

Pipeline

Rendering pipeline base class.

Related functions: Cast_Pipeline_To_ForwardPipeline.

PipelineInfo

Related classes: Node.

Related functions: CreateInstanceFromAssets, CreateInstanceFromFile, DuplicateNodeAndChildrenFromAssets, DuplicateNodeAndChildrenFromFile, DuplicateNodeFromAssets, DuplicateNodeFromFile, DuplicateNodesAndChildrenFromAssets, DuplicateNodesAndChildrenFromFile, DuplicateNodesFromAssets, DuplicateNodesFromFile, GetForwardPipelineInfo, LoadPipelineProgramFromAssets, LoadPipelineProgramFromFile, LoadPipelineProgramRefFromAssets, LoadPipelineProgramRefFromFile, LoadSceneBinaryFromAssets, LoadSceneBinaryFromDataAndAssets, LoadSceneBinaryFromDataAndFile, LoadSceneBinaryFromFile, LoadSceneFromAssets, LoadSceneFromFile, LoadSceneJsonFromAssets and LoadSceneJsonFromFile.


MemberType
namestring

PipelineProgram

Related classes: PipelineResources.

Related functions: LoadPipelineProgramFromAssets, LoadPipelineProgramFromFile and SubmitModelToForwardPipeline.

PipelineProgramRef

Related classes: PipelineResources.

Related functions: CreateMaterial, LoadPipelineProgramRefFromAssets, LoadPipelineProgramRefFromFile and SetMaterialProgram.

PipelineResources

Related classes: Node, Object and Scene.

Related functions: CaptureTexture, CreateInstanceFromAssets, CreateInstanceFromFile, CreateMissingMaterialProgramValuesFromAssets, CreateMissingMaterialProgramValuesFromFile, DuplicateNodeAndChildrenFromAssets, DuplicateNodeAndChildrenFromFile, DuplicateNodeFromAssets, DuplicateNodeFromFile, DuplicateNodesAndChildrenFromAssets, DuplicateNodesAndChildrenFromFile, DuplicateNodesFromAssets, DuplicateNodesFromFile, LoadPipelineProgramFromAssets, LoadPipelineProgramFromFile, LoadPipelineProgramRefFromAssets, LoadPipelineProgramRefFromFile, LoadSceneBinaryFromAssets, LoadSceneBinaryFromDataAndAssets, LoadSceneBinaryFromDataAndFile, LoadSceneBinaryFromFile, LoadSceneFromAssets, LoadSceneFromFile, LoadSceneJsonFromAssets, LoadSceneJsonFromFile, LoadTextureFromAssets, LoadTextureFromFile, PrepareSceneForwardPipelineCommonRenderData, PrepareSceneForwardPipelineViewDependentRenderData, ProcessLoadQueues, ProcessModelLoadQueue, ProcessTextureLoadQueue, SaveSceneBinaryToData, SaveSceneBinaryToFile, SaveSceneJsonToFile, SubmitSceneToForwardPipeline, SubmitSceneToPipeline and UpdateMaterialPipelineProgramVariant.


MethodPrototype
AddModelModelRef (string name, Model mdl)
AddProgramPipelineProgramRef (string name, PipelineProgram prg)
AddTextureTextureRef (string name, Texture tex)
ConstructorPipelineResources ()
DestroyAllModelsnil ()
DestroyAllProgramsnil ()
DestroyAllTexturesnil ()
DestroyModelnil (ModelRef ref)
DestroyProgramnil (PipelineProgramRef ref)
DestroyTexturenil (TextureRef ref)
GetModelModel (ModelRef ref)
GetModelNamestring (ModelRef ref)
GetProgramPipelineProgram (PipelineProgramRef ref)
GetProgramNamestring (PipelineProgramRef ref)
GetTextureTexture (TextureRef ref)
GetTextureInfoTextureInfo (TextureRef ref)
GetTextureNamestring (TextureRef ref)
HasModelModelRef (string name)
HasProgramPipelineProgramRef (string name)
HasTextureTextureRef (string name)
HasTextureInfoboolean (TextureRef ref)
UpdateModelnil (ModelRef ref, Model mdl)
UpdateProgramnil (PipelineProgramRef ref, PipelineProgram prg)
UpdateTexturenil (TextureRef ref, Texture tex)

ProfilerFrame

Related functions: CaptureProfilerFrame, EndProfilerFrame and PrintProfilerFrame.

ProgramHandle

Handle to a shader program.

Related classes: SceneBullet3Physics.

Related functions: DestroyProgram, DrawLines, DrawModel, DrawSprites, DrawText, DrawTriangles, ImGuiInitContext, ImGuiInit, LoadProgramFromAssets and LoadProgramFromFile.

Quaternion

Quaternion can be used to represent a 3d rotation. It provides a more compact representation of the rotation than Mat3 and can efficiently and correctly interpolate (see Slerp) between two rotations.

Related functions: Dist, Inverse, Len2, Len, Normalize, QuaternionFromAxisAngle, QuaternionFromEuler, QuaternionFromMatrix3, QuaternionLookAt, Slerp, ToEuler and ToMatrix3.


MemberType
wnumber
xnumber
ynumber
znumber

MethodPrototype
ConstructorQuaternion ()
ConstructorQuaternion (number x, number y, number z, number w)
ConstructorQuaternion (Quaternion q)
operator*Quaternion (number v)
operator*Quaternion (Quaternion q)
operator*=nil (number v)
operator*=nil (Quaternion q)
operator+Quaternion (number v)
operator+Quaternion (Quaternion q)
operator+=nil (number v)
operator+=nil (Quaternion q)
operator-Quaternion (number v)
operator-Quaternion (Quaternion q)
operator-=nil (number v)
operator-=nil (Quaternion q)
operator/Quaternion (number v)
operator/=nil (number v)

RaycastOut

Contains the result of a physics raycast.

  • P: Position of the raycast hit
  • N: Normal of the raycast hit
  • Node: Node hit by the raycast
  • t: Parametric value of the intersection, ratio of the distance to the hit by the length of the raycast

Related classes: RaycastOutList and SceneBullet3Physics.


MemberType
NVec3
PVec3
nodeNode
tnumber

RaycastOutList

Related classes: SceneBullet3Physics.


MethodPrototype
atRaycastOut (int idx)
clearnil ()
push_backnil (RaycastOut v)
reservenil (int size)
sizeint ()

Rect

Related functions: ComputeTextRect, Crop, FitsInside, GetHeight, GetSize, GetWidth, GetX, GetY, Grow, Inside, Intersection, Intersects, MakeRectFromWidthHeight, Offset, SetHeight, SetWidth, SetX, SetY, ToFloatRect and ToIntRect.


MemberType
exnumber
eynumber
sxnumber
synumber

MethodPrototype
ConstructorRect ()
ConstructorRect (number x, number y)
ConstructorRect (number sx, number sy, number ex, number ey)
ConstructorRect (Rect rect)

RenderState

Related classes: SceneBullet3Physics.

Related functions: ComputeRenderState, DrawLines, DrawModel, DrawSprites, DrawText and DrawTriangles.

RigidBody

Rigid body component, see Physics.

Related classes: Node and Scene.


MethodPrototype
GetAngularDampingnumber ()
Return the rigid body angular damping. A value of 0.0 means no damping, 1.0 means the maximal dissipation of the energy.
GetFrictionnumber ()
GetLinearDampingnumber ()
GetRestitutionnumber ()
GetRollingFrictionnumber ()
GetTypeRigidBodyType ()
Return the rigid body type. See RigidBody.SetType.
IsValidboolean ()
SetAngularDampingnil (number damping)
Set the rigid body angular damping. A value of 0.0 means no damping, 1.0 means the maximal dissipation of the energy.
SetFrictionnil (number friction)
SetLinearDampingnil (number damping)
SetRestitutionnil (number restitution)
SetRollingFrictionnil (number rolling_friction)
SetTypenil (RigidBodyType type)
Set the rigid body type.
operator==boolean (RigidBody b)

SAO

Ambient occlusion post-process object holding internal states and resources.

Create with CreateSAOFromFile or CreateSAOFromAssets, use with ComputeSAO, finally call DestroySAO to dispose of resources when done.

Related functions: ComputeSAO, CreateSAOFromAssets, CreateSAOFromFile and DestroySAO.

SRanipalEyeState

Related classes: SRanipalState.


MemberType
eye_opennessnumber
gaze_direction_normalizedVec3
gaze_origin_mmVec3
pupil_diameter_mmnumber
pupil_diameter_validboolean

SRanipalState

Related functions: SRanipalGetState.


MemberType
left_eyeSRanipalEyeState
right_eyeSRanipalEyeState

Scene

A scene object representing a world populated with Node, see Working with Scene.

Related classes: SceneBullet3Physics, SceneLuaVM and SceneView.

Related functions: CreateCamera, CreateInstanceFromAssets, CreateInstanceFromFile, CreateLinearLight, CreateObject, CreateOrthographicCamera, CreatePhysicCube, CreatePhysicSphere, CreatePointLight, CreateSceneRootNode, CreateScript, CreateSpotLight, DebugSceneExplorer, DuplicateNodeAndChildrenFromAssets, DuplicateNodeAndChildrenFromFile, DuplicateNodeFromAssets, DuplicateNodeFromFile, DuplicateNodesAndChildrenFromAssets, DuplicateNodesAndChildrenFromFile, DuplicateNodesFromAssets, DuplicateNodesFromFile, GetNodesInContact, GetSceneForwardPipelineFog, GetSceneForwardPipelineLights, LoadSceneBinaryFromAssets, LoadSceneBinaryFromDataAndAssets, LoadSceneBinaryFromDataAndFile, LoadSceneBinaryFromFile, LoadSceneFromAssets, LoadSceneFromFile, LoadSceneJsonFromAssets, LoadSceneJsonFromFile, PrepareSceneForwardPipelineCommonRenderData, PrepareSceneForwardPipelineViewDependentRenderData, SaveSceneBinaryToData, SaveSceneBinaryToFile, SaveSceneJsonToFile, SceneClearSystems, SceneGarbageCollectSystems, SceneSyncToSystemsFromAssets, SceneSyncToSystemsFromFile, SceneUpdateSystems, SubmitSceneToForwardPipeline and SubmitSceneToPipeline.


MemberType
canvasCanvas
environmentEnvironment

MethodPrototype
Clearnil ()
Remove all nodes from the scene.
ComputeCurrentCameraViewStateViewState (Vec2 aspect_ratio)
ComputeWorldMatricesnil ()
ConstructorScene ()
CreateCameraCamera ()
CreateCameraCamera (number znear, number zfar)
CreateCameraCamera (number znear, number zfar, number fov)
CreateCollisionCollision ()
CreateInstanceInstance ()
CreateLightLight ()
CreateLinearLightLight (Color diffuse, number diffuse_intensity, Color specular, number specular_intensity)
CreateLinearLightLight (Color diffuse, number diffuse_intensity, Color specular, number specular_intensity, number priority)
CreateLinearLightLight (Color diffuse, number diffuse_intensity, Color specular, number specular_intensity, number priority, LightShadowType shadow_type)
CreateLinearLightLight (Color diffuse, number diffuse_intensity, Color specular, number specular_intensity, number priority, LightShadowType shadow_type, number shadow_bias)
CreateLinearLightLight (Color diffuse, number diffuse_intensity, Color specular, number specular_intensity, number priority, LightShadowType shadow_type, number shadow_bias, Vec4 pssm_split)
CreateLinearLightLight (Color diffuse, Color specular)
CreateLinearLightLight (Color diffuse, Color specular, number priority)
CreateLinearLightLight (Color diffuse, Color specular, number priority, LightShadowType shadow_type)
CreateLinearLightLight (Color diffuse, Color specular, number priority, LightShadowType shadow_type, number shadow_bias)
CreateLinearLightLight (Color diffuse, Color specular, number priority, LightShadowType shadow_type, number shadow_bias, Vec4 pssm_split)
CreateNodeNode ()
Create a Node in the scene.
CreateNodeNode (string name)
Create a Node in the scene.
CreateObjectObject ()
CreateObjectObject (ModelRef model, MaterialList materials)
CreateOrthographicCameraCamera (number znear, number zfar)
CreateOrthographicCameraCamera (number znear, number zfar, number size)
CreatePointLightLight (number radius, Color diffuse, number diffuse_intensity, Color specular, number specular_intensity)
CreatePointLightLight (number radius, Color diffuse, number diffuse_intensity, Color specular, number specular_intensity, number priority)
CreatePointLightLight (number radius, Color diffuse, number diffuse_intensity, Color specular, number specular_intensity, number priority, LightShadowType shadow_type)
CreatePointLightLight (number radius, Color diffuse, number diffuse_intensity, Color specular, number specular_intensity, number priority, LightShadowType shadow_type, number shadow_bias)
CreatePointLightLight (number radius, Color diffuse, Color specular)
CreatePointLightLight (number radius, Color diffuse, Color specular, number priority)
CreatePointLightLight (number radius, Color diffuse, Color specular, number priority, LightShadowType shadow_type)
CreatePointLightLight (number radius, Color diffuse, Color specular, number priority, LightShadowType shadow_type, number shadow_bias)
CreateRigidBodyRigidBody ()
CreateScriptScript ()
CreateScriptScript (string path)
CreateSpotLightLight (number radius, number inner_angle, number outer_angle, Color diffuse, number diffuse_intensity, Color specular, number specular_intensity)
CreateSpotLightLight (number radius, number inner_angle, number outer_angle, Color diffuse, number diffuse_intensity, Color specular, number specular_intensity, number priority)
CreateSpotLightLight (number radius, number inner_angle, number outer_angle, Color diffuse, number diffuse_intensity, Color specular, number specular_intensity, number priority, LightShadowType shadow_type)
CreateSpotLightLight (number radius, number inner_angle, number outer_angle, Color diffuse, number diffuse_intensity, Color specular, number specular_intensity, number priority, LightShadowType shadow_type, number shadow_bias)
CreateSpotLightLight (number radius, number inner_angle, number outer_angle, Color diffuse, Color specular)
CreateSpotLightLight (number radius, number inner_angle, number outer_angle, Color diffuse, Color specular, number priority)
CreateSpotLightLight (number radius, number inner_angle, number outer_angle, Color diffuse, Color specular, number priority, LightShadowType shadow_type)
CreateSpotLightLight (number radius, number inner_angle, number outer_angle, Color diffuse, Color specular, number priority, LightShadowType shadow_type, number shadow_bias)
CreateTransformTransform ()
CreateTransformTransform (Vec3 T)
CreateTransformTransform (Vec3 T, Vec3 R)
CreateTransformTransform (Vec3 T, Vec3 R, Vec3 S)
DestroyCameranil (Camera camera)
DestroyCollisionnil (Collision collision)
DestroyInstancenil (Instance Instance)
DestroyLightnil (Light light)
DestroyNodenil (Node node)
Remove a Node from the scene.
DestroyObjectnil (Object object)
DestroyRigidBodynil (RigidBody rigid_body)
DestroyScriptnil (Script script)
DestroyTransformnil (Transform transform)
GarbageCollectint ()
Destroy any unreferenced components in the scene.
GetAllNodeCountint ()
Return the total number of nodes in the scene including instantiated ones. To exclude those, use Scene.GetNodeCount.
GetAllNodesNodeList ()
GetAllNodesWithComponentNodeList (NodeComponentIdx idx)
GetCurrentCameraNode ()
Get the current camera.
GetKeysStringList ()
GetMinMaxboolean, MinMax (PipelineResources resources)
GetNodeNode (string name)
Get a node by name. For more complex queries see Scene.GetNodeEx.
GetNodeChildrenNodeList (Node node)
Return all children for a given node.
GetNodeCountint ()
Return the number of nodes in the scene excluding instantiated ones. To include those, use Scene.GetAllNodeCount.
GetNodeExNode (string path)

Get a node by its absolute path in the node hierarchy.

A node path is constructed as follow:

  • Nodes are refered to by their name.
  • To address the child of a node, use the / delimiter between its parent name and the child name.
  • To address a node inside an instance component, use the : delimiter.
  • There is no limit on the number of delimiters you can use.

Examples:

Get the node named child parented to the root node.

child = scene.GetNodeEx('root/child')

Get the node named dummy instantiated by the root node.

dummy = my_scene.GetNodeEx('root:dummy')
GetNodesNodeList ()
Return all nodes in scene.
GetNodesWithComponentNodeList (NodeComponentIdx idx)
GetPlayingAnimNamesStringList ()
GetPlayingAnimRefsScenePlayAnimRefList ()
GetSceneAnimSceneAnimRef (string name)
GetSceneAnimsSceneAnimRefList ()
GetScriptScript (int slot_idx)
GetScriptCountint ()
GetValuestring (string key)
HasKeyboolean (string key)
IsChildOfboolean (Node node, Node parent)
IsPlayingboolean (ScenePlayAnimRef ref)
IsRootboolean (Node node)
PlayAnimScenePlayAnimRef (SceneAnimRef ref)
PlayAnimScenePlayAnimRef (SceneAnimRef ref, AnimLoopMode loop_mode)
PlayAnimScenePlayAnimRef (SceneAnimRef ref, AnimLoopMode loop_mode, Easing easing)
PlayAnimScenePlayAnimRef (SceneAnimRef ref, AnimLoopMode loop_mode, Easing easing, int t_start)
PlayAnimScenePlayAnimRef (SceneAnimRef ref, AnimLoopMode loop_mode, Easing easing, int t_start, int t_end)
PlayAnimScenePlayAnimRef (SceneAnimRef ref, AnimLoopMode loop_mode, Easing easing, int t_start, int t_end, boolean paused)
PlayAnimScenePlayAnimRef (SceneAnimRef ref, AnimLoopMode loop_mode, Easing easing, int t_start, int t_end, boolean paused, number t_scale)
ReadyWorldMatricesnil ()
RemoveKeynil (string key)
ReserveCamerasnil (int count)
ReserveLightsnil (int count)
Allocates internal storage for the required number of Light components in one go.
ReserveNodesnil (int count)
Allocates internal storage for the required number of nodes in one go.
ReserveObjectsnil (int count)
Allocates internal storage for the required number of Object components in one go.
ReserveScriptsnil (int count)
ReserveTransformsnil (int count)
Allocates internal storage for the required number of Transform components in one go.
SetCurrentCameranil (Node camera)
Set the current camera.
SetScriptnil (int slot_idx, Script script)
SetValuenil (string key, string value)
StopAllAnimsnil ()
StopAnimnil (ScenePlayAnimRef ref)
Updatenil (int dt)
Start the Update phase of the scene.
UpdatePlayingAnimsnil (int dt)

SceneAnimRef

Reference to a scene animation.

Related classes: Node, SceneAnimRefList and Scene.

SceneAnimRefList

Related classes: Scene.


MethodPrototype
atSceneAnimRef (int idx)
clearnil ()
push_backnil (SceneAnimRef v)
reservenil (int size)
sizeint ()

SceneBullet3Physics

Newton physics for scene physics and collision components.

See Physics.

Related functions: SceneClearSystems, SceneGarbageCollectSystems, SceneSyncToSystemsFromAssets, SceneSyncToSystemsFromFile and SceneUpdateSystems.


MethodPrototype
Clearnil ()
ClearNodesnil ()
CollectCollisionEventsnil (Scene scene, NodePairContacts node_pair_contacts)
ConstructorSceneBullet3Physics ()
ConstructorSceneBullet3Physics (int thread_count)
GarbageCollectint (Scene scene)
GarbageCollectResourcesint ()
NodeAddForcenil (Node node, Vec3 F)
NodeAddForcenil (Node node, Vec3 F, Vec3 world_pos)
NodeAddImpulsenil (Node node, Vec3 dt_velocity)
NodeAddImpulsenil (Node node, Vec3 dt_velocity, Vec3 world_pos)
NodeAddTorquenil (Node node, Vec3 T)
NodeAddTorqueImpulsenil (Node node, Vec3 dt_angular_velocity)
NodeCollideWorldNodePairContacts (Node node, Mat4 world)
NodeCollideWorldNodePairContacts (Node node, Mat4 world, int max_contact)
NodeCreatePhysicsFromAssetsnil (Node node)
NodeCreatePhysicsFromFilenil (Node node)
NodeDestroyPhysicsnil (Node node)
NodeGetAngularFactorVec3 (Node node)
NodeGetAngularVelocityVec3 (Node node)
NodeGetDeactivationboolean (Node node)
NodeGetLinearFactorVec3 (Node node)
NodeGetLinearVelocityVec3 (Node node)
NodeGetPointVelocityVec3 (Node node, Vec3 world_pos)
NodeHasBodyboolean (Node node)
NodeResetWorldnil (Node node, Mat4 world)
NodeSetAngularFactornil (Node node, Vec3 k)
NodeSetAngularVelocitynil (Node node, Vec3 W)
NodeSetDeactivationnil (Node node, boolean enable)
NodeSetLinearFactornil (Node node, Vec3 k)
NodeSetLinearVelocitynil (Node node, Vec3 V)
NodeStartTrackingCollisionEventsnil (Node node)
NodeStartTrackingCollisionEventsnil (Node node, CollisionEventTrackingMode mode)
NodeStopTrackingCollisionEventsnil (Node node)
NodeTeleportnil (Node node, Mat4 world)
NodeWakenil (Node node)
RaycastAllHitsRaycastOutList (Scene scene, Vec3 p0, Vec3 p1)
RaycastFirstHitRaycastOut (Scene scene, Vec3 p0, Vec3 p1)
RenderCollisionnil (int view_id, VertexLayout vtx_layout, ProgramHandle prg, RenderState render_state, int depth)
SceneCreatePhysicsFromAssetsnil (Scene scene)
SceneCreatePhysicsFromFilenil (Scene scene)
StepSimulationnil (int display_dt)
StepSimulationnil (int display_dt, int step_dt)
StepSimulationnil (int display_dt, int step_dt, int max_step)
SyncTransformsFromScenenil (Scene scene)
SyncTransformsToScenenil (Scene scene)

SceneClocks

Holds clocks for the different scene systems.

This is required as some system such as the physics system may run at a different rate than the scene.

Related functions: SceneUpdateSystems.

SceneForwardPipelinePassViewId

Related functions: GetSceneForwardPipelinePassViewId, PrepareSceneForwardPipelineCommonRenderData, PrepareSceneForwardPipelineViewDependentRenderData, SubmitSceneToForwardPipeline and SubmitSceneToPipeline.

SceneForwardPipelineRenderData

Holds all data required to draw a scene with the forward pipeline.

See Using the Forward Pipeline.

Related functions: PrepareSceneForwardPipelineCommonRenderData, PrepareSceneForwardPipelineViewDependentRenderData and SubmitSceneToForwardPipeline.

SceneLuaVM

Lua VM for scene script components.

See Scripting.

Related functions: SceneClearSystems, SceneGarbageCollectSystems, SceneSyncToSystemsFromAssets, SceneSyncToSystemsFromFile and SceneUpdateSystems.


MethodPrototype
Callboolean, LuaObjectList (Script script, string function, LuaObjectList args)
ConstructorSceneLuaVM ()
CreateNodeScriptsFromAssetsScriptList (Scene scene, Node node)
CreateNodeScriptsFromFileScriptList (Scene scene, Node node)
CreateScriptFromAssetsboolean (Scene scene, Script script)
CreateScriptFromFileboolean (Scene scene, Script script)
CreateScriptFromSourceboolean (Scene scene, Script script, string src)
DestroyScriptsnil (ScriptList scripts)
GarbageCollectScriptList (Scene scene)
GetScriptCountint ()
GetScriptEnvLuaObject (Script script)
GetScriptInterfaceStringList (Script script)
GetScriptValueLuaObject (Script script, string name)
MakeLuaObjectLuaObject ()
SceneCreateScriptsFromAssetsScriptList (Scene scene)
SceneCreateScriptsFromFileScriptList (Scene scene)
SetScriptValueboolean (Script script, string name, LuaObject value)

ScenePlayAnimRef

Reference to a playing scene animation.

Related classes: Instance, ScenePlayAnimRefList and Scene.

ScenePlayAnimRefList

Related classes: Scene.


MethodPrototype
atScenePlayAnimRef (int idx)
clearnil ()
push_backnil (ScenePlayAnimRef v)
reservenil (int size)
sizeint ()

SceneView

Holds a view to a subset of a scene. Used by the instance system to track instantiated scene content.

See Node.GetInstanceSceneView and Working with Scene.

Related classes: Node.


MethodPrototype
GetNodeNode (Scene scene, string name)

Find a node by name in the view. Pass the host scene as the scene parameter.

See Working with Scene.

GetNodesNodeList (Scene scene)

Return all nodes in the view. Pass the host scene as the scene parameter.

See Working with Scene.

Script

Related classes: Node, SceneLuaVM, Scene and ScriptList.


MethodPrototype
GetPathstring ()
IsValidboolean ()
SetPathnil (string path)
operator==boolean (Script s)

ScriptList

Related classes: SceneLuaVM.


MethodPrototype
atScript (int idx)
clearnil ()
push_backnil (Script v)
reservenil (int size)
sizeint ()

SetDrawStatesCallback

Signal_returning_void_taking_const_char_ptr


MethodPrototype
ConnectTextInputCallbackConnection (TextInputCallback listener)
Disconnectnil (TextInputCallbackConnection connection)
DisconnectAllnil ()
Emitnil (string arg0)
GetListenerCountint ()

Signal_returning_void_taking_time_ns


MethodPrototype
ConnectTimeCallbackConnection (TimeCallback listener)
Disconnectnil (TimeCallbackConnection connection)
DisconnectAllnil ()
Emitnil (int arg0)
GetListenerCountint ()

SpatializedSourceState

State for a spatialized audio source, see Playing Audio.

Related functions: PlaySpatialized, StreamOGGAssetSpatialized, StreamOGGFileSpatialized, StreamWAVAssetSpatialized and StreamWAVFileSpatialized.


MemberType
mtxMat4
repeatSourceRepeat
velVec3
volumenumber

MethodPrototype
ConstructorSpatializedSourceState ()
ConstructorSpatializedSourceState (Mat4 mtx)
ConstructorSpatializedSourceState (Mat4 mtx, number volume)
ConstructorSpatializedSourceState (Mat4 mtx, number volume, SourceRepeat repeat)
ConstructorSpatializedSourceState (Mat4 mtx, number volume, SourceRepeat repeat, Vec3 vel)

StereoSourceState

State for a stereo audio source, see Playing Audio.

Related functions: PlayStereo, StreamOGGAssetStereo, StreamOGGFileStereo, StreamWAVAssetStereo and StreamWAVFileStereo.


MemberType
panningnumber
repeatSourceRepeat
volumenumber

MethodPrototype
ConstructorStereoSourceState ()
ConstructorStereoSourceState (number volume)
ConstructorStereoSourceState (number volume, SourceRepeat repeat)
ConstructorStereoSourceState (number volume, SourceRepeat repeat, number panning)

StringList

Related classes: SceneLuaVM and Scene.

Related functions: GetGamepadNames, GetJoystickDeviceNames, GetJoystickNames, GetKeyboardNames, GetMaterialTextures, GetMaterialValues, GetMouseNames, GetVRControllerNames, GetVRGenericTrackerNames, ImGuiCombo, ImGuiListBox and PathJoin.


MethodPrototype
atstring (int idx)
clearnil ()
push_backnil (string v)
reservenil (int size)
sizeint ()

TextInputCallback

Related classes: Signal_returning_void_taking_const_char_ptr.

TextInputCallbackConnection

Related classes: Signal_returning_void_taking_const_char_ptr.

Texture

Related classes: ImDrawList and PipelineResources.

Related functions: ApplyBloom, ComputeSAO, CreateFrameBuffer, CreateTextureFromPicture, CreateTexture, DestroyTexture, GetColorTexture, GetDepthTexture, GetTextures, ImGuiImageButton, ImGuiImage, IsValid, LoadTextureFromAssets, LoadTextureFromFile, MakeUniformSetTexture, OpenVRGetColorTexture, OpenVRGetDepthTexture, UpdateTextureFromPicture and UpdateTexture.

TextureInfo

Related classes: PipelineResources.

Related functions: LoadTextureFromAssets and LoadTextureFromFile.


MemberType
bitsPerPixelint
cubeMapboolean
depthint
formatTextureFormat
heightint
numLayersint
numMipsint
storageSizeint
widthint

TextureRef

Related classes: Environment and PipelineResources.

Related functions: CaptureTexture, GetMaterialTexture, LoadTextureFromAssets, LoadTextureFromFile, SetMaterialTextureRef and SetMaterialTexture.

TimeCallback

A function taking a time value as parameter with no return value, see Coordinates and Units System.

Related classes: Signal_returning_void_taking_time_ns.

TimeCallbackConnection

A TimeCallback connection to a Signal_returning_void_taking_time_ns.

Related classes: Signal_returning_void_taking_time_ns.

Transform

Transformation component for a Node, see Working with Scene.

Related classes: Node and Scene.


MethodPrototype
ClearParentnil ()
GetParentNode ()
Return the parent node for this Transform.
GetPosVec3 ()

Return the transform position.

If you want the visual position of a Node with a rigid body, use GetT on Transform.GetWorld. See Physics.

GetPosRotVec3, Vec3 ()
GetRotVec3 ()
Get the transform rotation. If you want the visual rotation of a Node with a rigid body, use GetRotation on the matrix returned by Transform.GetWorld. See Physics.
GetScaleVec3 ()
Get the transform scale.
GetTRSTransformTRS ()
Return the TransformTRS.
GetWorldMat4 ()
Return the world matrix.
IsValidboolean ()
SetLocalnil (Mat4 local)
SetParentnil (Node n)
Set the parent node for this transform. This transform will then inherit the transformation of its parent node’s Transform component.
SetPosnil (Vec3 T)

Set the transform position.

When the Node has a RigidBody component, Transform.SetPos is overrided by physics. See Physics.

SetPosRotnil (Vec3 pos, Vec3 rot)
SetRotnil (Vec3 R)

Set the transform rotation from a vector of Euler angles.

When the Node has a RigidBody component, Transform.SetRot is overrided by physics. See Physics.

SetScalenil (Vec3 S)
Set the transform scale.
SetTRSnil (TransformTRS TRS)
Set the TransformTRS.
SetWorldnil (Mat4 world)

Set the world matrix.

When the Node has a RigidBody component, SetWorld is overrided by physics.

operator==boolean (Transform t)

TransformTRS

Translation, rotation and scale packed as a single object.

Related classes: Transform.


MemberType
posVec3
rotVec3
sclVec3

MethodPrototype
ConstructorTransformTRS ()

UInt16List

Related functions: DrawLines and DrawTriangles.


MethodPrototype
atint (int idx)
clearnil ()
push_backnil (int v)
reservenil (int size)
sizeint ()

UInt32List

Related classes: GeometryBuilder and ModelBuilder.


MethodPrototype
atint (int idx)
clearnil ()
push_backnil (int v)
reservenil (int size)
sizeint ()

UniformSetTexture

Command object to set a uniform texture at draw time.

Related classes: UniformSetTextureList.

Related functions: MakeUniformSetTexture.

UniformSetTextureList

Related functions: DrawLines, DrawModel, DrawSprites, DrawText and DrawTriangles.


MethodPrototype
atUniformSetTexture (int idx)
clearnil ()
push_backnil (UniformSetTexture v)
reservenil (int size)
sizeint ()

UniformSetValue

Command object to set a uniform value at draw time.

Related classes: UniformSetValueList.

Related functions: MakeUniformSetValue.

UniformSetValueList

Related functions: DrawLines, DrawModel, DrawSprites, DrawText and DrawTriangles.


MethodPrototype
atUniformSetValue (int idx)
clearnil ()
push_backnil (UniformSetValue v)
reservenil (int size)
sizeint ()

VRController

Helper class holding the current and previous device state to enable delta state queries.

Use GetVRControllerNames to query for available VR controller devices.


MethodPrototype
Connectedboolean ()
Gamepad was connected since the last update.
ConstructorVRController ()
ConstructorVRController (string name)
Disconnectedboolean ()
Gamepad was disconnected since the last update.
Downboolean (VRControllerButton btn)
DtSurfaceVec2 (int idx)
IsConnectedboolean ()
Gamepad is currently connected.
Pressedboolean (VRControllerButton btn)
Releasedboolean (VRControllerButton btn)
SendHapticPulsenil (int duration)
SurfaceVec2 (int idx)
Touchboolean (VRControllerButton btn)
TouchEndboolean (VRControllerButton btn)
TouchStartboolean (VRControllerButton btn)
Updatenil ()
WorldMat4 ()

VRControllerState

Related functions: ReadVRController.


MethodPrototype
IsConnectedboolean ()
Pressedboolean (VRControllerButton btn)
SurfaceVec2 (int idx)
Touchedboolean (VRControllerButton btn)
WorldMat4 ()

VRGenericTracker

Helper class holding the current and previous device state to enable delta state queries.

Use GetVRGenericTrackerNames to query for available VR generic tracker devices.


MethodPrototype
ConstructorVRGenericTracker ()
ConstructorVRGenericTracker (string name)
IsConnectedboolean ()
Updatenil ()
WorldMat4 ()

VRGenericTrackerState

Related functions: ReadVRGenericTracker.


MethodPrototype
IsConnectedboolean ()
WorldMat4 ()

Vec2

2-dimensional floating point vector.

Related classes: ImDrawList, Node, Scene, VRControllerState, VRController, Vec2List, Vec3, Vec4, Vertex and Vertices.

Related functions: ClipSpaceToScreenSpace, ComputeAspectRatioX, ComputeAspectRatioY, ComputeOrthographicProjectionMatrix, ComputeOrthographicViewState, ComputePerspectiveProjectionMatrix, ComputePerspectiveViewState, Dist2, Dist, Dot, DrawSprites, GetSize, GetWindowContentScale, ImGuiBeginChild, ImGuiButton, ImGuiCalcTextSize, ImGuiColorButton, ImGuiDragVec2, ImGuiDummy, ImGuiGetContentRegionAvail, ImGuiGetContentRegionMax, ImGuiGetCursorPos, ImGuiGetCursorScreenPos, ImGuiGetCursorStartPos, ImGuiGetFontTexUvWhitePixel, ImGuiGetItemRectMax, ImGuiGetItemRectMin, ImGuiGetItemRectSize, ImGuiGetMouseDragDelta, ImGuiGetMousePosOnOpeningCurrentPopup, ImGuiGetMousePos, ImGuiGetWindowContentRegionMax, ImGuiGetWindowContentRegionMin, ImGuiGetWindowPos, ImGuiGetWindowSize, ImGuiImageButton, ImGuiImage, ImGuiInputVec2, ImGuiInvisibleButton, ImGuiIsMouseHoveringRect, ImGuiIsRectVisible, ImGuiProgressBar, ImGuiPushClipRect, ImGuiPushStyleVar, ImGuiSelectable, ImGuiSetCursorPos, ImGuiSetCursorScreenPos, ImGuiSetNextWindowContentSize, ImGuiSetNextWindowPos, ImGuiSetNextWindowSizeConstraints, ImGuiSetNextWindowSize, ImGuiSetWindowPos, ImGuiSetWindowSize, ImGuiSliderVec2, Inside, Len2, Len, MakeUniformSetValue, MakeVertex, Max, Min, Normalize, ProjectOrthoToScreenSpace, ProjectToScreenSpace, Reverse, RotationMat2D, ScaleMat3, ScreenSpaceToClipSpace, SetMaterialValue, SetTranslation, TranslationMat3, UnprojectFromScreenSpace and UnprojectOrthoFromScreenSpace.


MemberType
Onestatic Vec2
Zerostatic Vec2
xnumber
ynumber

MethodPrototype
ConstructorVec2 ()
ConstructorVec2 (number x, number y)
ConstructorVec2 (Vec2 v)
ConstructorVec2 (Vec3 v)
ConstructorVec2 (Vec4 v)
Setnil (number x, number y)
operator*Vec2 (Vec2 v)
operator*Vec2 (number k)
operator*Vec2 (Mat3 m)
operator*=nil (Vec2 v)
operator*=nil (number k)
operator+Vec2 (Vec2 v)
operator+Vec2 (number k)
operator+=nil (Vec2 v)
operator+=nil (number k)
operator-Vec2 (Vec2 v)
operator-Vec2 (number k)
operator-=nil (Vec2 v)
operator-=nil (number k)
operator/Vec2 (Vec2 v)
operator/Vec2 (number k)
operator/=nil (Vec2 v)
operator/=nil (number k)

Vec2List

Related classes: ImDrawList.


MethodPrototype
atVec2 (int idx)
Gets the element at the specified index.
clearnil ()
push_backnil (Vec2 v)
Adds an element to the end.
reservenil (int size)
sizeint ()
Returns the number of stored elements.

Vec3

3-dimensional vector.

Related classes: Collision, Contact, MinMax, RaycastOut, SRanipalEyeState, SceneBullet3Physics, Scene, SpatializedSourceState, TransformTRS, Transform, Vec2, Vec3List, Vec4, Vertex, Vertices and iVec2.

Related functions: Abs, BaseToEuler, Ceil, ClampLen, Clamp, ClassifyLine, ClassifySegment, ClipSpaceToScreenSpace, ColorFromVector3, ComputeMinMaxBoundingSphere, ComputeSortKeyFromWorld, Contains, CreatePhysicCube, CrossProductMat3, Cross, CubicInterpolate, Decompose, Deg3, Dist2, Dist, DistanceToPlane, Dot, DrawText, FaceForward, Floor, FpsController, GetCenter, GetColumn, GetR, GetRotation, GetRow, GetS, GetScale, GetT, GetTranslation, GetX, GetY, GetZ, ImGuiDragVec3, ImGuiInputVec3, ImGuiSliderVec3, Inside, IntersectRay, Inverse, Len2, Len, Lerp, MakePlane, MakeUniformSetValue, MakeVec3, MakeVertex, Mat3LookAt, Mat4LookAtUp, Mat4LookAt, Mat4LookTowardUp, Mat4LookToward, Max, MinMaxFromPositionSize, Min, Normalize, ProjectOrthoToClipSpace, ProjectOrthoToScreenSpace, ProjectToClipSpace, ProjectToScreenSpace, QuaternionFromAxisAngle, QuaternionFromEuler, QuaternionLookAt, Rad3, RandomVec3, Reflect, Refract, Reverse, RotationMat3, RotationMat4, ScaleMat3, ScaleMat4, ScreenSpaceToClipSpace, SetAxises, SetColumn, SetListener, SetMaterialValue, SetRow, SetS, SetScale, SetSourceTransform, SetT, SetTranslation, SetX, SetY, SetZ, Sign, TestVisibility, ToEuler, TransformationMat4, TranslationMat3, TranslationMat4, Union, UnprojectFromClipSpace, UnprojectFromScreenSpace, UnprojectOrthoFromClipSpace, UnprojectOrthoFromScreenSpace, Vec3I and VectorMat3.


MemberType
Backstatic Vec3
Downstatic Vec3
Frontstatic Vec3
Leftstatic Vec3
Onestatic Vec3
Rightstatic Vec3
Upstatic Vec3
Zerostatic Vec3
xnumber
ynumber
znumber

MethodPrototype
ConstructorVec3 ()
ConstructorVec3 (number x, number y, number z)
ConstructorVec3 (Vec2 v)
ConstructorVec3 (iVec2 v)
ConstructorVec3 (Vec3 v)
ConstructorVec3 (Vec4 v)
Setnil (number x, number y, number z)
operator!=boolean (Vec3 v)
operator*Vec3 (Vec3 v)
operator*Vec3 (number k)
operator*=nil (Vec3 v)
operator*=nil (number k)
operator+Vec3 (Vec3 v)
operator+Vec3 (number k)
operator+=nil (Vec3 v)
operator+=nil (number k)
operator-Vec3 (Vec3 v)
operator-Vec3 (number k)
operator-=nil (Vec3 v)
operator-=nil (number k)
operator/Vec3 (Vec3 v)
operator/Vec3 (number k)
operator/=nil (Vec3 v)
operator/=nil (number k)
operator==boolean (Vec3 v)

Vec3List

Related functions: DrawSprites.


MethodPrototype
atVec3 (int idx)
clearnil ()
push_backnil (Vec3 v)
reservenil (int size)
sizeint ()

Vec4

4-dimensional vector.

Related classes: ForwardPipelineLight, Frustum, ImDrawList, Light, Scene, Vec2, Vec3, Vec4List and iVec2.

Related functions: Abs, ColorFromVector4, CreateLinearLight, CreateMaterial, DistanceToPlane, GetColumn, GetRow, ImGuiDragVec4, ImGuiInputVec4, ImGuiSliderVec4, Inside, Lerp, MakeForwardPipelineLinearLight, MakePlane, MakeUniformSetValue, MakeVec3, Normalize, RandomVec4, SetColumn, SetMaterialValue, SetRow and Vec4I.


MemberType
wnumber
xnumber
ynumber
znumber

MethodPrototype
ConstructorVec4 ()
ConstructorVec4 (number x, number y, number z)
ConstructorVec4 (number x, number y, number z, number w)
ConstructorVec4 (Vec2 v)
ConstructorVec4 (iVec2 v)
ConstructorVec4 (Vec3 v)
ConstructorVec4 (Vec4 v)
Setnil (number x, number y, number z)
Setnil (number x, number y, number z, number w)
operator*Vec4 (Vec4 v)
operator*Vec4 (number k)
operator*=nil (Vec4 v)
operator*=nil (number k)
operator+Vec4 (Vec4 v)
operator+Vec4 (number k)
operator+=nil (Vec4 v)
operator+=nil (number k)
operator-Vec4 (Vec4 v)
operator-Vec4 (number k)
operator-=nil (Vec4 v)
operator-=nil (number k)
operator/Vec4 (Vec4 v)
operator/Vec4 (number k)
operator/=nil (Vec4 v)
operator/=nil (number k)

Vec4List


MethodPrototype
atVec4 (int idx)
clearnil ()
push_backnil (Vec4 v)
reservenil (int size)
sizeint ()

Vertex

Related classes: GeometryBuilder and ModelBuilder.

Related functions: MakeVertex.


MemberType
binormalVec3
color0Color
color1Color
color2Color
color3Color
normalVec3
posVec3
tangentVec3
uv0Vec2
uv1Vec2
uv2Vec2
uv3Vec2
uv4Vec2
uv5Vec2
uv6Vec2
uv7Vec2

MethodPrototype
ConstructorVertex ()

VertexLayout

Memory layout and types of vertex attributes.

Related classes: ModelBuilder, SceneBullet3Physics and Vertices.

Related functions: CreateCapsuleModel, CreateConeModel, CreateCubeModel, CreateCylinderModel, CreatePlaneModel, CreateSphereModel, DrawSprites, VertexLayoutPosFloatColorFloat, VertexLayoutPosFloatColorUInt8, VertexLayoutPosFloatNormFloat, VertexLayoutPosFloatNormUInt8TexCoord0UInt8, VertexLayoutPosFloatNormUInt8 and VertexLayoutPosFloatTexCoord0UInt8.


MethodPrototype
AddVertexLayout (Attrib attrib, int count, AttribType type)
AddVertexLayout (Attrib attrib, int count, AttribType type, boolean normalized)
AddVertexLayout (Attrib attrib, int count, AttribType type, boolean normalized, boolean as_int)
BeginVertexLayout ()
ConstructorVertexLayout ()
Endnil ()
GetOffsetint (Attrib attrib)
GetSizeint (int count)
GetStrideint ()
Hasboolean (Attrib attrib)
SkipVertexLayout (int size)

Vertices

Helper class to generate vertex buffers for drawing primitives.

Related functions: DrawLines and DrawTriangles.


MethodPrototype
BeginVertices (int vertex_index)
Clearnil ()
ConstructorVertices (VertexLayout decl, int count)
Endnil ()
Endnil (boolean validate)
GetCapacityint ()
GetCountint ()
GetDataVoidPointer ()
GetDeclVertexLayout ()
GetSizeint ()
Reservenil (int count)
Resizenil (int count)
SetBinormalVertices (Vec3 binormal)
SetColor0Vertices (Color color)
SetColor1Vertices (Color color)
SetColor2Vertices (Color color)
SetColor3Vertices (Color color)
SetNormalVertices (Vec3 normal)
SetPosVertices (Vec3 pos)
SetTangentVertices (Vec3 tangent)
SetTexCoord0Vertices (Vec2 uv)
SetTexCoord1Vertices (Vec2 uv)
SetTexCoord2Vertices (Vec2 uv)
SetTexCoord3Vertices (Vec2 uv)
SetTexCoord4Vertices (Vec2 uv)
SetTexCoord5Vertices (Vec2 uv)
SetTexCoord6Vertices (Vec2 uv)
SetTexCoord7Vertices (Vec2 uv)

ViewState

Everything required to define an observer inside a 3d world. This object holds the projection matrix and its associated frustum as well as the transformation of the observer.

The world content is transformed by the observer view matrix before being projected to screen using its projection matrix.

Related classes: ForwardPipelineAAA, Node and Scene.

Related functions: ComputeOrthographicViewState, ComputePerspectiveViewState, OpenVRStateToViewState, PrepareSceneForwardPipelineViewDependentRenderData, SubmitSceneToForwardPipeline and SubmitSceneToPipeline.


MemberType
frustumFrustum
projMat44
viewMat4

VoidPointer

Related classes: Picture and Vertices.

Related functions: GetWindowHandle, NewWindowFrom and int_to_VoidPointer.

Window

Window object.

Related functions: DestroyWindow, GetWindowClientSize, GetWindowContentScale, GetWindowHandle, GetWindowInFocus, GetWindowPos, GetWindowTitle, IsWindowOpen, NewFullscreenWindow, NewWindowFrom, NewWindow, RenderInit, RenderResetToWindow, SetWindowClientSize, SetWindowPos, SetWindowTitle, UpdateWindow and WindowHasFocus.