Back to Filament

sharedContext

docs/android/dokka/filament-android/com.google.android.filament/-engine/-builder/shared-context.md

1.75.0712 B
Original Source

//filament-android/com.google.android.filament/Engine/Builder/sharedContext

sharedContext

[main]
open fun sharedContext(sharedContext: Any): Engine.Builder

Sets a sharedContext for the Engine.

Return

A reference to this Builder for chaining calls.

Parameters

main

sharedContextA platform-dependant OpenGL context used as a shared context when creating filament's internal context. On Android this parameter must be an instance of android.opengl.EGLContext.