docs/android/dokka/filament-android/com.google.android.filament/-engine/create-swap-chain.md
//filament-android/com.google.android.filament/Engine/createSwapChain
[main]
open fun createSwapChain(surface: Any): SwapChain
Creates an opaque SwapChain from the given OS native window handle.
a newly created SwapChain object
main
| surface | on Android, must be an instance of android.view.Surface |
| IllegalStateException | can be thrown if the SwapChain couldn't be created |
[main]
open fun createSwapChain(surface: Any, flags: Long): SwapChain
Creates a SwapChain from the given OS native window handle.
a newly created SwapChain object
main
| surface | on Android, must be an instance of android.view.Surface |
| flags | configuration flags, see SwapChainFlags |
| SwapChainFlags |
| IllegalStateException | can be thrown if the SwapChain couldn't be created |
[main]
open fun createSwapChain(width: Int, height: Int, flags: Long): SwapChain
Creates a headless SwapChain
a newly created SwapChain object
main
| width | width of the rendering buffer |
| height | height of the rendering buffer |
| flags | configuration flags, see SwapChainFlags |
| SwapChainFlags |
| IllegalStateException | can be thrown if the SwapChain couldn't be created |