Make a memory context active
PhDrawContext_t * PmMemStart( PmMemoryContext_t *mc );
This function makes the provided memory context mc active. That is, from this point until the memory context is deactivated, everything drawn becomes part of the memory image.
All subsequent Photon draw commands are routed through this memory context until:
Or
A pointer to the previously active draw context, or NULL if the provided context couldn't be made active - see errno for details.
See PmMemCreateMC().
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PmMemCreateMC(), PmMemReleaseMC(), PmMemStop()
"Flickerless animation" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide