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_set_hw_polygon.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_set_hw_polygon.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_set_hw_polygon.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_set_hw_polygon.html on line 8
Toggles the behavior of polygon software fallback rendering
#include <gf/gf.h>
void gf_context_set_hw_polygon( gf_context_t context,
uint8_t hw_only );
- context
- The graphics context to enable hardware-only polygon rendering, or disable
hardware-only polygon rendering (allow software fallback).
- hw_only
- Enable hardware-only polygon rendering, or disable hardware only
polygon rendering (allow software fallback).
If hardware-only polygon rendering is enabled, and the driver does not support the
request polygon operation, then gf_draw_polyline() and gf_draw_poly_fill() will
return GF_ERR_NOSUPPORT.
gf
Polygon draw operations should be able to avoid software rendering.
Ideally, gf_draw_polyline() and gf_draw_poly_fill() should have options to prevent
software fallback polygon rendering however, when the
software fallback was initially implemented, it should have been turned on.
Instead, it was made the default behaviour.
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
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_set_hw_polygon.html on line 109
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_set_hw_polygon.html on line 109