viewport .mode .set  (  ViewportObjectID ,  ViewportMode  )  
                                
Description :

This instruction defines the state flags used to manage the behavior of a viewport.

Parameters :

  • ObjectID of the viewport.
  • VIEWPORT_DEPTHBUFFERON : Activates the use of the ZBuffer.
    VIEWPORT_DEPTHBUFFEROFF : Deactivates the use of the ZBuffer (Default).

    VIEWPORT_CLEARON : Activates the automatic clearing of the viewport (Default).
    VIEWPORT_CLEAROFF : Deactivates the automatic clearing of the viewport.

    VIEWPORT_CLEARZON : Activates the automatic clearing of the ZBuffer (Default).
    VIEWPORT_CLEARZOFF : Deactivates the automatic clearing of the ZBuffer.

Examples :