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/pgsetdrawbuffersize.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/pgsetdrawbuffersize.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/pgsetdrawbuffersize.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/pgsetdrawbuffersize.html on line 8
Resize a draw buffer
int PgSetDrawBufferSize(
unsigned short cmd_buf_len );
int PgSetDrawBufferSizeCx(
void *dc,
unsigned short cmd_buf_len );
ph
These functions resize the current draw buffer. The default
size, allocated with every
PhAttach(),
is at least 4K. If cmd_buf_len is less than 1K, then 4K is allocated.
The draw buffer stores all drawing data except for data
stored in shared memory.
If the draw buffer contains unflushed data when these
functions are called, the function will flush the data before
reallocating the buffer.
PgSetDrawBufferSize() works on the current
draw context, while you can specify the draw context dc for
PgSetDrawBufferSizeCx().
- 0
- Success.
- -1
- An error occurred.
// Allocate a 16K draw buffer
PgSetDrawBufferSize( 16 * 1024 );
|
To reduce the memory requirements of the graphics driver,
you should limit draw buffers to 16K. |
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PgClearDrawBuffer*(),
PgFlush*(),
PhAttach(),
PhGetMsgSize()
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/pgsetdrawbuffersize.html on line 131
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/pgsetdrawbuffersize.html on line 131