Function ul_next_sys::ulCreateRenderer

source ยท
pub unsafe extern "C" fn ulCreateRenderer(
    config: ULConfig,
) -> ULRenderer
Expand description

Create the core renderer singleton for the library directly.

Unlike ulCreateApp(), this does not use any native windows for drawing and allows you to manage your own runloop and painting. This method is recommended for those wishing to integrate the library into a game.

This singleton manages the lifetime of all Views and coordinates all painting, rendering, network requests, and event dispatch.

You should only call this once per process lifetime.

You must set up your platform handlers before calling this. At a minimum, you must call ulPlatformSetFileSystem() and ulPlatformSetFontLoader() before calling this.

@note You should not call this if you are using ulCreateApp(), it creates its own renderer and provides default implementations for various platform handlers automatically.