Name
Flip -- flip front and back buffers (V6.0, optional)
Synopsis
int error = Flip(APTR handle, struct hwTagList *tags);
Function
When in hardware double buffer mode, this function must bring the display's back buffer into view and install the former front buffer as the new back buffer. See BeginDoubleBuffer for details.

The following tags may be passed in the second parameter:

HWFLIPTAG_VSYNC:
If the iData element of this tag item is set to True, Hollywood wants you to synchronize buffer flips with the vertical blank interrupt. If this is False, Hollywood doesn't want you to do any synchronization and your Flip() implementation should exit immediately after flipping front and back buffers.

Flip() is an optional API and must only be implemented if HWSDAFLAGS_DOUBLEBUFFERADAPTER has been passed to hw_SetDisplayAdapter(). See hw_SetDisplayAdapter for details.

Inputs
handle
display handle returned by OpenDisplay()
tags
taglist for additional options (see above)
Results
error
error code or 0 for success

Show TOC