gf_draw_flush()

Flush the draw buffer

Synopsis:

#include <gf/gf.h>

int gf_draw_flush( gf_context_t context );

Arguments:

context
The handle of the draw context to flush.

Library:

gf

Description:

This function flushes the draw buffer to the surface. Some graphics hardware puts draw events into a queue that must be explicitly flushed before the draw events are rendered.

Call this function when you need to know that all previous draw commands have been rendered, for example before you wait for user input based on a rendered image. You do not normally need to call this function, and should call it only when required.

Returns:

GF_ERR_OK
Success.
GF_ERR_NOLOCK
The hardware isn't locked; check to ensure gf_draw_begin() was called successfully.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_draw_bitmap(), gf_draw_blit1(), gf_draw_blit2(), gf_draw_blitscaled(), gf_draw_poly_fill(), gf_draw_polyline(), gf_draw_rect()