love.graphics.setCanvas
Captures drawing operations to a Canvas.
love.graphics.setCanvas( canvas, mipmap )
canvas Canvas The new target.
mipmap (1) number The mipmap level to render to, for Canvases with mipmaps.
love.graphics.setCanvas()
love.graphics.setCanvas( canvas1, canvas2, ... )
canvas1 Canvas The first render target.
canvas2 Canvas The second render target.
... Canvas More canvases.
love.graphics.setCanvas( canvas, slice, mipmap )
canvas Canvas The new render target.
slice number For cubemaps this is the cube face index to render to (between 1 and 6). For Array textures this is the array layer. For volume textures this is the depth slice. 2D canvases should use a value of 1.
mipmap (1) number The mipmap level to render to, for Canvases with mipmaps.
love.graphics.setCanvas( setup )
setup table A table specifying the active Canvas(es), their mipmap levels and active layers if applicable, and whether to use a stencil and/or depth buffer.
setup.1 RenderTargetSetup The Canvas to render to.
setup.2 (nil) RenderTargetSetup An additional Canvas to render to, if multiple simultaneous render targets are wanted.
setup.... RenderTargetSetup Additional Canvases to render to, if multiple simultaneous render targets are wanted.
setup.stencil (false) boolean Whether an internally managed stencil buffer should be used, if the depthstencil field isn't set.
setup.depth (false) boolean Whether an internally managed depth buffer should be used, if the depthstencil field isn't set.
setup.depthstencil (nil) RenderTargetSetup An optional custom depth/stencil formatted Canvas to use for the depth and/or stencil buffer.