Available since LÖVE 0.7.0
This function is not supported in earlier versions.
Removed in LÖVE 0.8.0
It has been renamed to Canvas:renderTo.
Render to the Framebuffer using a function.
Framebuffer:renderTo( func )
function func
Nothing.
This function will clear the target framebuffer.
This is a shortcut to love.graphics.setRenderTarget:
framebuffer:renderTo( func )
is the same as
love.graphics.setRenderTarget( framebuffer ) func() love.graphics.setRenderTarget()
framebuffer:renderTo(function() love.graphics.draw(image1, 0,0) love.graphics.draw(image2, 100,100) end)
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Framebuffer:renderTo