{{newin (日本語)|[[0.7.0 (日本語)|0.7.0]]|070|type=関数}}
{{oldin|[[0.8.0]]|080|type=function|text=It has been renamed to [[Canvas:renderTo]]}}
Render to the [[Framebuffer]] using a function.

== 関数 ==
=== 概要 ===
<source lang="lua">
Framebuffer:renderTo( func )
</source>
=== 引数 ===
{{param (日本語)|function|func|A function performing drawing operations.}}
=== 返値 ===
ありません。

== 注釈 ==
This function will clear the target framebuffer.

This is a shortcut to [[love.graphics.setRenderTarget]]:
<source lang="lua">
framebuffer:renderTo( func )
</source>
is the same as
<source lang="lua">
love.graphics.setRenderTarget( framebuffer )
func()
love.graphics.setRenderTarget()
</source>

== 用例 ==
=== Using an anonymous function for drawing to a Framebuffer ===
<source lang="lua">
framebuffer:renderTo(function()
    love.graphics.draw(image1, 0,0)
    love.graphics.draw(image2, 100,100)
end)
</source>

== 関連 ==
* [[parent::Framebuffer (日本語)]]
* [[love.graphics.setRenderTarget (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Render to a framebuffer using a function.}}
== そのほかの言語 ==
{{i18n (日本語)|Framebuffer:renderTo}}