Difference between revisions of "love.graphics.getMaxPointSize"

(Add an example, see also)
Line 9: Line 9:
 
=== Returns ===
 
=== Returns ===
 
{{param|number|size|The max supported point size.}}
 
{{param|number|size|The max supported point size.}}
 +
== Examples ==
 +
Set the point size to the maximum supported size.
 +
<source lang="lua">
 +
local s = love.graphics.getMaxPointSize()
 +
love.graphics.setPointSize(s)
 +
</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 point size.}}

Revision as of 17:32, 27 September 2011

Gets the max supported point size.

Function

Synopsis

size = love.graphics.getMaxPointSize( )

Arguments

None.

Returns

number size
The max supported point size.

Examples

Set the point size to the maximum supported size.

local s = love.graphics.getMaxPointSize()
love.graphics.setPointSize(s)

See Also


Other Languages