DSpContext_SetUnderlayAltBuffer
Use the DSpContext_SetUnderlayAltBuffer function to designate an alternate buffer to be used as the current underlay buffer for a context.
OSStatus DSpContext_SetUnderlayAltBuffer ( DSpContextReference inContext, DSpAltBufferReference inNewUnderlay);
inContext
- A reference to the context the underlay is to be used with.
inNewUnderlay
- A reference to the alternate buffer that holds the underlay.
- function result
- A result code.
DESCRIPTION
The DSpContext_SetUnderlayAltBuffer function makes the alternate buffer specified in theinNewUnderlay
parameter serve as the current underlay for the context specified in theinContext
parameter. Underlay buffers are used to "clean" a back buffer whenDSpContext_GetBackBuffer
is called. When a back buffer is retrieved and there is an underlay buffer, the invalid areas in the back buffer are restored from the underlay buffer. This is most useful in sprite games, or in games where the background is static (or changes infrequently).CALLING RESTRICTIONS
Do not call this function during an interrupt.