enable - True to enable dxWireframe rendering, False to disable. The default dxWireframe mode is False. |
Enables or disables dxWireframe rendering. This will show the outline of each polygon on the screen, with no shaded-in areas. dxWireframe mode should only be used for debugging purposes, as driver support is patchy. For the same reason, no support is offered for the dxWireframe rendering of individual polygon entities. |
; dxWireframe Example ; ----------------- dxGraphics3D 640,480,16 dxSetBuffer dxBackBuffer() camera=dxCreateCamera() light=dxCreateLight() dxRotateEntity light,90,0,0 sphere=dxCreateSphere( 32 ) dxPositionEntity sphere,0,0,2 While Not dxKeyDown( 1 ) ; Toggle dxWireframe enable value between true and false when spacebar is pressed If dxKeyHit( 57 )=True Then enable=1-enable ; Enable/disable dxWireframe rendering dxWireframe enable dxRenderWorld dxText 0,0,"Press spacebar to toggle between dxWireframe True/False" If enable=True Then dxText 0,20,"dxWireframe True" Else dxText 0,20,"dxWireframe False" dxFlip Wend End |