create

fun create(backend: Engine.Backend = Backend.DEFAULT, sharedContext: Any? = null, config: Engine.Config? = null): Engine?

Creates an Engine, or returns null if the backend couldn't be initialized.

Parameters

backend

The backend to use; DEFAULT lets the platform choose.

sharedContext

A platform-specific context to share (e.g. an EGLContext on Android).

config

Advanced configuration, or null for the defaults.