Difference between revisions of "love.graphics.setPointStyle"

m (Add more see alsos.)
(Added oldin)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Sets the [[love.graphics.setPoint|point]] style.
+
{{oldin|[[0.10.0]]|100|type=function}}
 +
 
 +
Sets the [[love.graphics.point|point]] style.
 +
 
 +
{{notice|Smooth points are notoriously buggy on a lot of graphics drivers. Use "rough" [[PointStyle|point style]] for increased consistency between different drivers.}}
 +
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 9: Line 14:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
== Examples ==
 +
Toggle between [[PointStyle|point styles]] with the help of [[love.graphics.getPointStyle]].
 +
<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.point]]
* [[love.graphics.setPoint]]
 
 
* [[love.graphics.setPointSize]]
 
* [[love.graphics.setPointSize]]
 +
* [[love.graphics.getPointStyle]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Sets the point style.}}
+
{{#set:Description=Sets the [[love.graphics.point|point]] style.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 +
{{#set:Sub-Category=State}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.setPointStyle}}
 
{{i18n|love.graphics.setPointStyle}}

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.


Sets the point style.

O.png Smooth points are notoriously buggy on a lot of graphics drivers. Use "rough" point style for increased consistency between different drivers.  


Function

Synopsis

love.graphics.setPointStyle( style )

Arguments

PointStyle style
The new point style.

Returns

Nothing.

Examples

Toggle between point styles with the help of love.graphics.getPointStyle.

if love.graphics.getPointStyle() == "rough" then
   love.graphics.setPointStyle("smooth")
else
   love.graphics.setPointStyle("rough")
end

See Also


Other Languages