Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
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
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)