Function ecs_value_init_w_type_info

Synopsis

#include <include/flecs.h>

FLECS_API int ecs_value_init_w_type_info(const ecs_world_t *world, const ecs_type_info_t *ti, void *ptr)

Description

Construct a value in existing storage

Parameters

world - The world.

ti - The type info of the type to create.

ptr - Pointer to a value of type 'type'

Returns
Zero if success, nonzero if failed.

Source

Line 4968 in include/flecs.h.