PmMemSetType()

Set the type of a memory context

Synopsis:

#include <photon/PhRender.h>

void PmMemSetType( PmMemoryContext_t *mc,
                   int type );

Library:

ph

Description:

This function sets the type of the memory context pointed to by mc. The valid types are:

Pm_PHS_CONTEXT
Renders the draw buffer to image only when necessary (i.e. when the draw buffer is full, or PmMemFlush() is explicitly called). Otherwise, the only effect a flush has is to expand the draw buffer when necessary.
Pm_IMAGE_CONTEXT
The draw stream is rendered to the image on every flush.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PmMemCreateMC(), PmMemReleaseMC(), PmMemSetChunkSize(), PmMemSetMaxBufSize()

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