{{newinoldin|[[0.7.0]]|070|[[0.8.0]]|080|type=function|text=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.

== 関数 ==
=== 概要 ===
<source lang="lua">
love.graphics.setRenderTarget( framebuffer )
</source>
=== 引数 ===
{{param (日本語)|Framebuffer|framebuffer|The new render target.}}
=== 返値 ===
ありません。
=== 注釈 ===
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.

== 関数 ==
=== 概要 ===
<source lang="lua">
love.graphics.setRenderTarget( )
</source>
=== 引数 ===
なし。
=== 返値 ===
ありません。
=== 注釈 ===
Resets the render target to the screen, i.e. re-enables drawing to the screen.



== 用例 ==
=== Drawing to a framebuffer ===
<source lang="lua">
-- 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)
</source>

== 関連 ==
* [[parent::love.graphics (日本語)]]
* [[Framebuffer (日本語)]]
* [[Framebuffer:renderTo (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Captures drawing operations to a Framebuffer}}
{{#set:Sub-Category=State (日本語)}}

== そのほかの言語 ==
{{i18n (日本語)|love.graphics.setRenderTarget}}