Difference between revisions of "GraphicsLimit"
m (→Notes) |
m (→Constants) |
||
Line 5: | Line 5: | ||
;texturesize: The maximum width or height of [[Image]]s and [[Canvas]]es. | ;texturesize: The maximum width or height of [[Image]]s and [[Canvas]]es. | ||
;multicanvas: The maximum number of simultaneously active canvases (via [[love.graphics.setCanvas]].) | ;multicanvas: The maximum number of simultaneously active canvases (via [[love.graphics.setCanvas]].) | ||
+ | {{newin|[[0.9.2]]|092|type=constant|text=This constant has been renamed from '''canvasfsaa'''}} | ||
+ | ;canvasmsaa: The maximum number of antialiasing samples for a [[love.graphics.newCanvas|Canvas]]. | ||
+ | {{oldin|[[0.10.0]]|100|type=constant|text=This contanst has been renamed to '''canvasmsaa'''}} | ||
;canvasfsaa: The maximum number of antialiasing samples for a [[love.graphics.newCanvas|Canvas]]. | ;canvasfsaa: The maximum number of antialiasing samples for a [[love.graphics.newCanvas|Canvas]]. | ||
+ | |||
== Notes == | == Notes == | ||
Attempting to create an [[Image]] with a width '''or''' height greater than the maximum supported will create a checkerboard-patterned image instead. Doing the same for a [[Canvas]] will result in an error. | Attempting to create an [[Image]] with a width '''or''' height greater than the maximum supported will create a checkerboard-patterned image instead. Doing the same for a [[Canvas]] will result in an error. |
Revision as of 18:05, 13 December 2015
Available since LÖVE 0.9.1 |
This enum is not supported in earlier versions. |
Types of system-dependent graphics limits checked for using love.graphics.getSystemLimit.
Contents
Constants
- pointsize
- The maximum size of points.
- texturesize
- The maximum width or height of Images and Canvases.
- multicanvas
- The maximum number of simultaneously active canvases (via love.graphics.setCanvas.)
Available since LÖVE 0.9.2 |
This constant has been renamed from canvasfsaa. |
- canvasmsaa
- The maximum number of antialiasing samples for a Canvas.
Removed in LÖVE 0.10.0 |
This contanst has been renamed to canvasmsaa. |
- canvasfsaa
- The maximum number of antialiasing samples for a Canvas.
Notes
Attempting to create an Image with a width or height greater than the maximum supported will create a checkerboard-patterned image instead. Doing the same for a Canvas will result in an error.
It's safe to assume the maximum texture size will never be less than 1024 and will almost always be 2048 or greater.There is an online database which has collected info about the max texture size for various systems.
The value for the multicanvas system limit will be at least 4, as long as multi-canvas rendering is supported.
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