Difference between revisions of "love.graphics.newFramebuffer"

m
Line 1: Line 1:
{{newin|[[0.7.0]]}}
+
{{newin|[[0.7.0]]|070|type=function}}
 
{{notice|Framebuffers are susceptible to [http://love2d.org/wiki/PO2_Syndrome power of 2 syndrome].}}
 
{{notice|Framebuffers are susceptible to [http://love2d.org/wiki/PO2_Syndrome power of 2 syndrome].}}
 
Creates a new framebuffer object for offscreen rendering.
 
Creates a new framebuffer object for offscreen rendering.
Line 29: Line 29:
 
* [[love.graphics.setRenderTarget]]
 
* [[love.graphics.setRenderTarget]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Creates a new [[Framebuffer]]
+
{{#set:Description=Creates a new [[Framebuffer]].}}
}}
 
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.newFramebuffer}}
 
{{i18n|love.graphics.newFramebuffer}}

Revision as of 09:57, 25 March 2011

Available since LÖVE 0.7.0
This function is not supported in earlier versions.
O.png Framebuffers are susceptible to power of 2 syndrome.  


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 height of the framebuffer.

Returns

Framebuffer framebuffer
A new framebuffer with specified width and height.

See Also

Other Languages