ResourceArena.load

Load a resource into the arena.

The resource must be new; the arena will not compare it against existing resources, nor will it attempt reuse. If the resource is already loaded, use reload.

struct ResourceArena(T)
int
load

Parameters

resource T

Resource to load.

Return Value

Type: int

Index associated with the resource.

Meta