Difference between revisions of "Framebuffer:renderTo"
m (added type) |
m |
||
Line 39: | Line 39: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Render to a framebuffer using a fuction.}} | {{#set:Description=Render to a framebuffer using a fuction.}} | ||
+ | == Other Languages == | ||
+ | {{i18n|Framebuffer:renderTo}} |
Revision as of 19:15, 18 November 2010
Available since LÖVE 0.7.0 |
This function is not supported in earlier versions. |
Render to the Framebuffer using a function.
Contents
Function
Synopsis
Framebuffer:renderTo( func )
Arguments
function func
- A function performing drawing operations.
Returns
Nothing.
Notes
This is a shortcut to love.graphics.setRenderTarget:
framebuffer:renderTo( func )
is the same as
love.graphics.setRenderTarget( framebuffer )
func()
love.graphics.setRenderTarget()
Examples
Using an anonymous function for drawing to a Framebuffer
framebuffer:renderTo(function()
love.graphics.draw(image1, 0,0)
love.graphics.draw(image2, 100,100)
end)
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info