Difference between revisions of "love.graphics.newFramebuffer"
m |
m (Removed the part about having to scale what you draw in order for the Framebuffer to work like a canvas as this is no longer a problem.) |
||
Line 25: | Line 25: | ||
=== Notes === | === Notes === | ||
Specifying a size different from the window size will not resize the canvas but the resulting image itself. To resize the canvas you have to use [[love.graphics.scale]]. | Specifying a size different from the window size will not resize the canvas but the resulting image itself. To resize the canvas you have to use [[love.graphics.scale]]. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See Also == | == See Also == |
Revision as of 17:37, 8 December 2010
Available since LÖVE 0.7.0 |
It is not supported in earlier versions. |
Framebuffers are susceptible to power of 2 syndrome on many computers with lower end graphics. |
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.
Notes
Specifying a size different from the window size will not resize the canvas but the resulting image itself. To resize the canvas you have to use love.graphics.scale.
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