Difference between revisions of "love.graphics.getPointStyle"
m |
(Added oldin) |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | Gets the current point | + | {{oldin|[[0.10.0]]|100|type=function}} |
+ | |||
+ | Gets the current [[love.graphics.point|point]] style. | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 9: | Line 11: | ||
=== Returns === | === Returns === | ||
{{param|PointStyle|style|The current point style.}} | {{param|PointStyle|style|The current point style.}} | ||
+ | == Examples == | ||
+ | Toggle between [[PointStyle|point styles]] with the help of [[love.graphics.setPointStyle]]. | ||
+ | <source lang="lua"> | ||
+ | if love.graphics.getPointStyle() == "rough" then | ||
+ | love.graphics.setPointStyle("smooth") | ||
+ | else | ||
+ | love.graphics.setPointStyle("rough") | ||
+ | end | ||
+ | </source> | ||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] | ||
+ | * [[love.graphics.point]] | ||
+ | * [[love.graphics.setPointStyle]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Gets the current point | + | {{#set:Description=Gets the current point style.}} |
+ | {{#set:Since=000}} | ||
+ | {{#set:Sub-Category=State}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|love.graphics.getPointStyle}} | {{i18n|love.graphics.getPointStyle}} |
Latest revision as of 02:57, 17 December 2015
Removed in LÖVE 0.10.0 |
This function is not supported in that and later versions. |
Gets the current point style.
Function
Synopsis
style = love.graphics.getPointStyle( )
Arguments
None.
Returns
PointStyle style
- The current point style.
Examples
Toggle between point styles with the help of love.graphics.setPointStyle.
if love.graphics.getPointStyle() == "rough" then
love.graphics.setPointStyle("smooth")
else
love.graphics.setPointStyle("rough")
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