Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PdReleaseDirectContext()

Leave direct mode and release the direct-mode context

Synopsis:

void PdReleaseDirectContext( 
        PdDirectContext_t *DirectContext );

Arguments:

DirectContext
The pointer to a PdDirectContext_t structure returned by PdCreateDirectContext(). This argument must not be NULL.

Library:

ph

Description:

This function leaves direct mode (if the application is currently in it), destroys the direct-mode context, and restores the original default context.


Note: You must target this function at a specific card by calling PdSetTargetDevice().

Examples:

See PdCreateDirectContext().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PdCreateDirectContext(), PdDirectStart(), PdDirectStop(), PdSetTargetDevice()

Direct mode in the Raw Drawing and Animation chapter of the Photon Programmer's Guide