Difference between revisions of "love.graphics.getMaxPointSize"
m (1 revision: Importing from potato (again).) |
m |
||
(8 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{oldin|[[0.10.0]]|100|type=function|text=Use [[love.graphics.getSystemLimits]] instead}} | |
− | Gets the max supported point size. | + | Gets the max supported [[love.graphics.point|point]] size. |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 9: | Line 9: | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param|number|size|The | + | {{param|number|size|The max supported point size.}} |
+ | == Examples == | ||
+ | Draws a [[love.graphics.point|point]] at the maximum supported size. | ||
+ | <source lang="lua"> | ||
+ | function love.draw() | ||
+ | local max = love.graphics.getMaxPointSize(); | ||
+ | love.graphics.setPointSize(max); | ||
+ | love.graphics.point(100, 100); | ||
+ | end | ||
+ | </source> | ||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] | ||
+ | * [[love.graphics.point]] | ||
+ | * [[love.graphics.getPointSize]] | ||
+ | * [[love.graphics.setPointSize]] | ||
+ | |||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Gets the max supported point size.}} | + | {{#set:Description=Gets the max supported [[love.graphics.point|point]] size.}} |
+ | {{#set:Since=000}} | ||
+ | {{#set:Sub-Category=SystemInfo}} | ||
+ | == Other Languages == | ||
+ | {{i18n|love.graphics.getMaxPointSize}} |
Latest revision as of 01:59, 17 July 2017
Removed in LÖVE 0.10.0 |
Use love.graphics.getSystemLimits instead. |
Gets the max supported point size.
Function
Synopsis
size = love.graphics.getMaxPointSize( )
Arguments
None.
Returns
number size
- The max supported point size.
Examples
Draws a point at the maximum supported size.
function love.draw()
local max = love.graphics.getMaxPointSize();
love.graphics.setPointSize(max);
love.graphics.point(100, 100);
end
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