Type Alias ul_next_sys::ULGPUDriverCreateTextureCallback
source · pub type ULGPUDriverCreateTextureCallback = Option<unsafe extern "C" fn(texture_id: c_uint, bitmap: ULBitmap)>;
Expand description
The callback invoked when the GPUDriver wants to create a texture with a certain ID and optional bitmap.
@note: If the Bitmap is empty (ulBitmapIsEmpty), then a RTT Texture should be created instead. This will be used as a backing texture for a new RenderBuffer.
Aliased Type§
enum ULGPUDriverCreateTextureCallback {
None,
Some(unsafe extern "C" fn(_: u32, _: *mut C_Bitmap)),
}