Methods
buildSkybox ({Texture ? texture = null })
→ Future <Skybox >
Builds a Skybox
instance. This will not be attached to any scene until
setSkybox
is called.
capture (covariant SwapChain ? swapChain , {covariant View ? view , bool captureRenderTarget = false , PixelDataFormat pixelDataFormat = PixelDataFormat.RGBA , PixelDataType pixelDataType = PixelDataType.FLOAT , Future beforeRender (View )?, bool render = true })
→ Future <List <(View , Uint8List ) > >
Returns pixel buffer(s) for view
(or, if null, all views associated
with swapChain
by calling register ).
createCamera ()
→ Future <Camera >
createColorGrading (ToneMapper mapper )
→ Future <T >
createDirectLight (DirectLight directLight )
→ Future <ThermionEntity >
createEntity ({bool createTransformComponent = true })
→ Future <ThermionEntity >
createGeometry (Geometry geometry , T animationManager , {List <MaterialInstance > ? materialInstances , bool keepData = false })
→ Future <ThermionAsset >
createGizmo (covariant View view , T animationManager , GizmoType type )
→ Future <GizmoAsset >
createHeadlessSwapChain (int width , int height , {bool hasStencilBuffer = false })
→ Future <SwapChain >
createImage (int width , int height , int channels )
→ Future <LinearImage >
Creates an (empty) imge with the given dimensions.
createImageMaterialInstance ()
→ Future <MaterialInstance >
createMaterial (Uint8List data )
→ Future <Material >
createRenderTarget (int width , int height , {covariant Texture ? color , covariant Texture ? depth })
→ Future <RenderTarget >
createScene ()
→ Future <Scene >
createSwapChain (T handle , {bool hasStencilBuffer = false })
→ Future <SwapChain >
createTexture (int width , int height , {int depth = 1 , int levels = 1 , Set <TextureUsage > flags = const {TextureUsage.TEXTURE_USAGE_SAMPLEABLE} , TextureSamplerType textureSamplerType = TextureSamplerType.SAMPLER_2D , TextureFormat textureFormat = TextureFormat.RGBA32F , int ? importedTextureHandle })
→ Future <Texture >
createTexturedQuad ()
→ Future <TexturedQuad >
Create a textured quad in screenspace. This can be used as an image or a solid block.
createTextureSampler ({TextureMinFilter minFilter = TextureMinFilter.LINEAR , TextureMagFilter magFilter = TextureMagFilter.LINEAR , TextureWrapMode wrapS = TextureWrapMode.CLAMP_TO_EDGE , TextureWrapMode wrapT = TextureWrapMode.CLAMP_TO_EDGE , TextureWrapMode wrapR = TextureWrapMode.CLAMP_TO_EDGE , double anisotropy = 0.0 , TextureCompareMode compareMode = TextureCompareMode.NONE , TextureCompareFunc compareFunc = TextureCompareFunc.LESS_EQUAL })
→ Future <TextureSampler >
createUbershaderMaterialInstance ({bool doubleSided = false , bool unlit = false , bool hasVertexColors = false , bool hasBaseColorTexture = false , bool hasNormalTexture = false , bool hasOcclusionTexture = false , bool hasEmissiveTexture = false , bool useSpecularGlossiness = false , AlphaMode alphaMode = AlphaMode.OPAQUE , bool enableDiagnostics = false , bool hasMetallicRoughnessTexture = false , int metallicRoughnessUV = -1 , int baseColorUV = -1 , bool hasClearCoatTexture = false , int clearCoatUV = -1 , bool hasClearCoatRoughnessTexture = false , int clearCoatRoughnessUV = -1 , bool hasClearCoatNormalTexture = false , int clearCoatNormalUV = -1 , bool hasClearCoat = false , bool hasTransmission = false , bool hasTextureTransforms = false , int emissiveUV = -1 , int aoUV = -1 , int normalUV = -1 , bool hasTransmissionTexture = false , int transmissionUV = -1 , bool hasSheenColorTexture = false , int sheenColorUV = -1 , bool hasSheenRoughnessTexture = false , int sheenRoughnessUV = -1 , bool hasVolumeThicknessTexture = false , int volumeThicknessUV = -1 , bool hasSheen = false , bool hasIOR = false , bool hasVolume = false })
→ Future <MaterialInstance >
createUnlitMaterialInstance ()
→ Future <MaterialInstance >
createView ()
→ Future <View >
decodeImage (Uint8List data , {String name = "image" , bool requireAlpha = false })
→ Future <LinearImage >
Decodes the specified image data.
destroy ()
→ Future
destroyAsset (covariant ThermionAsset asset )
→ Future
destroyScene (Scene scene )
→ Future
destroySwapChain (SwapChain swapChain )
→ Future
destroyView (View view )
→ Future
flush ()
→ Future
getAncestor (ThermionEntity entity )
→ Future <ThermionEntity ? >
Gets the ancestor (ultimate parent) entity of entity
. Returns null if the entity has no parent.
getBoundingBox (ThermionEntity entity )
→ Future <Aabb3 >
Gets the bounding box for entity
(which is assumed to be
have a renderable component attached).
getMaterialInstanceAt (ThermionEntity entity , int primitiveIndex )
→ Future <MaterialInstance >
getNameForEntity (ThermionEntity entity )
→ String ?
Retrieves the name assigned to the given entity (usually corresponds to the glTF mesh name).
getParent (ThermionEntity entity )
→ Future <ThermionEntity ? >
Gets the parent entity of entity
. Returns null if the entity has no parent.
getPrimitiveCount (ThermionEntity entity )
→ Future <int >
Gets the number of primitives for entity
(which is assumed to be
have a renderable component attached)
getSwapChains ()
→ Future <Iterable <SwapChain > >
getWorldTransform (ThermionEntity entity )
→ Future <Matrix4 >
isRenderable (ThermionEntity entity )
→ Future <bool >
loadGltfFromBuffer (Uint8List data , T animationManager , {int initialInstances = 1 , bool keepData = false , int priority = 4 , int layer = 0 , bool loadResourcesAsync = false , String ? resourceUri })
→ Future <ThermionAsset >
See FilamentViewerFFI.loadGltf
for details.
loadKtx2 (Uint8List data )
→ Future <Texture >
Create a Texture from the content of a KTX2 file containing
BasisU-encoded data. Even though the KTX2 format does not mandate BasisU
compression, the Filament implementation uses BasisU to decode KTX2 data
(which will fail if you pass an uncompressed KTX2 file).
loadResource (String uri )
→ Future <Uint8List >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDestroy (Future callback () )
→ void
register (covariant SwapChain swapChain , covariant View view )
→ Future
registerRequestFrameHook (Future hook () )
→ Future
render ()
→ Future
requestFrame ()
→ Future
setClearOptions (double r , double g , double b , double a , {int clearStencil = 0 , bool discard = false , bool clear = true })
→ Future
setMaterialInstanceAt (ThermionEntity entity , int primitiveIndex , MaterialInstance materialInstance )
→ Future
setParent (ThermionEntity child , ThermionEntity ? parent , {bool preserveScaling })
→ Future
Sets the parent transform of child
to parent
.
setPriority (ThermionEntity entity , int priority )
→ Future
Sets the render priority for entity
.
priority
should be be between 0 and 7, with 0 meaning highest priority
(rendered first) and 7 meaning lowest priority (rendered last).
setTransform (ThermionEntity entity , Matrix4 transform )
→ Future
toString ()
→ String
A string representation of this object.
inherited
unregister (covariant SwapChain swapChain , covariant View view )
→ Future
unregisterRequestFrameHook (Future hook () )
→ Future
updateRenderOrder ()
→ Future