Back to Filament

isReadyToRender

docs/android/dokka/filament-android/com.google.android.filament.android/-ui-helper/is-ready-to-render.md

1.75.0637 B
Original Source

//filament-android/com.google.android.filament.android/UiHelper/isReadyToRender

isReadyToRender

[main]
open fun isReadyToRender(): Boolean

Checks whether we are ready to render into the attached surface. Using OpenGL ES when this returns true, will result in drawing commands being lost, HOWEVER, GLES state will be preserved. This is useful to initialize the engine.

Return

true: rendering is possible, false: rendering is not possible.