Difference between revisions of "love.graphics.setWireframe"

m (moved Mesh:setWireframe to love.graphics.setWireframe: Renamed/moved)
(Moved)
Line 1: Line 1:
 
{{newin|[[0.9.1]]|091|type=function}}
 
{{newin|[[0.9.1]]|091|type=function}}
Sets whether the Mesh will be drawn using wireframe lines.
+
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: their widths don't scale with the coordinate transformations or with [[love.graphics.setLineWidth]], and they don't use the smooth LineStyle.}}
 
{{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.}}
Line 7: Line 7:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Mesh:setWireframe( enable )
+
love.graphics.setWireframe( enable )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|boolean|enable|True to enable wireframe mode when drawing the Mesh, false to disable it.}}
+
{{param|boolean|enable|True to enable wireframe mode when drawing, false to disable it.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
  
 
== See Also ==
 
== See Also ==
* [[parent::Mesh]]
+
* [[parent::love.graphics]]
* [[Mesh:isWireframe]]
+
* [[love.graphics.isWireframe]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Sets whether the Mesh will be drawn using wireframe lines.}}
+
{{#set:Description=Sets whether wireframe lines will be used when drawing.}}
 +
{{#set:Sub-Category=State}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|Mesh:setWireframe}}
+
{{i18n|love.graphics.setWireframe}}

Revision as of 22:11, 5 February 2014

Available since LÖVE 0.9.1
This function is not supported in earlier versions.

Sets whether wireframe lines will be used when drawing.

O.png 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