Difference between revisions of "love.graphics.setRenderTarget"

(Created page with ''''''Only available with LÖVE 0.7.0 Game Slave''''' Sets or resets a Framebuffer as render target. All drawing operations until the next love.graphics.setRenderTarget w…')
 
Line 1: Line 1:
 
'''''Only available with LÖVE 0.7.0 Game Slave'''''
 
'''''Only available with LÖVE 0.7.0 Game Slave'''''
  
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.
+
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.
  
 
== Function ==
 
== Function ==
Line 13: Line 13:
 
Nothing.
 
Nothing.
 
=== Notes ===
 
=== Notes ===
Sets the render target to a specified [[Framebuffer]]. All drawing operations until the next [[love.graphics.setRenderTarget]] will be redirected to the [[Framebuffer]].
+
Sets the render target to a specified [[Framebuffer]]. All drawing operations until the next ''love.graphics.setRenderTarget'' will be redirected to the [[Framebuffer]] and not shown on the screen.
  
 
== Function ==
 
== Function ==

Revision as of 14:56, 19 September 2010

Only available with LÖVE 0.7.0 Game Slave

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.

Function

Synopsis

love.graphics.setRenderTarget( framebuffer )

Arguments

Framebuffer framebuffer
The new render target.

Returns

Nothing.

Notes

Sets the render target to a specified Framebuffer. All drawing operations until the next love.graphics.setRenderTarget will be redirected to the Framebuffer and not shown on the screen.

Function

Synopsis

love.graphics.setRenderTarget( )

Arguments

None.

Returns

Nothing.

Notes

Resets the render target to the screen, i.e. re-enables drawing to the screen.


Examples