mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
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:
@@ -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.
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user