more tests

- added custom error handler so that love is closed if a crash occurs rather than hang on the graphic screen (for runner crashes mainly)

- updated missing functions left todo in todo.md and removed list from readme.md to make it easier to keep track of

- added love.audio.getPlaybackDevice(), love.audio.getPlaybackDevices(), love.audio.setPlaybackDevice()

- added love.data.ByteData:setString()

- added love.filesystem.getFullCommonPath(), love.filesystem.mountFullPath(), love.filesystem.unmountFullPath(), love.filesystem.moundCommonPath(), plus optional b/t/bt params to love.filesystem.load()

- added love.keyboard.isModifierActive()

- added love.sound.SoundData:copy() and love.sound.SoundData:slice()

- added love.graphics.Texture:isCanvas() and love.graphics.Texture:isComputeWritable()

- added love.image.ImageData:isLinear(), love.image.ImageData:setLinear(), and love.image.ImageData:encode("*.exr")

- added love.image.CompressedImageData:isLinear() and love.image.CompressedImageData:setLinear()

- added love.system.getPreferredLocales()

- added love.window.focus() and removed love.window.close() (now deprecated)
This commit is contained in:
ell
2024-02-28 17:49:51 +00:00
parent ff06718f8a
commit 990259edf9
16 changed files with 317 additions and 33 deletions
+9 -1
View File
@@ -367,11 +367,19 @@ TestMethod = {
end,
-- @method - TestMethod:waitFrames()
-- @desc - yields the method for x amount of frames
-- @param {number} frames - no. frames to wait
-- @return {nil}
waitFrames = function(self, frames)
for i=1,frames do coroutine.yield() end
for _=1,frames do coroutine.yield() end
end,
-- @method - TestMethod:waitSeconds()
-- @desc - yields the method for x amount of seconds
-- @param {number} seconds - no. seconds to wait
-- @return {nil}
waitSeconds = function(self, seconds)
local start = love.timer.getTime()
while love.timer.getTime() < start + seconds do