CoronaExternalGetUserData()

Revision Release 2024.3703
Keywords iOS, Solar2D Native, C, CoronaGraphics.h, CoronaExternalGetUserData
See also CoronaGraphics.h
Corona C Functions

Overview

Returns the userData that was assigned to a Lua TextureResourceExternal object which was created by a call to the CoronaExternalPushTexture() function. This function is useful when implementing the callback.onGetField() callback.

Returns NULL if the given stack index doesn't reference a texture object.

Syntax

void* CoronaExternalGetUserData( lua_State *L, int index )
L

Pointer to the Lua state from which to access the Lua TextureResourceExternal object.

index

1-based index to the TextureResourceExternal object on the Lua stack.