Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pm/pmmemstart.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pm/pmmemstart.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pm/pmmemstart.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pm/pmmemstart.html on line 8

PmMemStart()

Make a memory context active

Synopsis:

#include <photon/PhRender.h>

PhDrawContext_t * PmMemStart( 
                      PmMemoryContext_t *mc );

Library:

ph

Description:

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:

Returns:

A pointer to the previously active draw context, or NULL if the provided context couldn't be made active — see errno for details.

Errors:

ENOMEM
There wasn't enough memory for the context's work buffers.

Examples:

See PmMemCreateMC().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PmMemCreateMC(), PmMemReleaseMC(), PmMemStop()

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


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pm/pmmemstart.html on line 131

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pm/pmmemstart.html on line 131