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 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: they don't scale with the coordinate transformations or with [[love.graphics.setLineWidth]], and they don't use the smooth LineStyle.}}
+
{{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">
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}}

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.

O.png This function does nothing on mobile devices and other systems which use OpenGL ES 2.  


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