[Previous] [Contents] [Index] [Next]

PmMemStop()

Deactivate a memory context

Synopsis:

PhDrawContext_t * PmMemStop( 
                      PmMemoryContext_t *mc );

Description:

This function deactivates the memory context mc, if it's active, making the default draw context active. This means that draw commands are sent to Photon (i.e. draws will no longer be affecting the memory image).

Returns:

The mc argument if the memory context was successfully deactivated, or NULL if it wasn't active at the time of this call.

Examples:

See PmMemCreateMC().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PmMemCreateMC(), PmMemReleaseMC(), PmMemStart()

"Flickerless animation" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide


[Previous] [Contents] [Index] [Next]