Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ExternalTexture
Hereda: Texture2D < Texture < Resource < RefCounted < Object
Texture which displays the content of an external buffer.
Descripción
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.
Propiedades
resource_local_to_scene |
|
|
|
Métodos
get_external_texture_id() const |
|
void |
set_external_buffer_id(external_buffer_id: int) |
Descripciones de Propiedades
Vector2 size = Vector2(256, 256) 🔗
Tamaño de la textura externa.
Descripciones de Métodos
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(external_buffer_id: int) 🔗
Establece el ID del búfer externo.
Dependiendo de tu caso de uso, es posible que debas llamar a esto con datos recibidos desde una API de la plataforma, por ejemplo, SurfaceTexture.getHardwareBuffer() en Android.