Difference between revisions of "love.graphics.newFramebuffer"
m (width used twice instead of width/height) |
m (Fixed absolute link.) |
||
(17 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{newinoldin|[[0.7.0]]|070|[[0.8.0]]|080|type=function|text=It has been renamed to [[love.graphics.newCanvas]]}} |
− | |||
Creates a new framebuffer object for offscreen rendering. | Creates a new framebuffer object for offscreen rendering. | ||
− | + | {{notice|Versions prior to 0.8.0 have Framebuffers that are susceptible to [[PO2_Syndrome|power of 2 syndrome]].}} | |
+ | {{newobjectnotice}} | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 22: | Line 22: | ||
{{param|number|height|The desired height of the framebuffer.}} | {{param|number|height|The desired height of the framebuffer.}} | ||
=== Returns === | === Returns === | ||
− | {{param|Framebuffer|framebuffer|A new framebuffer with specified | + | {{param|Framebuffer|framebuffer|A new framebuffer with specified width and height.}} |
− | |||
− | |||
== See Also == | == See Also == | ||
Line 31: | Line 29: | ||
* [[love.graphics.setRenderTarget]] | * [[love.graphics.setRenderTarget]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Creates a new [[Framebuffer]] | + | [[Sub-Category::Object Creation| ]] |
− | }} | + | {{#set:Description=Creates a new [[Framebuffer]].}} |
+ | == Other Languages == | ||
+ | {{i18n|love.graphics.newFramebuffer}} |
Latest revision as of 03:53, 6 September 2016
Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0 |
It has been renamed to love.graphics.newCanvas. |
Creates a new framebuffer object for offscreen rendering.
Versions prior to 0.8.0 have Framebuffers that are susceptible to power of 2 syndrome. |
This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! |
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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info