createEngine

actual fun ArSession.createEngine(): Engine(source)

Creates the Filament engine to render this session with. Only an engine created here can draw the camera image through CameraBackground: on Android it uses the OpenGL backend and shares the GL context ARCore writes the image in. On iOS it is a Metal engine with nothing special about it.

Call it from the thread that calls ArSession.update. The caller owns the engine and destroys it with Engine.destroy.

expect fun ArSession.createEngine(): Engine(source)

Creates the Filament engine to render this session with. Only an engine created here can draw the camera image through CameraBackground: on Android it uses the OpenGL backend and shares the GL context ARCore writes the image in. On iOS it is a Metal engine with nothing special about it.

Call it from the thread that calls ArSession.update. The caller owns the engine and destroys it with Engine.destroy.

actual fun ArSession.createEngine(): Engine(source)

Creates the Filament engine to render this session with. Only an engine created here can draw the camera image through CameraBackground: on Android it uses the OpenGL backend and shares the GL context ARCore writes the image in. On iOS it is a Metal engine with nothing special about it.

Call it from the thread that calls ArSession.update. The caller owns the engine and destroys it with Engine.destroy.