thermion_dart
library
Classes
Aabb2
Defines a 2-dimensional axis-aligned bounding box between a min and a
max position.
Aabb3
Defines a 3-dimensional axis-aligned bounding box between a min and a
max position.
Abi
An application binary interface (ABI).
AbiSpecificInteger
The supertype of all Abi -specific integer types.
AbiSpecificIntegerMapping
Mapping for a subtype of AbiSpecificInteger .
Allocator
Manages memory on the native heap.
Arena
An Allocator which frees all allocations at the same time.
Array <T extends NativeType >
A fixed-sized array of T
s.
Bool
Represents a native bool in C.
ByteBuffer
A sequence of bytes underlying a typed data object.
ByteData
A fixed-length, random-access sequence of bytes that also provides random
and unaligned access to the fixed-width integers and floating point
numbers represented by those bytes.
BytesBuilder
Builds a list of bytes, allowing bytes and lists of bytes to be added at the
end.
CallbackHolder <T extends Function >
Camera <T >
Char
The C char
type.
Dart_CObject
Opaque, not exposing it's members.
DartRepresentationOf
DefaultAsset
Annotation specifying the default asset ID for the current library.
DelegateInputHandler
An InputHandler that accumulates pointer/key events every frame,
delegating the actual update to an InputHandlerDelegate .
DirectLight
Double
Represents a native 64 bit double in C.
double3
double3x3
double4
double4x4
DynamicLibrary
A dynamically loaded native library.
Endian
Endianness of number representation.
FilamentApp <T >
FilamentConfig <T , U >
Finalizable
Marker interface for objects which should not be finalized too soon.
FinalizableUint8List
Float
Represents a native 32 bit float in C.
Float32List
A fixed-length list of IEEE 754 single-precision binary floating-point
numbers that is viewable as a TypedData .
Float32x4
Four 32-bit floating point values.
Float32x4List
A fixed-length list of Float32x4 numbers that is viewable as a
TypedData .
Float64List
A fixed-length list of IEEE 754 double-precision binary floating-point
numbers that is viewable as a TypedData .
Float64x2
Float64x2 immutable value type and operations.
Float64x2List
A fixed-length list of Float64x2 numbers that is viewable as a
TypedData .
FogOptions
Frustum
Defines a frustum constructed out of six Plane s.
Geometry
GeometryHelper
GizmoAsset
Handle
Represents Dart_Handle
from dart_api.h
in C.
IBL
IndirectLight
InputEvent
InputHandler
An interface for handling user device input events.
InputHandlerDelegate
InputSensitivityOptions
Int
The C int
type.
Int16
Represents a native signed 16 bit integer in C.
Int16List
A fixed-length list of 16-bit signed integers that is viewable as a
TypedData .
Int32
Represents a native signed 32 bit integer in C.
Int32List
A fixed-length list of 32-bit signed integers that is viewable as a
TypedData .
Int32x4
Int32x4 and operations.
Int32x4List
A fixed-length list of Int32x4 numbers that is viewable as a
TypedData .
Int64
Represents a native signed 64 bit integer in C.
Int64List
A fixed-length list of 64-bit signed integers that is viewable as a
TypedData .
Int8
Represents a native signed 8 bit integer in C.
Int8List
A fixed-length list of 8-bit signed integers.
IntersectionResult
Defines a result of an intersection test.
IntPtr
The C intptr_t
type.
KeyEvent
LinearImage
Long
The C long int
, aka. long
, type.
LongLong
The C long long
type.
Material <T >
MaterialInstance <T >
Matrix2
2D Matrix.
Values are stored in column major order.
Matrix3
3D Matrix.
Values are stored in column major order.
Matrix4
4D Matrix.
Values are stored in column major order.
MouseEvent
Native <T >
Annotation binding an external declaration to its native implementation.
NativeApi
Utilities for accessing the Dart VM API from Dart code or
from C code via dart_api_dl.h
.
NativeCallable <T extends Function >
A native callable which listens for calls to a native function.
NativeFinalizer
A native finalizer which can be attached to Dart objects.
NativeFunction <T extends Function >
Represents a function type in C.
NativeLibrary
NativeType
NativeType 's subtypes represent a native type in C.
Obb3
Defines a 3-dimensional oriented bounding box defined with a center ,
halfExtents and axes.
Opaque
Opaque 's subtypes represent opaque types in C.
Packed
Annotation to specify on Struct
subtypes to indicate that its members
need to be packed.
Plane
Pointer <T extends NativeType >
Represents a pointer into the native C memory. Cannot be extended.
Quad
Defines a quad by four points.
Quaternion
Defines a Quaternion (a four-dimensional vector) for efficient rotation
calculations.
Ray
Defines a Ray by an origin and a direction .
RenderTarget <T >
ScaleEndEvent
ScaleStartEvent
ScaleUpdateEvent
ScrollEvent
Short
The C short
type.
SignedChar
The C signed char
type.
SimplexNoise
SizedNativeType
A NativeType with a known size.
Sphere
Defines a sphere with a center and a radius .
Struct
The supertype of all FFI struct types.
SwapChain <T >
TAnimationManager
TBackend
TBlendMode
TCamera
TCollisionComponentManager
TColorGrading
TCullingMode
TEngine
TEntityManager
Texture
Defines a texture object
TextureDetails
This represents the backing "surface" that we render into.
"Texture" here is a misnomer as it is only a render target texture on certain platforms.
TexturedQuad
TextureSampler
Defines the texture sampler configuration
TFeatureLevel
TFence
TFilamentAsset
TFogOptions
Copied from FogOptions in View.h
TGizmo
TGizmoAxis
TGizmoPickResultType
TGizmoType
TGltfAssetLoader
TGltfResourceLoader
ThermionAsset
A high-level interface for a renderable object
(i.e. not a camera or light).
ThermionViewer
A (high-level) interface for a 3D scene.
ThermionViewerFFI
TIndirectLight
TKtx1Bundle
TLightManager
TLightType
TLinearImage
TMaterial
TMaterialInstance
TMaterialProvider
TNameComponentManager
TouchEvent
TOverlayManager
TPixelDataFormat
! Pixel Data Format
TPixelDataType
TPrimitiveType
TProjection
TQualityLevel
TRenderableInstance
TRenderableManager
TRenderer
TRenderTarget
TRenderTicker
Triangle
Defines a triangle by three points.
TSamplerCompareFunc
TSamplerCompareMode
TSamplerMagFilter
TSamplerMinFilter
TSamplerWrapMode
TScene
TSceneAsset
TSceneManager
TSkybox
TStencilFace
TStencilOperation
TSwapChain
TTexture
TTextureFormat
TTextureSampler
TTextureSamplerType
TTextureUsage
TToneMapping
TTransformManager
TTransparencyMode
TView
TViewer
TViewport
TypedData
A typed view of a sequence of bytes.
TypedDataList <E >
A TypedData fixed-length List -view on the bytes of buffer .
Uint16
Represents a native unsigned 16 bit integer in C.
Uint16List
A fixed-length list of 16-bit unsigned integers that is viewable as a
TypedData .
Uint32
Represents a native unsigned 32 bit integer in C.
Uint32List
A fixed-length list of 32-bit unsigned integers that is viewable as a
TypedData .
Uint64
Represents a native unsigned 64 bit integer in C.
Uint64List
A fixed-length list of 64-bit unsigned integers that is viewable as a
TypedData .
Uint8
Represents a native unsigned 8 bit integer in C.
Uint8ClampedList
A fixed-length list of 8-bit unsigned integers.
Uint8List
A fixed-length list of 8-bit unsigned integers.
UintPtr
The C uintptr_t
type.
Union
The supertype of all FFI union types.
UnsignedChar
The C unsigned char
type.
UnsignedInt
The C unsigned int
type.
UnsignedLong
The C unsigned long int
, aka. unsigned long
, type.
UnsignedLongLong
The C unsigned long long
type.
UnsignedShort
The C unsigned short
type.
Utf16
The contents of a native zero-terminated array of UTF-16 code units.
Utf8
The contents of a native zero-terminated array of UTF-8 code units.
VarArgs <T extends Record >
The types of variadic arguments passed in C.
Vector
Base class for vectors
Vector2
2D column vector.
Vector3
3D column vector.
Vector4
4D column vector.
View <T >
Viewport
The viewport currently attached to a View .
Void
Represents a void type in C.
WChar
The C wchar_t
type.
Functions
absoluteError (dynamic calculated , dynamic correct )
→ double
Returns absolute error between calculated
and correct
.
The type of calculated
and correct
must match and can
be any vector, matrix, or quaternion.
allocate <T extends NativeType > (int count )
→ Pointer <T >
AnimationManager_addBoneAnimation (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > tSceneAsset , int skinIndex , int boneIndex , Pointer <Float > frameData , int numFrames , double frameLengthInMs , double fadeOutInSecs , double fadeInInSecs , double maxDelta )
→ bool
AnimationManager_addBoneAnimationComponent (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > tSceneAsset )
→ bool
AnimationManager_addGltfAnimationComponent (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > tSceneAsset )
→ bool
AnimationManager_addMorphAnimationComponent (Pointer <TAnimationManager > tAnimationManager , int entityId )
→ void
AnimationManager_clearMorphAnimation (Pointer <TAnimationManager > tAnimationManager , int entityId )
→ bool
AnimationManager_create (Pointer <TEngine > tEngine , Pointer <TScene > tScene )
→ Pointer <TAnimationManager >
AnimationManager_createRenderThread (Pointer <TEngine > tEngine , Pointer <TScene > tScene , Pointer <NativeFunction <Void Function(Pointer <TAnimationManager > ) > > onComplete )
→ void
AnimationManager_getBone (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , int skinIndex , int boneIndex )
→ int
AnimationManager_getBoneCount (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , int skinIndex )
→ int
AnimationManager_getBoneNames (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , Pointer <Pointer <Char > > out , int skinIndex )
→ void
AnimationManager_getGltfAnimationCount (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset )
→ int
AnimationManager_getGltfAnimationDuration (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , int animationIndex )
→ double
AnimationManager_getGltfAnimationName (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , Pointer <Char > outPtr , int index )
→ void
AnimationManager_getInverseBindMatrix (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , int skinIndex , int boneIndex , Pointer <Float > out )
→ void
AnimationManager_getMorphTargetName (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , int childEntity , Pointer <Char > outPtr , int index )
→ void
AnimationManager_getMorphTargetNameCount (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , int childEntity )
→ int
AnimationManager_getRestLocalTransforms (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , int skinIndex , Pointer <Float > out , int numBones )
→ void
AnimationManager_playGltfAnimation (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > tSceneAsset , int index , bool loop , bool reverse , bool replaceActive , double crossfade , double startOffset )
→ bool
AnimationManager_removeBoneAnimationComponent (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > tSceneAsset )
→ bool
AnimationManager_removeGltfAnimationComponent (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > tSceneAsset )
→ bool
AnimationManager_removeMorphAnimationComponent (Pointer <TAnimationManager > tAnimationManager , int entityId )
→ void
AnimationManager_resetToRestPose (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset )
→ void
AnimationManager_resetToRestPoseRenderThread (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > tSceneAsset , int requestId , VoidCallback onComplete )
→ void
AnimationManager_setBoneTransformRenderThread (Pointer <TAnimationManager > tAnimationManager , int asset , int skinIndex , int boneIndex , Pointer <Float > transform , Pointer <NativeFunction <Void Function(Bool ) > > callback )
→ void
AnimationManager_setGltfAnimationFrame (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > tSceneAsset , int animationIndex , int frame )
→ bool
AnimationManager_setMorphAnimation (Pointer <TAnimationManager > tAnimationManager , int entityId , Pointer <Float > morphData , Pointer <Uint32 > morphIndices , int numMorphTargets , int numFrames , double frameLengthInMs )
→ bool
AnimationManager_setMorphTargetWeights (Pointer <TAnimationManager > tAnimationManager , int entityId , Pointer <Float > morphData , int numWeights )
→ bool
AnimationManager_setMorphTargetWeightsRenderThread (Pointer <TAnimationManager > tAnimationManager , int entityId , Pointer <Float > morphData , int numWeights , Pointer <NativeFunction <Void Function(Bool ) > > callback )
→ void
AnimationManager_stopGltfAnimation (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , int index )
→ bool
AnimationManager_update (Pointer <TAnimationManager > tAnimationManager , int frameTimeInNanos )
→ void
AnimationManager_updateBoneMatrices (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset )
→ bool
AnimationManager_updateBoneMatricesRenderThread (Pointer <TAnimationManager > tAnimationManager , Pointer <TSceneAsset > sceneAsset , Pointer <NativeFunction <Void Function(Bool ) > > callback )
→ void
buildPlaneVectors (Vector3 planeNormal , Vector3 u , Vector3 v )
→ void
Sets u
and v
to be two vectors orthogonal to each other and
planeNormal
.
Camera_getCullingFar (Pointer <TCamera > camera )
→ double
Camera_getCullingProjectionMatrix (Pointer <TCamera > camera )
→ double4x4
Camera_getEntity (Pointer <TCamera > camera )
→ int
Camera_getFocalLength (Pointer <TCamera > camera )
→ double
Camera_getFocusDistance (Pointer <TCamera > camera )
→ double
Camera_getFov (Pointer <TCamera > camera , bool horizontal )
→ double
Camera_getFrustum (Pointer <TCamera > camera , Pointer <Double > out )
→ void
Camera_getModelMatrix (Pointer <TCamera > camera )
→ double4x4
Camera_getNear (Pointer <TCamera > camera )
→ double
Camera_getProjectionMatrix (Pointer <TCamera > camera )
→ double4x4
Camera_getViewMatrix (Pointer <TCamera > camera )
→ double4x4
Camera_lookAt (Pointer <TCamera > camera , double3 eye , double3 focus , double3 up )
→ void
Camera_setCustomProjectionWithCulling (Pointer <TCamera > camera , double4x4 projectionMatrix , double near , double far )
→ void
Camera_setExposure (Pointer <TCamera > camera , double aperture , double shutterSpeed , double sensitivity )
→ void
Camera_setFocusDistance (Pointer <TCamera > camera , double focusDistance )
→ void
Camera_setLensProjection (Pointer <TCamera > camera , double near , double far , double aspect , double focalLength )
→ void
Camera_setModelMatrix (Pointer <TCamera > camera , Pointer <Double > tModelMatrix )
→ void
Camera_setProjection (Pointer <TCamera > tCamera , int projection , double left , double right , double bottom , double top , double near , double far )
→ void
Camera_setProjectionFromFov (Pointer <TCamera > camera , double fovInDegrees , double aspect , double near , double far , bool horizontal )
→ void
Camera_setProjectionMatrix (Pointer <TCamera > camera , Pointer <Double > matrix , double near , double far )
→ void
catmullRom (double edge0 , double edge1 , double edge2 , double edge3 , double amount )
→ double
Do a catmull rom spline interpolation with edge0
, edge1
, edge2
and
edge3
by amount
.
ColorGrading_create (Pointer <TEngine > tEngine , int toneMapping )
→ Pointer <TColorGrading >
ColorGrading_createRenderThread (Pointer <TEngine > tEngine , int toneMapping , Pointer <NativeFunction <Void Function(Pointer <TColorGrading > ) > > callback )
→ void
cross2 (Vector2 x , Vector2 y )
→ double
2D cross product. vec2 x vec2.
cross2A (double x , Vector2 y , Vector2 out )
→ void
2D cross product. double x vec2.
cross2B (Vector2 x , double y , Vector2 out )
→ void
2D cross product. vec2 x double.
cross3 (Vector3 x , Vector3 y , Vector3 out )
→ void
3D Cross product.
degrees (double radians )
→ double
Convert radians
to degrees.
dot2 (Vector2 x , Vector2 y )
→ double
2D dot product.
dot3 (Vector3 x , Vector3 y )
→ double
3D dot product.
Engine_buildIndirectLightFromIrradianceHarmonics (Pointer <TEngine > tEngine , Pointer <TTexture > tReflectionsTexture , Pointer <Float > irradianceHarmonics , double intensity )
→ Pointer <TIndirectLight >
Engine_buildIndirectLightFromIrradianceHarmonicsRenderThread (Pointer <TEngine > tEngine , Pointer <TTexture > tReflectionsTexture , Pointer <Float > harmonics , double intensity , Pointer <NativeFunction <Void Function(Pointer <TIndirectLight > ) > > onComplete )
→ void
Engine_buildIndirectLightFromIrradianceTexture (Pointer <TEngine > tEngine , Pointer <TTexture > tReflectionsTexture , Pointer <TTexture > tIrradianceTexture , double intensity )
→ Pointer <TIndirectLight >
Engine_buildIndirectLightFromIrradianceTextureRenderThread (Pointer <TEngine > tEngine , Pointer <TTexture > tReflectionsTexture , Pointer <TTexture > tIrradianceTexture , double intensity , Pointer <NativeFunction <Void Function(Pointer <TIndirectLight > ) > > onComplete )
→ void
Engine_buildMaterial (Pointer <TEngine > tEngine , Pointer <Uint8 > materialData , int length )
→ Pointer <TMaterial >
Engine_buildMaterialRenderThread (Pointer <TEngine > tEngine , Pointer <Uint8 > materialData , int length , Pointer <NativeFunction <Void Function(Pointer <TMaterial > ) > > onComplete )
→ void
Engine_buildSkybox (Pointer <TEngine > tEngine , Pointer <TTexture > tTexture )
→ Pointer <TSkybox >
Engine_buildSkyboxRenderThread (Pointer <TEngine > tEngine , Pointer <TTexture > tTexture , Pointer <NativeFunction <Void Function(Pointer <TSkybox > ) > > onComplete )
→ void
Engine_create (int backend , Pointer <Void > platform , Pointer <Void > sharedContext , int stereoscopicEyeCount , bool disableHandleUseAfterFreeCheck )
→ Pointer <TEngine >
Engine_createCamera (Pointer <TEngine > tEngine )
→ Pointer <TCamera >
Engine_createCameraRenderThread (Pointer <TEngine > tEngine , Pointer <NativeFunction <Void Function(Pointer <TCamera > ) > > onComplete )
→ void
Engine_createFence (Pointer <TEngine > tEngine )
→ Pointer <TFence >
Engine_createFenceRenderThread (Pointer <TEngine > tEngine , Pointer <NativeFunction <Void Function(Pointer <TFence > ) > > onComplete )
→ void
Engine_createHeadlessSwapChain (Pointer <TEngine > tEngine , int width , int height , int flags )
→ Pointer <TSwapChain >
Engine_createHeadlessSwapChainRenderThread (Pointer <TEngine > tEngine , int width , int height , int flags , Pointer <NativeFunction <Void Function(Pointer <TSwapChain > ) > > onComplete )
→ void
Engine_createRenderer (Pointer <TEngine > tEngine )
→ Pointer <TRenderer >
Engine_createRendererRenderThread (Pointer <TEngine > tEngine , Pointer <NativeFunction <Void Function(Pointer <TRenderer > ) > > onComplete )
→ void
Engine_createRenderThread (int backend , Pointer <Void > platform , Pointer <Void > sharedContext , int stereoscopicEyeCount , bool disableHandleUseAfterFreeCheck , Pointer <NativeFunction <Void Function(Pointer <TEngine > ) > > onComplete )
→ void
Engine_createScene (Pointer <TEngine > tEngine )
→ Pointer <TScene >
Engine_createSwapChain (Pointer <TEngine > tEngine , Pointer <Void > window , int flags )
→ Pointer <TSwapChain >
Engine_createSwapChainRenderThread (Pointer <TEngine > tEngine , Pointer <Void > window , int flags , Pointer <NativeFunction <Void Function(Pointer <TSwapChain > ) > > onComplete )
→ void
Engine_createView (Pointer <TEngine > tEngine )
→ Pointer <TView >
Engine_createViewRenderThread (Pointer <TEngine > tEngine , Pointer <NativeFunction <Void Function(Pointer <TView > ) > > onComplete )
→ void
Engine_destroy (Pointer <TEngine > tEngine )
→ void
Engine_destroyCamera (Pointer <TEngine > tEngine , Pointer <TCamera > tCamera )
→ void
Engine_destroyColorGrading (Pointer <TEngine > tEngine , Pointer <TColorGrading > tColorGrading )
→ void
Engine_destroyColorGradingRenderThread (Pointer <TEngine > tEngine , Pointer <TColorGrading > tColorGrading , int requestId , VoidCallback onComplete )
→ void
Engine_destroyFence (Pointer <TEngine > tEngine , Pointer <TFence > tFence )
→ void
Engine_destroyFenceRenderThread (Pointer <TEngine > tEngine , Pointer <TFence > tFence , int requestId , VoidCallback onComplete )
→ void
Engine_destroyIndirectLight (Pointer <TEngine > tEngine , Pointer <TIndirectLight > tIndirectLight )
→ void
Engine_destroyIndirectLightRenderThread (Pointer <TEngine > tEngine , Pointer <TIndirectLight > tIndirectLight , int requestId , VoidCallback onComplete )
→ void
Engine_destroyMaterial (Pointer <TEngine > tEngine , Pointer <TMaterial > tMaterial )
→ void
Engine_destroyMaterialInstance (Pointer <TEngine > tEngine , Pointer <TMaterialInstance > tMaterialInstance )
→ void
Engine_destroyMaterialInstanceRenderThread (Pointer <TEngine > tEngine , Pointer <TMaterialInstance > tMaterialInstance , int requestId , VoidCallback onComplete )
→ void
Engine_destroyMaterialRenderThread (Pointer <TEngine > tEngine , Pointer <TMaterial > tMaterial , int requestId , VoidCallback onComplete )
→ void
Engine_destroyRenderThread (Pointer <TEngine > tEngine , int requestId , VoidCallback onComplete )
→ void
Engine_destroyScene (Pointer <TEngine > tEngine , Pointer <TScene > tScene )
→ void
Engine_destroySceneRenderThread (Pointer <TEngine > tEngine , Pointer <TScene > tScene , int requestId , VoidCallback onComplete )
→ void
Engine_destroySkybox (Pointer <TEngine > tEngine , Pointer <TSkybox > tSkybox )
→ void
Engine_destroySkyboxRenderThread (Pointer <TEngine > tEngine , Pointer <TSkybox > tSkybox , int requestId , VoidCallback onComplete )
→ void
Engine_destroySwapChain (Pointer <TEngine > tEngine , Pointer <TSwapChain > tSwapChain )
→ void
Engine_destroySwapChainRenderThread (Pointer <TEngine > tEngine , Pointer <TSwapChain > tSwapChain , int requestId , VoidCallback onComplete )
→ void
Engine_destroyTexture (Pointer <TEngine > tEngine , Pointer <TTexture > tTexture )
→ void
Engine_destroyTextureRenderThread (Pointer <TEngine > engine , Pointer <TTexture > tTexture , int requestId , VoidCallback onComplete )
→ void
Engine_destroyView (Pointer <TEngine > tEngine , Pointer <TView > tView )
→ void
Engine_destroyViewRenderThread (Pointer <TEngine > tEngine , Pointer <TView > tView , int requestId , VoidCallback onComplete )
→ void
Engine_execute (Pointer <TEngine > tEngine )
→ void
Engine_executeRenderThread (Pointer <TEngine > tEngine , int requestId , VoidCallback onComplete )
→ void
Engine_flushAndWait (Pointer <TEngine > tEngine )
→ void
Engine_flushAndWaitRenderThread (Pointer <TEngine > tEngine , int requestId , VoidCallback onComplete )
→ void
Engine_getCameraComponent (Pointer <TEngine > tEngine , int entityId )
→ Pointer <TCamera >
Engine_getEntityManager (Pointer <TEngine > engine )
→ Pointer <TEntityManager >
Engine_getLightManager (Pointer <TEngine > engine )
→ Pointer <TLightManager >
Engine_getRenderableManager (Pointer <TEngine > engine )
→ Pointer <TRenderableManager >
Engine_getSupportedFeatureLevel (Pointer <TEngine > tEngine )
→ int
Engine_getTransformManager (Pointer <TEngine > engine )
→ Pointer <TTransformManager >
EntityManager_createEntity (Pointer <TEntityManager > tEntityManager )
→ int
Fence_waitAndDestroy (Pointer <TFence > tFence )
→ void
Fence_waitAndDestroyRenderThread (Pointer <TFence > tFence , int requestId , VoidCallback onComplete )
→ void
FilamentAsset_getEntities (Pointer <TFilamentAsset > filamentAsset , Pointer <EntityId > out )
→ void
FilamentAsset_getEntityCount (Pointer <TFilamentAsset > filamentAsset )
→ int
FilamentAsset_getResourceUriCount (Pointer <TFilamentAsset > tFilamentAsset )
→ int
FilamentAsset_getResourceUris (Pointer <TFilamentAsset > tFilamentAsset )
→ Pointer <Pointer <Char > >
free (Pointer <NativeType > ptr )
→ void
Gizmo_create (Pointer <TEngine > tEngine , Pointer <TGltfAssetLoader > assetLoader , Pointer <TGltfResourceLoader > tGltfResourceLoader , Pointer <TNameComponentManager > tNameComponentManager , Pointer <TView > tView , Pointer <TMaterial > tMaterial , int tGizmoType )
→ Pointer <TGizmo >
Gizmo_createRenderThread (Pointer <TEngine > tEngine , Pointer <TGltfAssetLoader > tAssetLoader , Pointer <TGltfResourceLoader > tGltfResourceLoader , Pointer <TNameComponentManager > tNameComponentManager , Pointer <TView > tView , Pointer <TMaterial > tMaterial , int tGizmoType , Pointer <NativeFunction <Void Function(Pointer <TGizmo > ) > > callback )
→ void
Gizmo_dummy (int t )
→ void
Gizmo_highlight (Pointer <TGizmo > tGizmo , int axis )
→ void
Gizmo_pick (Pointer <TGizmo > tGizmo , int x , int y , GizmoPickCallback callback )
→ void
Gizmo_unhighlight (Pointer <TGizmo > tGizmo )
→ void
GltfAssetLoader_create (Pointer <TEngine > tEngine , Pointer <TMaterialProvider > tMaterialProvider , Pointer <TNameComponentManager > tNameComponentManager )
→ Pointer <TGltfAssetLoader >
GltfAssetLoader_createRenderThread (Pointer <TEngine > tEngine , Pointer <TMaterialProvider > tMaterialProvider , Pointer <TNameComponentManager > tNameComponentManager , Pointer <NativeFunction <Void Function(Pointer <TGltfAssetLoader > ) > > callback )
→ void
GltfAssetLoader_getMaterialInstance (Pointer <TRenderableManager > tRenderableManager , Pointer <TFilamentAsset > tAsset )
→ Pointer <TMaterialInstance >
GltfAssetLoader_getMaterialProvider (Pointer <TGltfAssetLoader > tAssetLoader )
→ Pointer <TMaterialProvider >
GltfAssetLoader_load (Pointer <TEngine > tEngine , Pointer <TGltfAssetLoader > tAssetLoader , Pointer <Uint8 > data , int length , int numInstances )
→ Pointer <TFilamentAsset >
GltfAssetLoader_loadRenderThread (Pointer <TEngine > tEngine , Pointer <TGltfAssetLoader > tAssetLoader , Pointer <Uint8 > data , int length , int numInstances , Pointer <NativeFunction <Void Function(Pointer <TFilamentAsset > ) > > callback )
→ void
GltfResourceLoader_addResourceData (Pointer <TGltfResourceLoader > tGltfResourceLoader , Pointer <Char > uri , Pointer <Uint8 > data , int length )
→ void
GltfResourceLoader_addResourceDataRenderThread (Pointer <TGltfResourceLoader > tGltfResourceLoader , Pointer <Char > uri , Pointer <Uint8 > data , int length , int requestId , VoidCallback onComplete )
→ void
GltfResourceLoader_asyncBeginLoad (Pointer <TGltfResourceLoader > tGltfResourceLoader , Pointer <TFilamentAsset > tFilamentAsset )
→ bool
GltfResourceLoader_asyncBeginLoadRenderThread (Pointer <TGltfResourceLoader > tGltfResourceLoader , Pointer <TFilamentAsset > tFilamentAsset , Pointer <NativeFunction <Void Function(Bool ) > > callback )
→ void
GltfResourceLoader_asyncGetLoadProgress (Pointer <TGltfResourceLoader > tGltfResourceLoader )
→ double
GltfResourceLoader_asyncGetLoadProgressRenderThread (Pointer <TGltfResourceLoader > tGltfResourceLoader , Pointer <NativeFunction <Void Function(Float ) > > callback )
→ void
GltfResourceLoader_asyncUpdateLoad (Pointer <TGltfResourceLoader > tGltfResourceLoader )
→ void
GltfResourceLoader_asyncUpdateLoadRenderThread (Pointer <TGltfResourceLoader > tGltfResourceLoader )
→ void
GltfResourceLoader_create (Pointer <TEngine > tEngine )
→ Pointer <TGltfResourceLoader >
GltfResourceLoader_createRenderThread (Pointer <TEngine > tEngine , Pointer <NativeFunction <Void Function(Pointer <TGltfResourceLoader > ) > > callback )
→ void
GltfResourceLoader_destroy (Pointer <TEngine > tEngine , Pointer <TGltfResourceLoader > tGltfResourceLoader )
→ void
GltfResourceLoader_destroyRenderThread (Pointer <TEngine > tEngine , Pointer <TGltfResourceLoader > tResourceLoader , int requestId , VoidCallback onComplete )
→ void
GltfResourceLoader_loadResources (Pointer <TGltfResourceLoader > tGltfResourceLoader , Pointer <TFilamentAsset > tFilamentAsset )
→ bool
GltfResourceLoader_loadResourcesRenderThread (Pointer <TGltfResourceLoader > tGltfResourceLoader , Pointer <TFilamentAsset > tFilamentAsset , Pointer <NativeFunction <Void Function(Bool ) > > callback )
→ void
Image_createEmpty (int width , int height , int channel )
→ Pointer <TLinearImage >
Image_createEmptyRenderThread (int width , int height , int channel , Pointer <NativeFunction <Void Function(Pointer <TLinearImage > ) > > onComplete )
→ void
Image_decode (Pointer <Uint8 > data , int length , Pointer <Char > name , bool alpha )
→ Pointer <TLinearImage >
Image_decodeRenderThread (Pointer <Uint8 > data , int length , Pointer <Char > name , bool alpha , Pointer <NativeFunction <Void Function(Pointer <TLinearImage > ) > > onComplete )
→ void
Image_destroy (Pointer <TLinearImage > tLinearImage )
→ void
Image_destroyRenderThread (Pointer <TLinearImage > tLinearImage , int requestId , VoidCallback onComplete )
→ void
Image_getBytes (Pointer <TLinearImage > tLinearImage )
→ Pointer <Float >
Image_getBytesRenderThread (Pointer <TLinearImage > tLinearImage , Pointer <NativeFunction <Void Function(Pointer <Float > ) > > onComplete )
→ void
Image_getChannels (Pointer <TLinearImage > tLinearImage )
→ int
Image_getChannelsRenderThread (Pointer <TLinearImage > tLinearImage , Pointer <NativeFunction <Void Function(Uint32 ) > > onComplete )
→ void
Image_getHeight (Pointer <TLinearImage > tLinearImage )
→ int
Image_getHeightRenderThread (Pointer <TLinearImage > tLinearImage , Pointer <NativeFunction <Void Function(Uint32 ) > > onComplete )
→ void
Image_getWidth (Pointer <TLinearImage > tLinearImage )
→ int
Image_getWidthRenderThread (Pointer <TLinearImage > tLinearImage , Pointer <NativeFunction <Void Function(Uint32 ) > > onComplete )
→ void
IndirectLight_setRotation (Pointer <TIndirectLight > tIndirectLight , Pointer <Double > rotation )
→ void
Ktx1Bundle_create (Pointer <Uint8 > ktxData , int length )
→ Pointer <TKtx1Bundle >
Ktx1Bundle_destroy (Pointer <TKtx1Bundle > tBundle )
→ void
Ktx1Bundle_getSphericalHarmonics (Pointer <TKtx1Bundle > tBundle , Pointer <Float > harmonics )
→ void
Ktx1Bundle_isCubemap (Pointer <TKtx1Bundle > tBundle )
→ bool
Ktx1Reader_createTexture (Pointer <TEngine > tEngine , Pointer <TKtx1Bundle > tBundle , int requestId , VoidCallback onTextureUploadComplete )
→ Pointer <TTexture >
Ktx1Reader_createTextureRenderThread (Pointer <TEngine > tEngine , Pointer <TKtx1Bundle > tBundle , int requestId , VoidCallback onTextureUploadComplete , Pointer <NativeFunction <Void Function(Pointer <TTexture > ) > > onComplete )
→ void
Ktx2Reader_createTexture (Pointer <TEngine > tEngine , Pointer <Uint8 > data , int size )
→ Pointer <TTexture >
LightManager_createLight (Pointer <TEngine > tEngine , Pointer <TLightManager > tLightManager , int tLightTtype )
→ int
LightManager_destroyLight (Pointer <TLightManager > tLightManager , int entity )
→ void
LightManager_setColor (Pointer <TLightManager > tLightManager , int entity , double colorTemperature )
→ void
LightManager_setDirection (Pointer <TLightManager > tLightManager , int light , double x , double y , double z )
→ void
LightManager_setFalloff (Pointer <TLightManager > tLightManager , int entity , double falloff )
→ void
LightManager_setIntensity (Pointer <TLightManager > tLightManager , int entity , double intensity )
→ void
LightManager_setPosition (Pointer <TLightManager > tLightManager , int light , double x , double y , double z )
→ void
LightManager_setShadowCaster (Pointer <TLightManager > tLightManager , int entity , bool enabled )
→ void
LightManager_setSpotLightCone (Pointer <TLightManager > tLightManager , int entity , double inner , double outer )
→ void
makeFrustumMatrix (double left , double right , double bottom , double top , double near , double far )
→ Matrix4
Constructs a new OpenGL perspective projection matrix.
makeInfiniteMatrix (double fovYRadians , double aspectRatio , double zNear )
→ Matrix4
Constructs a new OpenGL infinite projection matrix.
makeInt32List (int length )
→ Int32List
makeOrthographicMatrix (double left , double right , double bottom , double top , double near , double far )
→ Matrix4
Constructs a new OpenGL orthographic projection matrix.
makePerspectiveMatrix (double fovYRadians , double aspectRatio , double zNear , double zFar )
→ Matrix4
Constructs a new OpenGL perspective projection matrix.
makePickCallbackFunctionPointer (DartPickCallbackFunction fn )
→ CallbackHolder <PickCallbackFunction >
makePlaneProjection (Vector3 planeNormal , Vector3 planePoint )
→ Matrix4
Returns a transformation matrix that transforms points onto
the plane specified with planeNormal
and planePoint
.
makePlaneReflection (Vector3 planeNormal , Vector3 planePoint )
→ Matrix4
Returns a transformation matrix that transforms points by reflecting
them through the plane specified with planeNormal
and planePoint
.
makeUint8List (int length )
→ Uint8List
makeViewMatrix (Vector3 cameraPosition , Vector3 cameraFocusPosition , Vector3 upDirection )
→ Matrix4
Constructs a new OpenGL view matrix.
Material_createGizmoMaterial (Pointer <TEngine > tEngine )
→ Pointer <TMaterial >
Material_createGizmoMaterialRenderThread (Pointer <TEngine > tEngine , Pointer <NativeFunction <Void Function(Pointer <TMaterial > ) > > onComplete )
→ void
Material_createGridMaterial (Pointer <TEngine > tEngine )
→ Pointer <TMaterial >
Material_createImageMaterial (Pointer <TEngine > tEngine )
→ Pointer <TMaterial >
Material_createImageMaterialRenderThread (Pointer <TEngine > tEngine , Pointer <NativeFunction <Void Function(Pointer <TMaterial > ) > > onComplete )
→ void
Material_createInstance (Pointer <TMaterial > tMaterial )
→ Pointer <TMaterialInstance >
Material_createInstanceRenderThread (Pointer <TMaterial > tMaterial , Pointer <NativeFunction <Void Function(Pointer <TMaterialInstance > ) > > onComplete )
→ void
Material_createOutlineMaterial (Pointer <TEngine > tEngine )
→ Pointer <TMaterial >
Material_createOutlineMaterialRenderThread (Pointer <TEngine > tEngine , Pointer <NativeFunction <Void Function(Pointer <TMaterial > ) > > onComplete )
→ void
Material_getFeatureLevel (Pointer <TMaterial > tMaterial )
→ int
Material_hasParameter (Pointer <TMaterial > tMaterial , Pointer <Char > propertyName )
→ bool
MaterialInstance_isStencilWriteEnabled (Pointer <TMaterialInstance > materialInstance )
→ bool
MaterialInstance_setCullingMode (Pointer <TMaterialInstance > materialInstance , int culling )
→ void
MaterialInstance_setDepthCulling (Pointer <TMaterialInstance > materialInstance , bool enabled )
→ void
MaterialInstance_setDepthFunc (Pointer <TMaterialInstance > materialInstance , int depthFunc )
→ void
MaterialInstance_setDepthWrite (Pointer <TMaterialInstance > materialInstance , bool enabled )
→ void
MaterialInstance_setParameterBool (Pointer <TMaterialInstance > materialInstance , Pointer <Char > propertyName , bool value )
→ void
MaterialInstance_setParameterFloat (Pointer <TMaterialInstance > materialInstance , Pointer <Char > propertyName , double value )
→ void
MaterialInstance_setParameterFloat2 (Pointer <TMaterialInstance > materialInstance , Pointer <Char > propertyName , double x , double y )
→ void
MaterialInstance_setParameterFloat3 (Pointer <TMaterialInstance > materialInstance , Pointer <Char > propertyName , double x , double y , double z )
→ void
MaterialInstance_setParameterFloat3Array (Pointer <TMaterialInstance > tMaterialInstance , Pointer <Char > propertyName , Pointer <Double > raw , int length )
→ void
MaterialInstance_setParameterFloat4 (Pointer <TMaterialInstance > materialInstance , Pointer <Char > propertyName , double x , double y , double w , double z )
→ void
MaterialInstance_setParameterInt (Pointer <TMaterialInstance > materialInstance , Pointer <Char > propertyName , int value )
→ void
MaterialInstance_setParameterMat4 (Pointer <TMaterialInstance > materialInstance , Pointer <Char > propertyName , Pointer <Double > matrix )
→ void
MaterialInstance_setParameterTexture (Pointer <TMaterialInstance > materialInstance , Pointer <Char > propertyName , Pointer <TTexture > texture , Pointer <TTextureSampler > sampler )
→ void
MaterialInstance_setStencilCompareFunction (Pointer <TMaterialInstance > materialInstance , int func , int face )
→ void
MaterialInstance_setStencilOpDepthFail (Pointer <TMaterialInstance > materialInstance , int op , int face )
→ void
MaterialInstance_setStencilOpDepthStencilPass (Pointer <TMaterialInstance > materialInstance , int op , int face )
→ void
MaterialInstance_setStencilOpStencilFail (Pointer <TMaterialInstance > materialInstance , int op , int face )
→ void
MaterialInstance_setStencilReadMask (Pointer <TMaterialInstance > materialInstance , int mask )
→ void
MaterialInstance_setStencilReferenceValue (Pointer <TMaterialInstance > materialInstance , int value , int face )
→ void
MaterialInstance_setStencilWrite (Pointer <TMaterialInstance > materialInstance , bool enabled )
→ void
MaterialInstance_setStencilWriteMask (Pointer <TMaterialInstance > materialInstance , int mask )
→ void
MaterialInstance_setTransparencyMode (Pointer <TMaterialInstance > materialInstance , int transparencyMode )
→ void
MaterialProvider_createMaterialInstance (Pointer <TMaterialProvider > provider , bool doubleSided , bool unlit , bool hasVertexColors , bool hasBaseColorTexture , bool hasNormalTexture , bool hasOcclusionTexture , bool hasEmissiveTexture , bool useSpecularGlossiness , int alphaMode , bool enableDiagnostics , bool hasMetallicRoughnessTexture , int metallicRoughnessUV , bool hasSpecularGlossinessTexture , int specularGlossinessUV , int baseColorUV , bool hasClearCoatTexture , int clearCoatUV , bool hasClearCoatRoughnessTexture , int clearCoatRoughnessUV , bool hasClearCoatNormalTexture , int clearCoatNormalUV , bool hasClearCoat , bool hasTransmission , bool hasTextureTransforms , int emissiveUV , int aoUV , int normalUV , bool hasTransmissionTexture , int transmissionUV , bool hasSheenColorTexture , int sheenColorUV , bool hasSheenRoughnessTexture , int sheenRoughnessUV , bool hasVolumeThicknessTexture , int volumeThicknessUV , bool hasSheen , bool hasIOR , bool hasVolume )
→ Pointer <TMaterialInstance >
MaterialProvider_createMaterialInstanceRenderThread (Pointer <TMaterialProvider > tMaterialProvider , bool doubleSided , bool unlit , bool hasVertexColors , bool hasBaseColorTexture , bool hasNormalTexture , bool hasOcclusionTexture , bool hasEmissiveTexture , bool useSpecularGlossiness , int alphaMode , bool enableDiagnostics , bool hasMetallicRoughnessTexture , int metallicRoughnessUV , bool hasSpecularGlossinessTexture , int specularGlossinessUV , int baseColorUV , bool hasClearCoatTexture , int clearCoatUV , bool hasClearCoatRoughnessTexture , int clearCoatRoughnessUV , bool hasClearCoatNormalTexture , int clearCoatNormalUV , bool hasClearCoat , bool hasTransmission , bool hasTextureTransforms , int emissiveUV , int aoUV , int normalUV , bool hasTransmissionTexture , int transmissionUV , bool hasSheenColorTexture , int sheenColorUV , bool hasSheenRoughnessTexture , int sheenRoughnessUV , bool hasVolumeThicknessTexture , int volumeThicknessUV , bool hasSheen , bool hasIOR , bool hasVolume , Pointer <NativeFunction <Void Function(Pointer <TMaterialInstance > ) > > callback )
→ void
mix (double min , double max , double a )
→ double
Interpolate between min
and max
with the amount of a
using a linear
interpolation. The computation is equivalent to the GLSL function mix.
NameComponentManager_create ()
→ Pointer <TNameComponentManager >
NameComponentManager_getName (Pointer <TNameComponentManager > tNameComponentManager , int entity )
→ Pointer <Char >
OverlayManager_addComponent (Pointer <TOverlayManager > tOverlayManager , int entityId , Pointer <TMaterialInstance > tMaterialInstance )
→ void
OverlayManager_create (Pointer <TEngine > tEngine , Pointer <TRenderer > tRenderer , Pointer <TView > tView , Pointer <TScene > tScene , Pointer <TRenderTarget > tRenderTarget )
→ Pointer <TOverlayManager >
OverlayManager_removeComponent (Pointer <TOverlayManager > tOverlayManager , int entityId )
→ void
OverlayManager_setRenderTarget (Pointer <TOverlayManager > tOverlayManager , Pointer <TRenderTarget > tRenderTarget )
→ void
pickRay (Matrix4 cameraMatrix , num viewportX , num viewportWidth , num viewportY , num viewportHeight , num pickX , num pickY , Vector3 rayNear , Vector3 rayFar )
→ bool
On success, rayNear
and rayFar
are the points where
the screen space pickX
, pickY
intersect with the near and far
planes respectively.
pixelBufferToBmp (Uint8List pixelBuffer , int width , int height , {bool hasAlpha = true , bool isFloat = false })
→ Future <Uint8List >
pixelBufferToPng (Uint8List pixelBuffer , int width , int height , {bool hasAlpha = true , bool isFloat = false , bool linearToSrgb = false , bool invertAces = false , bool flipY = false })
→ Future <Uint8List >
radians (double degrees )
→ double
Convert degrees
to radians.
relativeError (dynamic calculated , dynamic correct )
→ double
Returns relative error between calculated
and correct
.
The type of calculated
and correct
must match and can
be any vector, matrix, or quaternion.
RenderableManager_empty (Pointer <TRenderableManager > tRenderableManager )
→ bool
RenderableManager_getAabb (Pointer <TRenderableManager > tRenderableManager , int entityId )
→ Aabb3
RenderableManager_getBoundingBox (Pointer <TRenderableManager > tRenderableManager , int entityId )
→ Aabb3
RenderableManager_getFogEnabled (Pointer <TRenderableManager > tRenderableManager , int entityId )
→ bool
RenderableManager_getLightChannel (Pointer <TRenderableManager > tRenderableManager , int entityId , int channel )
→ bool
RenderableManager_getMaterialInstanceAt (Pointer <TRenderableManager > tRenderableManager , int entityId , int primitiveIndex )
→ Pointer <TMaterialInstance >
RenderableManager_getPrimitiveCount (Pointer <TRenderableManager > tRenderableManager , int entityId )
→ int
RenderableManager_hasComponent (Pointer <TRenderableManager > tRenderableManager , int entityId )
→ bool
RenderableManager_isRenderable (Pointer <TRenderableManager > tRenderableManager , int entityId )
→ bool
RenderableManager_isShadowCaster (Pointer <TRenderableManager > tRenderableManager , int entityId )
→ bool
RenderableManager_isShadowReceiver (Pointer <TRenderableManager > tRenderableManager , int entityId )
→ bool
RenderableManager_setCastShadows (Pointer <TRenderableManager > tRenderableManager , int entityId , bool castShadows )
→ void
RenderableManager_setMaterialInstanceAt (Pointer <TRenderableManager > tRenderableManager , int entityId , int primitiveIndex , Pointer <TMaterialInstance > tMaterialInstance )
→ bool
RenderableManager_setPriority (Pointer <TRenderableManager > tRenderableManager , int entityId , int priority )
→ void
RenderableManager_setReceiveShadows (Pointer <TRenderableManager > tRenderableManager , int entityId , bool receiveShadows )
→ void
RenderableManager_setVisibilityLayer (Pointer <TRenderableManager > tRenderableManager , int entityId , int layer )
→ void
Renderer_beginFrame (Pointer <TRenderer > tRenderer , Pointer <TSwapChain > tSwapChain , int frameTimeInNanos )
→ bool
Renderer_beginFrameRenderThread (Pointer <TRenderer > tRenderer , Pointer <TSwapChain > tSwapChain , int frameTimeInNanos , Pointer <NativeFunction <Void Function(Bool ) > > onComplete )
→ void
Renderer_endFrame (Pointer <TRenderer > tRenderer )
→ void
Renderer_endFrameRenderThread (Pointer <TRenderer > tRenderer , int requestId , VoidCallback onComplete )
→ void
Renderer_readPixels (Pointer <TRenderer > tRenderer , int width , int height , int xOffset , int yOffset , Pointer <TRenderTarget > tRenderTarget , int tPixelBufferFormat , int tPixelDataType , Pointer <Uint8 > out , int outLength )
→ void
Renderer_readPixelsRenderThread (Pointer <TRenderer > tRenderer , int width , int height , int xOffset , int yOffset , Pointer <TRenderTarget > tRenderTarget , int tPixelBufferFormat , int tPixelDataType , Pointer <Uint8 > out , int outLength , int requestId , VoidCallback onComplete )
→ void
Renderer_render (Pointer <TRenderer > tRenderer , Pointer <TView > tView )
→ void
Renderer_renderRenderThread (Pointer <TRenderer > tRenderer , Pointer <TView > tView , int requestId , VoidCallback onComplete )
→ void
Renderer_renderStandaloneView (Pointer <TRenderer > tRenderer , Pointer <TView > tView )
→ void
Renderer_renderStandaloneViewRenderThread (Pointer <TRenderer > tRenderer , Pointer <TView > tView , int requestId , VoidCallback onComplete )
→ void
Renderer_setClearOptions (Pointer <TRenderer > tRenderer , double clearR , double clearG , double clearB , double clearA , int clearStencil , bool clear , bool discard )
→ void
Renderer_setClearOptionsRenderThread (Pointer <TRenderer > tRenderer , double clearR , double clearG , double clearB , double clearA , int clearStencil , bool clear , bool discard , int requestId , VoidCallback onComplete )
→ void
Renderer_setFrameInterval (Pointer <TRenderer > tRenderer , double headRoomRatio , double scaleRate , int history , int interval )
→ void
RenderTarget_create (Pointer <TEngine > tEngine , int width , int height , Pointer <TTexture > color , Pointer <TTexture > depth )
→ Pointer <TRenderTarget >
RenderTarget_createRenderThread (Pointer <TEngine > tEngine , int width , int height , Pointer <TTexture > color , Pointer <TTexture > depth , Pointer <NativeFunction <Void Function(Pointer <TRenderTarget > ) > > onComplete )
→ void
RenderTarget_destroy (Pointer <TEngine > tEngine , Pointer <TRenderTarget > tRenderTarget )
→ void
RenderTarget_destroyRenderThread (Pointer <TEngine > tEngine , Pointer <TRenderTarget > tRenderTarget , int requestId , VoidCallback onComplete )
→ void
RenderTarget_getColorTexture (Pointer <TRenderTarget > tRenderTarget )
→ Pointer <TTexture >
RenderTarget_getColorTextureRenderThread (Pointer <TRenderTarget > tRenderTarget , Pointer <NativeFunction <Void Function(Pointer <TTexture > ) > > onComplete )
→ void
RenderTarget_getDepthTexture (Pointer <TRenderTarget > tRenderTarget )
→ Pointer <TTexture >
RenderThread_addTask (Pointer <NativeFunction <Void Function() > > task )
→ void
RenderThread_create ()
→ void
RenderThread_destroy ()
→ void
RenderThread_requestFrameAsync ()
→ void
RenderThread_setRenderTicker (Pointer <TRenderTicker > tRenderTicker )
→ void
RenderTicker_addAnimationManager (Pointer <TRenderTicker > tRenderTicker , Pointer <TAnimationManager > tAnimationManager )
→ void
RenderTicker_create (Pointer <TEngine > tEngine , Pointer <TRenderer > tRenderer )
→ Pointer <TRenderTicker >
RenderTicker_destroy (Pointer <TRenderTicker > tRenderTicker )
→ void
RenderTicker_removeAnimationManager (Pointer <TRenderTicker > tRenderTicker , Pointer <TAnimationManager > tAnimationManager )
→ void
RenderTicker_removeSwapChain (Pointer <TRenderTicker > tRenderTicker , Pointer <TSwapChain > swapChain )
→ void
RenderTicker_render (Pointer <TRenderTicker > tRenderTicker , int frameTimeInNanos )
→ void
RenderTicker_renderRenderThread (Pointer <TRenderTicker > tRenderTicker , int frameTimeInNanos , int requestId , VoidCallback onComplete )
→ void
RenderTicker_setOverlayManager (Pointer <TRenderTicker > tRenderTicker , Pointer <TOverlayManager > tOverlayManager )
→ void
RenderTicker_setRenderable (Pointer <TRenderTicker > tRenderTicker , Pointer <TSwapChain > swapChain , Pointer <Pointer <TView > > views , int numViews )
→ void
resizeWebCanvas (int width , int height )
→ void
Scene_addEntity (Pointer <TScene > tScene , int entityId )
→ void
Scene_addFilamentAsset (Pointer <TScene > tScene , Pointer <TFilamentAsset > asset )
→ void
Scene_addFilamentAssetRenderThread (Pointer <TScene > tScene , Pointer <TFilamentAsset > tAsset , int requestId , VoidCallback onComplete )
→ void
Scene_removeEntity (Pointer <TScene > tScene , int entityId )
→ void
Scene_setIndirectLight (Pointer <TScene > tScene , Pointer <TIndirectLight > tIndirectLight )
→ void
Scene_setSkybox (Pointer <TScene > tScene , Pointer <TSkybox > skybox )
→ void
SceneAsset_addToScene (Pointer <TSceneAsset > tSceneAsset , Pointer <TScene > tScene )
→ void
SceneAsset_createFromFilamentAsset (Pointer <TEngine > tEngine , Pointer <TGltfAssetLoader > tAssetLoader , Pointer <TNameComponentManager > tNameComponentManager , Pointer <TFilamentAsset > tFilamentAsset )
→ Pointer <TSceneAsset >
SceneAsset_createFromFilamentAssetRenderThread (Pointer <TEngine > tEngine , Pointer <TGltfAssetLoader > tAssetLoader , Pointer <TNameComponentManager > tNameComponentManager , Pointer <TFilamentAsset > tFilamentAsset , Pointer <NativeFunction <Void Function(Pointer <TSceneAsset > ) > > onComplete )
→ void
SceneAsset_createGeometry (Pointer <TEngine > tEngine , Pointer <Float > vertices , int numVertices , Pointer <Float > normals , int numNormals , Pointer <Float > uvs , int numUvs , Pointer <Uint16 > indices , int numIndices , int tPrimitiveType , Pointer <Pointer <TMaterialInstance > > materialInstances , int materialInstanceCount )
→ Pointer <TSceneAsset >
SceneAsset_createGeometryRenderThread (Pointer <TEngine > tEngine , Pointer <Float > vertices , int numVertices , Pointer <Float > normals , int numNormals , Pointer <Float > uvs , int numUvs , Pointer <Uint16 > indices , int numIndices , int tPrimitiveType , Pointer <Pointer <TMaterialInstance > > materialInstances , int materialInstanceCount , Pointer <NativeFunction <Void Function(Pointer <TSceneAsset > ) > > callback )
→ void
SceneAsset_createGrid (Pointer <TEngine > tEngine , Pointer <TMaterial > tMaterial )
→ Pointer <TSceneAsset >
SceneAsset_createGridRenderThread (Pointer <TEngine > tEngine , Pointer <TMaterial > tMaterial , Pointer <NativeFunction <Void Function(Pointer <TSceneAsset > ) > > callback )
→ void
SceneAsset_createInstance (Pointer <TSceneAsset > asset , Pointer <Pointer <TMaterialInstance > > materialInstances , int materialInstanceCount )
→ Pointer <TSceneAsset >
SceneAsset_createInstanceRenderThread (Pointer <TSceneAsset > asset , Pointer <Pointer <TMaterialInstance > > tMaterialInstances , int materialInstanceCount , Pointer <NativeFunction <Void Function(Pointer <TSceneAsset > ) > > callback )
→ void
SceneAsset_destroy (Pointer <TSceneAsset > tSceneAsset )
→ void
SceneAsset_destroyRenderThread (Pointer <TSceneAsset > tSceneAsset , int requestId , VoidCallback onComplete )
→ void
SceneAsset_getBoundingBox (Pointer <TSceneAsset > asset )
→ Aabb3
SceneAsset_getCameraEntities (Pointer <TSceneAsset > tSceneAsset )
→ Pointer <EntityId >
SceneAsset_getCameraEntityCount (Pointer <TSceneAsset > tSceneAsset )
→ int
SceneAsset_getChildEntities (Pointer <TSceneAsset > tSceneAsset , Pointer <EntityId > out )
→ void
SceneAsset_getChildEntityCount (Pointer <TSceneAsset > tSceneAsset )
→ int
SceneAsset_getEntity (Pointer <TSceneAsset > tSceneAsset )
→ int
SceneAsset_getFilamentAsset (Pointer <TSceneAsset > tSceneAsset )
→ Pointer <TFilamentAsset >
SceneAsset_getInstance (Pointer <TSceneAsset > tSceneAsset , int index )
→ Pointer <TSceneAsset >
SceneAsset_getInstanceCount (Pointer <TSceneAsset > tSceneAsset )
→ int
SceneAsset_getLightEntities (Pointer <TSceneAsset > tSceneAsset )
→ Pointer <EntityId >
SceneAsset_getLightEntityCount (Pointer <TSceneAsset > tSceneAsset )
→ int
SceneAsset_removeFromScene (Pointer <TSceneAsset > tSceneAsset , Pointer <TScene > tScene )
→ void
setFrustumMatrix (Matrix4 perspectiveMatrix , double left , double right , double bottom , double top , double near , double far )
→ void
Constructs an OpenGL perspective projection matrix in perspectiveMatrix
.
setInfiniteMatrix (Matrix4 infiniteMatrix , double fovYRadians , double aspectRatio , double zNear )
→ void
Constructs an OpenGL infinite projection matrix in infiniteMatrix
.
fovYRadians
specifies the field of view angle, in radians, in the y
direction.
aspectRatio
specifies the aspect ratio that determines the field of view
in the x direction. The aspect ratio of x (width) to y (height).
zNear
specifies the distance from the viewer to the near plane
(always positive).
setModelMatrix (Matrix4 modelMatrix , Vector3 forwardDirection , Vector3 upDirection , double tx , double ty , double tz )
→ void
Constructs an OpenGL model matrix in modelMatrix
.
Model transformation is the inverse of the view transformation.
Model transformation is also known as "camera" transformation.
Model matrix is commonly used to compute a object location/orientation into
the full model-view stack.
setOrthographicMatrix (Matrix4 orthographicMatrix , double left , double right , double bottom , double top , double near , double far )
→ void
Constructs an OpenGL orthographic projection matrix in orthographicMatrix
.
setPerspectiveMatrix (Matrix4 perspectiveMatrix , double fovYRadians , double aspectRatio , double zNear , double zFar )
→ void
Constructs an OpenGL perspective projection matrix in perspectiveMatrix
.
setRotationMatrix (Matrix4 rotationMatrix , Vector3 forwardDirection , Vector3 upDirection )
→ void
Constructs a rotation matrix in rotationMatrix
.
setViewMatrix (Matrix4 viewMatrix , Vector3 cameraPosition , Vector3 cameraFocusPosition , Vector3 upDirection )
→ void
Constructs an OpenGL view matrix in viewMatrix
.
View transformation is the inverse of the model transformation.
View matrix is commonly used to compute the camera location/orientation into
the full model-view stack.
sizeOf <T extends SizedNativeType > ()
→ int
Number of bytes used by native type T.
Skybox_setColor (Pointer <TSkybox > tSkybox , double r , double g , double b , double a )
→ void
smoothStep (double edge0 , double edge1 , double amount )
→ double
Do a smooth step (hermite interpolation) interpolation with edge0
and
edge1
by amount
. The computation is equivalent to the GLSL function
smoothstep.
stackRestore (Pointer <NativeType > ptr )
→ void
stackSave ()
→ Pointer <NativeType >
Texture_build (Pointer <TEngine > engine , int width , int height , int depth , int levels , int tUsage , int import$ , int sampler , int format )
→ Pointer <TTexture >
Texture_buildRenderThread (Pointer <TEngine > engine , int width , int height , int depth , int levels , int tUsage , int import$ , int sampler , int format , Pointer <NativeFunction <Void Function(Pointer <TTexture > ) > > onComplete )
→ void
Texture_generateMipMaps (Pointer <TTexture > tTexture , Pointer <TEngine > tEngine )
→ void
Texture_generateMipMapsRenderThread (Pointer <TTexture > tTexture , Pointer <TEngine > tEngine , int requestId , VoidCallback onComplete )
→ void
Texture_getDepth (Pointer <TTexture > tTexture , int level )
→ int
Texture_getHeight (Pointer <TTexture > tTexture , int level )
→ int
Texture_getLevels (Pointer <TTexture > tTexture )
→ int
Texture_getUsage (Pointer <TTexture > tTexture , int level )
→ int
Texture_getWidth (Pointer <TTexture > tTexture , int level )
→ int
Texture_loadImage (Pointer <TEngine > tEngine , Pointer <TTexture > tTexture , Pointer <TLinearImage > tImage , int bufferFormat , int pixelDataType , int level )
→ bool
Texture_loadImageRenderThread (Pointer <TEngine > tEngine , Pointer <TTexture > tTexture , Pointer <TLinearImage > tImage , int bufferFormat , int pixelDataType , int level , Pointer <NativeFunction <Void Function(Bool ) > > onComplete )
→ void
Texture_setImage (Pointer <TEngine > tEngine , Pointer <TTexture > tTexture , int level , Pointer <Uint8 > data , int size , int x_offset , int y_offset , int z_offset , int width , int height , int depth , int bufferFormat , int pixelDataType )
→ bool
Texture_setImageRenderThread (Pointer <TEngine > tEngine , Pointer <TTexture > tTexture , int level , Pointer <Uint8 > data , int size , int x_offset , int y_offset , int z_offset , int width , int height , int depth , int bufferFormat , int pixelDataType , Pointer <NativeFunction <Void Function(Bool ) > > onComplete )
→ void
TextureSampler_create ()
→ Pointer <TTextureSampler >
TextureSampler_createRenderThread (Pointer <NativeFunction <Void Function(Pointer <TTextureSampler > ) > > onComplete )
→ void
TextureSampler_createWithComparison (int compareMode , int compareFunc )
→ Pointer <TTextureSampler >
TextureSampler_createWithComparisonRenderThread (int compareMode , int compareFunc , Pointer <NativeFunction <Void Function(Pointer <TTextureSampler > ) > > onComplete )
→ void
TextureSampler_createWithFiltering (int minFilter , int magFilter , int wrapS , int wrapT , int wrapR )
→ Pointer <TTextureSampler >
TextureSampler_createWithFilteringRenderThread (int minFilter , int magFilter , int wrapS , int wrapT , int wrapR , Pointer <NativeFunction <Void Function(Pointer <TTextureSampler > ) > > onComplete )
→ void
TextureSampler_destroy (Pointer <TTextureSampler > sampler )
→ void
TextureSampler_destroyRenderThread (Pointer <TTextureSampler > sampler , int requestId , VoidCallback onComplete )
→ void
TextureSampler_setAnisotropy (Pointer <TTextureSampler > sampler , double anisotropy )
→ void
TextureSampler_setAnisotropyRenderThread (Pointer <TTextureSampler > sampler , double anisotropy , int requestId , VoidCallback onComplete )
→ void
TextureSampler_setCompareMode (Pointer <TTextureSampler > sampler , int mode , int func )
→ void
TextureSampler_setCompareModeRenderThread (Pointer <TTextureSampler > sampler , int mode , int func , int requestId , VoidCallback onComplete )
→ void
TextureSampler_setMagFilter (Pointer <TTextureSampler > sampler , int filter )
→ void
TextureSampler_setMagFilterRenderThread (Pointer <TTextureSampler > sampler , int filter , int requestId , VoidCallback onComplete )
→ void
TextureSampler_setMinFilter (Pointer <TTextureSampler > sampler , int filter )
→ void
TextureSampler_setMinFilterRenderThread (Pointer <TTextureSampler > sampler , int filter , int requestId , VoidCallback onComplete )
→ void
TextureSampler_setWrapModeR (Pointer <TTextureSampler > sampler , int mode )
→ void
TextureSampler_setWrapModeRRenderThread (Pointer <TTextureSampler > sampler , int mode , int requestId , VoidCallback onComplete )
→ void
TextureSampler_setWrapModeS (Pointer <TTextureSampler > sampler , int mode )
→ void
TextureSampler_setWrapModeSRenderThread (Pointer <TTextureSampler > sampler , int mode , int requestId , VoidCallback onComplete )
→ void
TextureSampler_setWrapModeT (Pointer <TTextureSampler > sampler , int mode )
→ void
TextureSampler_setWrapModeTRenderThread (Pointer <TTextureSampler > sampler , int mode , int requestId , VoidCallback onComplete )
→ void
TransformManager_createComponent (Pointer <TTransformManager > tTransformManager , int entity )
→ void
TransformManager_getAncestor (Pointer <TTransformManager > tTransformManager , int childEntityId )
→ int
TransformManager_getLocalTransform (Pointer <TTransformManager > tTransformManager , int entityId )
→ double4x4
TransformManager_getParent (Pointer <TTransformManager > tTransformManager , int child )
→ int
TransformManager_getWorldTransform (Pointer <TTransformManager > tTransformManager , int entityId )
→ double4x4
TransformManager_setParent (Pointer <TTransformManager > tTransformManager , int child , int parent , bool preserveScaling )
→ void
TransformManager_setTransform (Pointer <TTransformManager > tTransformManager , int entityId , double4x4 transform )
→ void
TransformManager_transformToUnitCube (Pointer <TTransformManager > tTransformManager , int entityId , Aabb3 boundingBox )
→ bool
unproject (Matrix4 cameraMatrix , num viewportX , num viewportWidth , num viewportY , num viewportHeight , num pickX , num pickY , num pickZ , Vector3 pickWorld )
→ bool
On success, Sets pickWorld
to be the world space position of
the screen space pickX
, pickY
, and pickZ
.
using <R > (R computation (Arena ), [Allocator wrappedAllocator = calloc ])
→ R
Runs computation
with a new Arena , and releases all allocations at the
end.
View_getCamera (Pointer <TView > tView )
→ Pointer <TCamera >
View_getRenderTarget (Pointer <TView > tView )
→ Pointer <TRenderTarget >
View_getScene (Pointer <TView > tView )
→ Pointer <TScene >
View_getViewport (Pointer <TView > view )
→ TViewport
View_isDitheringEnabled (Pointer <TView > tView )
→ bool
View_isStencilBufferEnabled (Pointer <TView > tView )
→ bool
View_isTransparentPickingEnabled (Pointer <TView > tView )
→ bool
View_pick (Pointer <TView > tView , int requestId , int x , int y , PickCallback callback )
→ void
View_pickRenderThread (Pointer <TView > tView , int requestId , int x , int y , PickCallback callback )
→ void
View_setAntiAliasing (Pointer <TView > tView , bool msaa , bool fxaa , bool taa )
→ void
View_setBlendMode (Pointer <TView > view , int blendMode )
→ void
View_setBloom (Pointer <TView > tView , bool enabled , double strength )
→ void
View_setBloomRenderThread (Pointer <TView > tView , bool enabled , double strength , int requestId , VoidCallback onComplete )
→ void
View_setCamera (Pointer <TView > tView , Pointer <TCamera > tCamera )
→ void
View_setCameraRenderThread (Pointer <TView > tView , Pointer <TCamera > tCamera , int requestId , VoidCallback onComplete )
→ void
View_setColorGrading (Pointer <TView > tView , Pointer <TColorGrading > tColorGrading )
→ void
View_setColorGradingRenderThread (Pointer <TView > tView , Pointer <TColorGrading > tColorGrading , int requestId , VoidCallback onComplete )
→ void
View_setDitheringEnabled (Pointer <TView > tView , bool enabled )
→ void
View_setFogOptions (Pointer <TView > tView , TFogOptions tFogOptions )
→ void
View_setFrontFaceWindingInverted (Pointer <TView > tView , bool inverted )
→ void
View_setFrustumCullingEnabled (Pointer <TView > view , bool enabled )
→ void
View_setLayerEnabled (Pointer <TView > tView , int layer , bool visible )
→ void
View_setName (Pointer <TView > tView , Pointer <Char > name )
→ void
View_setPostProcessing (Pointer <TView > tView , bool enabled )
→ void
View_setRenderQuality (Pointer <TView > tView , int qualityLevel )
→ void
View_setRenderTarget (Pointer <TView > view , Pointer <TRenderTarget > renderTarget )
→ void
View_setScene (Pointer <TView > tView , Pointer <TScene > tScene )
→ void
View_setShadowsEnabled (Pointer <TView > tView , bool enabled )
→ void
View_setShadowType (Pointer <TView > tView , int shadowType )
→ void
View_setSoftShadowOptions (Pointer <TView > tView , double penumbraScale , double penumbraRatioScale )
→ void
View_setStencilBufferEnabled (Pointer <TView > tView , bool enabled )
→ void
View_setTransparentPickingEnabled (Pointer <TView > tView , bool enabled )
→ void
View_setViewport (Pointer <TView > view , int width , int height )
→ void
withBoolCallback (dynamic func (Pointer <NativeFunction <Void Function(Bool ) > > ) )
→ Future <bool >
withCharPtrCallback (dynamic func (Pointer <NativeFunction <Void Function(Pointer <Char > ) > > ) )
→ Future <String >
withFloatCallback (dynamic func (Pointer <NativeFunction <Void Function(Float ) > > ) )
→ Future <double >
withIntCallback (dynamic func (Pointer <NativeFunction <Void Function(Int32 ) > > ) )
→ Future <int >
withPointerCallback <T extends NativeType > (dynamic func (Pointer <NativeFunction <Void Function(Pointer <T > ) > > ) )
→ Future <Pointer <T > >
withUInt32Callback (dynamic func (Pointer <NativeFunction <Void Function(Uint32 ) > > ) )
→ Future <int >
withVoidCallback (dynamic func (int , Pointer <NativeFunction <Void Function(Int32 ) > > ) )
→ Future <void >
withZoneArena <R > (R computation (), [Allocator wrappedAllocator = calloc ])
→ R
Creates a zoned Arena to manage native resources.
Typedefs
Dart_NativeMessageHandler
= Void Function(Int64 , Pointer <Dart_CObject > )
DartEntityId
= int
DartFilamentRenderCallbackFunction
= void Function(Pointer <Void > owner )
DartGizmoPickCallbackFunction
= void Function(int resultType , double x , double y , double z )
DartPickCallbackFunction
= void Function(int requestId , DartEntityId entityId , double depth , double fragX , double fragY , double fragZ )
DartVoidCallbackFunction
= void Function(int requestId )
EntityId
= Int32
FilamentPickResult
= ({double depth , ThermionEntity entity , double fragX , double fragY , double fragZ , int x , int y } )
The result of a picking operation (see ThermionViewer.pick
for more details).
x
and y
refer to the original screen coordinates used to call pick
; this should
match the values of fragX
and fragY
. fragZ
is the depth value in screen coordinates,
depth
is the value in the depth buffer (i.e. fragZ = 1.0 - depth).
FilamentRenderCallback
= Pointer <NativeFunction <FilamentRenderCallbackFunction > >
FilamentRenderCallbackFunction
= Void Function(Pointer <Void > owner )
Float64
= Double
GizmoPickCallback
= Pointer <NativeFunction <GizmoPickCallbackFunction > >
GizmoPickCallbackFunction
= Void Function(UnsignedInt resultType , Float x , Float y , Float z )
IntPtrList
= Int64List
NativeFinalizerFunction
= NativeFunction <Void Function(Pointer <Void > token ) >
The native function type for NativeFinalizer s.
PickCallback
= Pointer <NativeFunction <PickCallbackFunction > >
PickCallbackFunction
= Void Function(Uint32 requestId , EntityId entityId , Float depth , Float fragX , Float fragY , Float fragZ )
PickResult
= FilamentPickResult
PointerClass <T extends NativeType >
= Pointer <T >
PointerEventDetails
= (Vector2 , Vector2 )
ThermionEntity
= int
ThermionTexture
= Texture
VoidCallback
= Pointer <NativeFunction <VoidCallbackFunction > >
VoidCallbackFunction
= Void Function(Int32 requestId )
VoidPointerClass
= Pointer <Void >