pub unsafe extern "C" fn ulPlatformSetSurfaceDefinition(
surface_definition: ULSurfaceDefinition,
)Expand description
Set a custom Surface implementation.
This can be used to wrap a platform-specific GPU texture, Windows DIB, macOS CGImage, or any other pixel buffer target for display on screen.
By default, the library uses a bitmap surface for all surfaces but you can override this by providing your own surface definition here.
You should call this before ulCreateRenderer() or ulCreateApp().