Skip to main content

ghostty_render_state_new

Function ghostty_render_state_new 

Source
pub unsafe extern "C" fn ghostty_render_state_new(
    allocator: *const GhosttyAllocator,
    state: *mut GhosttyRenderState_ptr,
) -> GhosttyResult
Expand description

Create a new render state instance.

@param allocator Pointer to allocator, or NULL to use the default allocator @param state Pointer to store the created render state handle @return GHOSTTY_SUCCESS on success, GHOSTTY_OUT_OF_MEMORY on allocation failure

@ingroup render