pub unsafe extern "C" fn ecs_import_from_library(
world: *mut ecs_world_t,
library_name: *const i8,
module_name: *const i8,
) -> u64Expand description
Import a module from a library. Similar to ecs_import, except that this operation will attempt to load the module from a dynamic library.
A library may contain multiple modules, which is why both a library name and a module name need to be provided. If only a library name is provided, the library name will be reused for the module name.
The library will be looked up using a canonical name, which is in the same
form as a module, like flecs.components.transform. To transform this
identifier to a platform specific library name, the operation relies on the
module_to_dl callback of the os_api which the application has to override if
the default does not yield the correct library name.
@param world The world. @param library_name The name of the library to load. @param module_name The name of the module to load.