lovr.math.newPool

Creates a new Pool, used for allocating vector and matrix objects efficiently. If you just need vectors, you can use the more convenient functions lovr.math.vec3, lovr.math.quat, and lovr.math.mat4.

pool = lovr.math.newPool(size)

Arguments

NameTypeDescription
sizenumberThe size of the Pool, in bytes.

Returns

NameTypeDescription
poolPoolThe new Pool.

See also