Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0
It has been renamed to love.graphics.setCanvas.
Sets or resets a Framebuffer as render target. All drawing operations until the next love.graphics.setRenderTarget will be directed to the Framebuffer object specified.
love.graphics.setRenderTarget( framebuffer )
Framebuffer framebuffer
Nothing.
Sets the render target to a specified Framebuffer. The specified Framebuffer will be cleared. All drawing operations until the next love.graphics.setRenderTarget will be redirected to the Framebuffer and not shown on the screen.
love.graphics.setRenderTarget( )
None.
Nothing.
Resets the render target to the screen, i.e. re-enables drawing to the screen.
-- draw colored square to framebuffer love.graphics.setRenderTarget(framebuffer) love.graphics.setColor(230,240,120) love.graphics.rectangle('fill',0,0,100,100) love.graphics.setRenderTarget() -- draw scaled framebuffer to screen love.graphics.setColor(255,255,255) love.graphics.draw(framebuffer, 200,100, 0, .5,.5)
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.graphics.setRenderTarget