| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <html>
- <head>
- <title>Blitz3D Docs</title>
- <link rel=stylesheet href=../css/commands.css type=text/css>
- </head>
- <body>
- <h1>Wireframe enable</h1>
- <h1>Parameters</h1>
- <table>
- <tr>
- <td>
- enable - True to enable wireframe rendering, False to disable.
<br />
- <br />
- The default Wireframe mode is False.
- </td>
- </tr>
- </table>
- <h1>Description</h1>
- <table>
- <tr>
- <td>
- Enables or disables wireframe rendering.
<br />
-
<br />
- This will show the outline of each polygon on the screen, with no shaded-in areas.
<br />
-
<br />
- Wireframe mode should only be used for debugging purposes, as driver support is patchy. For the same reason, no support is offered for the wireframe rendering of individual polygon entities.
- </td>
- </tr>
- </table>
- <h1><a href=../3d_examples/Wireframe.bb>Example</a></h1>
- <table>
- <tr>
- <td>
- ; Wireframe Example
<br />
- ; -----------------
<br />
-
<br />
- Graphics3D 640,480,16
<br />
- SetBuffer BackBuffer()
<br />
-
<br />
- camera=CreateCamera()
<br />
-
<br />
- light=CreateLight()
<br />
- RotateEntity light,90,0,0
<br />
-
<br />
- sphere=CreateSphere( 32 )
<br />
- PositionEntity sphere,0,0,2
<br />
-
<br />
- While Not KeyDown( 1 )
<br />
-
<br />
- ; Toggle wireframe enable value between true and false when spacebar is pressed
<br />
- If KeyHit( 57 )=True Then enable=1-enable
<br />
-
<br />
- ; Enable/disable wireframe rendering
<br />
- WireFrame enable
<br />
-
<br />
- RenderWorld
<br />
-
<br />
- Text 0,0,"Press spacebar to toggle between Wireframe True/False"
<br />
- If enable=True Then Text 0,20,"Wireframe True" Else Text 0,20,"Wireframe False"
<br />
-
<br />
- Flip
<br />
-
<br />
- Wend
<br />
-
<br />
- End
- </td>
- </tr>
- </table>
- <br>
- <a target=_top href=../index.htm>Index</a><br>
- <br>
- Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Wireframe&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
- </html>
|