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/photon/lib_ref/pg/pgcleardrawbuffer.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/photon/lib_ref/pg/pgcleardrawbuffer.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/photon/lib_ref/pg/pgcleardrawbuffer.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/photon/lib_ref/pg/pgcleardrawbuffer.html on line 8

PgClearDrawBuffer(), PgClearDrawBufferCx()

Reset the current draw buffer

Synopsis:

void PgClearDrawBuffer( void );

void PgClearDrawBufferCx(void *dc);

Arguments:

dc
PgClearDrawBufferCx() only. A void pointer to any type of draw context. Examples of draw contexts are:

Library:

ph

Description:

These functions reset the current draw buffer without flushing. PgClearDrawBuffer() works on the current draw context, while you can specify the draw context for PgClearDrawBufferCx().

Examples:

/*
 * Draw the following group of 3 lines
 */
PgDrawILine( 100, 100, 200, 300 );
PgDrawILine( 200, 300, 700, 700 );
PgDrawILine( 700, 700, 0,   0   );
PgFlush();

/*
 * Don't draw the following group of 3 lines
 */
PgDrawILine(  50, 100, 50, 300 );
PgDrawILine( 300,  20, 30, 700 );
PgDrawILine( 500, 700,  0, 100 );
PgClearDrawBuffer();
PgFlush();

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgFlush*(), PgSetDrawBufferSize*()


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/photon/lib_ref/pg/pgcleardrawbuffer.html on line 135

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/photon/lib_ref/pg/pgcleardrawbuffer.html on line 135