Difference between revisions of "love.graphics.setWireframe"
(Created page) |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{newin|[[0.9.1]]|091|type=function}} | {{newin|[[0.9.1]]|091|type=function}} | ||
− | Sets whether | + | Sets whether wireframe lines will be used when drawing. |
− | {{notice|Wireframe mode should only be used for debugging. The lines drawn with it enabled do not behave like regular love.graphics lines: | + | {{notice|This function does nothing on mobile devices and other systems which use OpenGL ES 2.}} |
+ | {{notice|Wireframe mode should only be used for debugging. The lines drawn with it enabled do not behave like regular love.graphics lines: their widths don't scale with the coordinate transformations or with [[love.graphics.setLineWidth]], and they don't use the smooth LineStyle.}} | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | love.graphics.setWireframe( enable ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|boolean|enable|True to enable wireframe mode when drawing | + | {{param|boolean|enable|True to enable wireframe mode when drawing, false to disable it.}} |
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
== See Also == | == See Also == | ||
− | * [[parent:: | + | * [[parent::love.graphics]] |
− | * [[ | + | * [[love.graphics.isWireframe]] |
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Sets whether | + | {{#set:Description=Sets whether wireframe lines will be used when drawing.}} |
+ | {{#set:Sub-Category=State}} | ||
== Other Languages == | == Other Languages == | ||
− | {{i18n| | + | {{i18n|love.graphics.setWireframe}} |
Latest revision as of 18:25, 27 December 2015
Available since LÖVE 0.9.1 |
This function is not supported in earlier versions. |
Sets whether wireframe lines will be used when drawing.
This function does nothing on mobile devices and other systems which use OpenGL ES 2. |
Wireframe mode should only be used for debugging. The lines drawn with it enabled do not behave like regular love.graphics lines: their widths don't scale with the coordinate transformations or with love.graphics.setLineWidth, and they don't use the smooth LineStyle. |
Function
Synopsis
love.graphics.setWireframe( enable )
Arguments
boolean enable
- True to enable wireframe mode when drawing, false to disable it.
Returns
Nothing.
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