Difference between revisions of "love.graphics.getMaxPointSize"

m (Added deprecation notice)
m (Improve example and add links.)
Line 1: Line 1:
 
{{deprecatedin|[[0.9.1]]|091|type=function|text=This function will be removed in a future version. Use [[love.graphics.getSystemLimit]] instead}}
 
{{deprecatedin|[[0.9.1]]|091|type=function|text=This function will be removed in a future version. Use [[love.graphics.getSystemLimit]] instead}}
Gets the max supported point size.
+
Gets the max supported [[love.graphics.point|point]] size.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 11: Line 11:
 
{{param|number|size|The max supported point size.}}
 
{{param|number|size|The max supported point size.}}
 
== Examples ==
 
== Examples ==
Set the point size to the maximum supported size.
+
Draws a [[love.graphics.point|point]] at the maximum supported size.
 
<source lang="lua">
 
<source lang="lua">
local s = love.graphics.getMaxPointSize()
+
function love.draw()
love.graphics.setPointSize(s)
+
    local max = love.graphics.getMaxPointSize();
 +
    love.graphics.setPointSize(max);
 +
    love.graphics.point(100, 100);
 +
end
 
</source>
 
</source>
 
== See Also ==
 
== See Also ==
Line 23: Line 26:
  
 
[[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:Since=000}}
 
{{#set:Sub-Category=State}}
 
{{#set:Sub-Category=State}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.getMaxPointSize}}
 
{{i18n|love.graphics.getMaxPointSize}}

Revision as of 14:29, 5 November 2014

Deprecated in LÖVE 0.9.1
This function will be removed in a future version. Use love.graphics.getSystemLimit 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