Class reference

ExternalTexture

Inherits Texture2D

Texture which displays the content of an external buffer.

Description

Displays the content of an external buffer provided by the platform. Requires the OES_EGL_image_external extension (OpenGL) or VK_ANDROID_external_memory_android_hardware_buffer extension (Vulkan). Note: This is currently only supported in Android builds.

Properties

bool resource_local_to_scene = false

Vector2 size = Vector2(256, 256)

External texture size.

Methods

int get_external_texture_id() const

Returns the external texture ID. Depending on your use case, you may need to pass this to platform APIs, for example, when creating an android.graphics.SurfaceTexture on Android.

void set_external_buffer_id(int external_buffer_id)

Sets the external buffer ID. Depending on your use case, you may need to call this with data received from a platform API, for example, SurfaceTexture.getHardwareBuffer() on Android.

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.