Buffer:getPointer

Edit

Returns a raw pointer to the Buffer's memory as a lightuserdata, intended for use with the LuaJIT FFI or for passing to C libraries. This is only available for temporary buffers, so the pointer is only valid until lovr.graphics.submit is called.

pointer = Buffer:getPointer()

Arguments

None

Returns

NameTypeDescription
pointerlightuserdata A pointer to the Buffer's memory.

See also