Added a variant of love.graphics.clear which accepts a color table argument for each active canvas, allowing it to clear active canvases to different colors without having to call love.graphics.setCanvas.

This commit is contained in:
Alex Szpakowski
2015-03-15 15:15:21 -03:00
parent 5bc5a2b780
commit 468127eed4
3 changed files with 71 additions and 14 deletions
+5
View File
@@ -86,6 +86,11 @@ public:
**/
void clear(Color c);
/**
* Clears each active canvas to a different color.
**/
void clear(const std::vector<Color> &colors);
/**
* Discards the contents of the screen.
**/