finish top level android directory files

This commit is contained in:
2024-08-07 13:07:15 +02:00
parent 50fb0bb5f9
commit 66d5815ca7
11 changed files with 1325 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
//+build android
package android
foreign import android "system:android"
foreign android {
/**
* Get a reference to the native ASurfaceTexture from the corresponding java object.
*
* The caller must keep a reference to the Java SurfaceTexture during the lifetime of the returned
* ASurfaceTexture. Failing to do so could result in the ASurfaceTexture to stop functioning
* properly once the Java object gets finalized.
* However, this will not result in program termination.
*
* Available since API level 28.
*
* \param env JNI environment
* \param surfacetexture Instance of Java SurfaceTexture object
* \return native ASurfaceTexture reference or nullptr if the java object is not a SurfaceTexture.
* The returned reference MUST BE released when it's no longer needed using
* ASurfaceTexture_release().
*/
ASurfaceTexture_fromSurfaceTexture :: proc(env: ^JNIEnv, surfacetexture: jobject) -> ^ASurfaceTexture ---
}