Blob

Edit

A Blob is an object that holds binary data. It can be passed to most functions that take filename arguments, like lovr.graphics.newModel or lovr.audio.newSource. Blobs aren't usually necessary for simple projects, but they can be really helpful if:

A Blob's size cannot be changed once it is created.

Constructors

lovr.data.newBlobCreate a new Blob.
lovr.filesystem.newBlobCreate a new Blob from a file.

Methods

Blob:getNameGet the label of the Blob.
Blob:getPointerGet a raw pointer to the Blob's data.
Blob:getSizeGet the size of the Blob's data.
Blob:getStringGet the Blob's contents as a string.

See also