gf_context_create()

Create and initialize a new draw context

Synopsis:

#include <gf/gf.h>

int gf_context_create( gf_context_t * pcontext );

Arguments:

pcontext
A pointer to a gf_context_t where the function can store a handle for the new context.

Library:

gf

Description:

This function creates a graphics rendering context, or draw context. Draw contexts are used to target rendering surfaces, and preserve a state across multiple rendering calls.

Returns:

GF_ERR_OK
Success.
GF_ERR_MEM
Memory allocation failure

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_context_free()