ExternalTexture
继承: Texture2D
< Texture
< Resource
< RefCounted
< Object
Texture which displays the content of an external buffer.
描述
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.
属性
方法
int | get_external_texture_id ( ) const1 |
void | set_external_buffer_id ( external_buffer_id: int ) |
属性说明
Vector2
size = Vector2(256, 256)
External texture size.
方法说明
int
get_external_texture_id ( ) const1
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
)
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.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。