Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_unset_surface.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_unset_surface.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_unset_surface.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_unset_surface.html on line 8

gf_context_unset_surface()

Disassociate a surface from the draw context

Synopsis:

#include <gf/gf.h>

int gf_context_unset_surface( gf_context_t context )

Arguments:

context
The draw context to disassociate a surface from.

Library:

gf

Description:

This function removes a surface from the draw context. Any subsequent rendering that is done via this context affects the newly targeted surface. After you call this function, a call to gf_draw_begin() will fail with the error GF_ERR_PARM until you associate a new surface with the draw context.

Returns:

GF_ERR_OK
Success.
GF_ERR_INUSE
The context is rendering. Call gf_draw_end() first.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_context_create(), gf_context_free(), gf_context_set_surface(), gf_surface_create()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_unset_surface.html on line 118

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_unset_surface.html on line 118