create

actual fun create(): Engine

Create an Engine with the platform's optimal backend (usually Vulkan or Metal).

Return

A new Engine instance using the default backend.


actual fun create(backend: Engine.Backend): Engine

Create an Engine with a specific rendering backend.

Return

A new Engine instance using the specified backend.

Parameters

backend

The backend to use (OPENGL, VULKAN, METAL, WEBGPU, or NOOP).


actual fun create(sharedContext: Any): Engine

Create an Engine sharing a platform-specific rendering context.

This allows multiple Engine instances or integration with existing rendering contexts.

Return

A new Engine instance sharing the given context.

Parameters

sharedContext

Platform-specific context (e.g., EGLContext on Android).

expect fun create(): Engine

Create an Engine with the platform's optimal backend (usually Vulkan or Metal).

Return

A new Engine instance using the default backend.


expect fun create(backend: Engine.Backend): Engine

Create an Engine with a specific rendering backend.

Return

A new Engine instance using the specified backend.

Parameters

backend

The backend to use (OPENGL, VULKAN, METAL, WEBGPU, or NOOP).


expect fun create(sharedContext: Any): Engine

Create an Engine sharing a platform-specific rendering context.

This allows multiple Engine instances or integration with existing rendering contexts.

Return

A new Engine instance sharing the given context.

Parameters

sharedContext

Platform-specific context (e.g., EGLContext on Android).

actual fun create(): Engine

Create an Engine with the platform's optimal backend (usually Vulkan or Metal).

Return

A new Engine instance using the default backend.


actual fun create(backend: Engine.Backend): Engine

Create an Engine with a specific rendering backend.

Return

A new Engine instance using the specified backend.

Parameters

backend

The backend to use (OPENGL, VULKAN, METAL, WEBGPU, or NOOP).


actual fun create(sharedContext: Any): Engine

Create an Engine sharing a platform-specific rendering context.

This allows multiple Engine instances or integration with existing rendering contexts.

Return

A new Engine instance sharing the given context.

Parameters

sharedContext

Platform-specific context (e.g., EGLContext on Android).

actual fun create(): Engine

Create an Engine with the platform's optimal backend (usually Vulkan or Metal).

Return

A new Engine instance using the default backend.


actual fun create(backend: Engine.Backend): Engine

Create an Engine with a specific rendering backend.

Return

A new Engine instance using the specified backend.

Parameters

backend

The backend to use (OPENGL, VULKAN, METAL, WEBGPU, or NOOP).


actual fun create(sharedContext: Any): Engine

Create an Engine sharing a platform-specific rendering context.

This allows multiple Engine instances or integration with existing rendering contexts.

Return

A new Engine instance sharing the given context.

Parameters

sharedContext

Platform-specific context (e.g., EGLContext on Android).

actual fun create(): Engine

Create an Engine with the platform's optimal backend (usually Vulkan or Metal).

Return

A new Engine instance using the default backend.


actual fun create(backend: Engine.Backend): Engine

Create an Engine with a specific rendering backend.

Return

A new Engine instance using the specified backend.

Parameters

backend

The backend to use (OPENGL, VULKAN, METAL, WEBGPU, or NOOP).


actual fun create(sharedContext: Any): Engine

Create an Engine sharing a platform-specific rendering context.

This allows multiple Engine instances or integration with existing rendering contexts.

Return

A new Engine instance sharing the given context.

Parameters

sharedContext

Platform-specific context (e.g., EGLContext on Android).