Issues

Issue #684 resolved

Merging `setCanvases` with `setCanvas`

hahawoo
created an issue

Could setCanvases be merged with setCanvas? I can't find other cases where there is a separate function for a version which takes multiple arguments, for example there isn't love.graphics.areSupported or love.keyboard.areDown.

Perhaps there are cases where a single Canvas is supported but multiple Canvases are not, but I'm not sure that this would be a good reason for having multiple functions, for a silly example there isn't love.graphics.newPO2Image.

Also, getCanvas could return all the active Canvases in the order they were given to setCanvas and there wouldn't be a setter without a getter and this would be splendid.

Comments (2)

  1. hahawoo reporter

    And also it's nice that you could set and release Canvases with setCanvas, instead of having to use setCanvases to set and setCanvas to release. Or if setCanvases also releases, it saves setCanvas() being a duplicate of setCanvases().

  2. Log in to comment