Difference between revisions of "GraphicsLimit"

m (Changed link: love.graphics.point to love.graphics.points.)
(Updated for 0.11.0)
Line 8: Line 8:
 
{{New feature|0.10.0|
 
{{New feature|0.10.0|
 
;canvasmsaa: The maximum number of antialiasing samples for a [[love.graphics.newCanvas|Canvas]].
 
;canvasmsaa: The maximum number of antialiasing samples for a [[love.graphics.newCanvas|Canvas]].
 +
}}
 +
 +
{{New feature|0.11.0|
 +
;anisotropy: The maximum amount of anisotropic filtering. [[Texture:setMipmapFilter]] internally clamps the given anisotropy value to the system's limit.
 
}}
 
}}
  

Revision as of 03:33, 25 March 2018

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.getSystemLimits.

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.10.0
canvasmsaa
The maximum number of antialiasing samples for a Canvas.


Available since LÖVE 0.11.0
anisotropy
The maximum amount of anisotropic filtering. Texture:setMipmapFilter internally clamps the given anisotropy value to the system's limit.


Removed in LÖVE 0.10.0
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 generally be either 1, 4, or 8.

See Also

Other Languages