PEXOCCSetModelClipFlag - Set Model Clipping Flag (5.0)


Synopsis

   void PEXOCCSetModelClipFlag(
        PEXOCC context,
        int flag
   )

 
   void PEXSetModelClipFlag(
        Display *display,
        XID resource_id,
        PEXOCRequestType req_type,
        int flag
   )
 

Arguments

context
An OC context returned by a successful PEXCreateOCC call.

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).

flag
The model clipping flag (PEXClip or PEXNoClip).

Returns

None.

Description

Invoke PEXOCCSetModelClipFlag to create an attribute output command which sets the model clip attribute in the renderer's pipeline state according to the value specified by flag.

PEXlib defines two model clip flags (flag):

PEXClip -
enables modeling clipping. (5.0)

PEXNoClip -
disables modeling clipping. (5.0)

If you specify an undefined model clipping flag, then the implementation issues a BadPEXOutputCommand error.

This function is a member of the global attribute set.

Errors

BadPEXOutputCommand
The output command contains an invalid value.

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 output attribute functions, see Output Attribute Functions.