Skip to main content

RenderImageCallbackType

Type Alias RenderImageCallbackType 

Source
pub type RenderImageCallbackType = extern "C" fn(RefAny, RenderImageCallbackInfo) -> ImageRef;
Expand description

Callback type that renders an OpenGL texture

IMPORTANT: In azul-core, this is stored as CoreRenderImageCallbackType = usize to avoid circular dependencies. The actual function pointer is cast to usize for storage in the data model, then unsafely cast back to this type when invoked.