Back to Filament

attach

docs/android/dokka/filament-android/com.google.android.filament.android/-display-helper/attach.md

1.75.0938 B
Original Source

//filament-android/com.google.android.filament.android/DisplayHelper/attach

attach

[main]
open fun attach(renderer: Renderer, display: Display)

Sets the filament Renderer associated to the Display, from this point on, Renderer.DisplayInfo will be automatically updated when the Display properties change. This is typically called from onNativeWindowChanged.

Parameters

main

renderera filament Renderer instance
displaya Display to be associated with the Renderer