love.graphics.newFramebuffer

New in LÖVE 0.7.0
It is not supported in earlier versions.


O.png Framebuffers are susceptible to power of 2 syndrome.  

Creates a new framebuffer object for offscreen rendering.

Contents

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

Personal tools