PEXOCCRestoreModelClipVolume - Restore Model Clip Volume (5.0)


Synopsis

 
   void PEXOCCRestoreModelClipVolume(
           PEXOCC context
      )
 

 
   void PEXRestoreModelClipVolume(
           Display *display,
           XID resource_id,
           PEXOCRequestType req_type
      )
 

Arguments

context
An OC context returned by a successful PEXCreateOCCcall.
display (OCC)
A pointer to a display structure returned by a successful XOpenDisplay call.
resource_id (OCC)
The resource identifier of the renderer or structure.
req_type (OCC)
The request type for the output command (PEXOCRender, PEXOCStore, PEXOCRenderSingle or PEXOCStoreSingle).

Returns

None.

Description

Invoke PEXOCCRestoreModelClipVolume to create an attribute output command which restores the last- saved model clipping volume in the renderer's pipeline state.

This function restores the model clip volume to the value that the structure being traversed inherited. If a root structure is being traversed, then the model clip volume is set to the pipeline state's default model clip volume. If you set the model clip indicator (flag) to PEXClip (see the PEXOCCSetModelClipFlag output primitive), then the implementation does not render primitives outside of the model clipping volume.

This function is a member of the global attribute set and affects all output primitives.

Errors

BadPEXRenderer
The specified renderer resource identifier is invalid.
BadPEXStructure
The specified structure resource identifier is invalid.

See Also

For an overview and for a list of all output attribute functions, see Output Attribute Functions.