![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Set the ordering of the layers for a display
#include <gf/gf.h> int gf_display_set_layer_order( gf_display_t display, const unsigned order[], unsigned flags );
gf
This function sets the ordering of the layers for a display. Each display is always equipped with at least one layer (known as the main display layer), but some hardware is equipped with additional layers that can provide advanced visual effects without incurring additional CPU overhead.
![]() |
Threads should not call this function between calls to gf_draw_begin() and gf_draw_end(), or a deadlock will occur. |
Layers are stacked and therefore have an implicit z-order. Some hardware allows the reordering of these layers. The default ordering is numerical by layer index, with layer 0 being the furthest away from the user.
For example, to reverse the default order of the layers on a 2-layer display, you would specify an order array of { 1, 0 }. If there were six layers, and you wanted to move layer 2 to the back, you'd specify an order array of { 2, 0, 1, 3, 4, 5 }.
QNX Graphics Framework
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
gf_display_attach(), gf_display_detach()
![]() |
![]() |
![]() |
![]() |