Difference between revisions of "love.graphics.newFramebuffer"

(Created page with '''Functionality added in LÖVE 0.7.0'' Creates a new framebuffer object for offscreen rendering. == Function == === Synopsis === <source lang="lua"> framebuffer = love.graphics…')
 
Line 1: Line 1:
''Functionality added in LÖVE 0.7.0''
+
'''''Only available with LÖVE 0.7.0 Game Slave'''''
  
 
Creates a new framebuffer object for offscreen rendering.
 
Creates a new framebuffer object for offscreen rendering.
Line 8: Line 8:
 
framebuffer = love.graphics.newFramebuffer( )
 
framebuffer = love.graphics.newFramebuffer( )
 
</source>
 
</source>
 +
=== Arguments ===
 +
none
 
=== Returns ===
 
=== Returns ===
 
{{param|Framebuffer|framebuffer|A new framebuffer with width/height equal to the window width/height}}
 
{{param|Framebuffer|framebuffer|A new framebuffer with width/height equal to the window width/height}}
Line 24: Line 26:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
* [[Constructs::Framebuffer]]
 
* [[Constructs::Framebuffer]]
 +
* [[love.graphics.setRenderTarget]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Creates a new Framebuffer
+
{{#set:Description=Creates a new [[Framebuffer]]
 
}}
 
}}

Revision as of 14:43, 19 September 2010

Only available with LÖVE 0.7.0 Game Slave

Creates a new framebuffer object for offscreen rendering.

Function

Synopsis

framebuffer = love.graphics.newFramebuffer( )

Arguments

none

Returns

Framebuffer framebuffer
A new framebuffer with width/height equal to the window width/height

Function

Synopsis

framebuffer = love.graphics.newFramebuffer( width, height )

Arguments

number width
The desired width of the framebuffer.
number height
The desired width of the framebuffer.

Returns

Framebuffer framebuffer
A new framebuffer with specified with and height. Note specifying a size different from the window size will not resize the canvas but the image itself.

See Also