I'm a bit slow so please forgive the dumb questions.
Question number 1:
To the best of my understanding, the second argument of love.math.compress/decompress is the compression format, however when I pass different types to compress and decompress it seems to decompress fine, which is surprising.
Code: Select all
function love.load()
a = love.math.compress('This is a test', 'gzip')
b = love.math.decompress(a, 'zlib')
end
function love.draw()
love.graphics.print(b)
end
Code: Select all
int w_compress(lua_State *L)
{
const char *fstr = lua_isnoneornil(L, 2) ? nullptr : luaL_checkstring(L, 2);
Compressor::Format format = Compressor::FORMAT_LZ4;
Question number 2:
Why don't love.graphics.newText and Text:set/setf have transformation (position/rotation/scaling/etc.) options, like Text:add/addf and love.graphics.print/printf do?
Slime has kindly explained previously that Text:set/setf is for when you want a single Text object to contain a single piece of text that doesn't have its own local transformation, but I'm wondering, what's this use case for? Or, why not be able to have a local transformation since it could be possible? If one didn't want the text to have a transformation couldn't they just leave it off?
I predict there will be more questions to come...
Thanks for reading!