Code: Select all
local imageData = love.image.newImageData(100, 100)
someLibrary.doSomethingTo(imageData)
Code: Select all
void doSomethingDo(lua_State *L) {
u_int8 * data = // code here
}
I was able to find this code in LOVE2D's source if it helps at all:
Code: Select all
void *ImageData::getData() const
{
return data;
}