#include <render.h>
Collaboration diagram for Layer_t:
Data Fields | |
union { | |
struct { | |
Bool dirty: 1 | |
Marks a layer as dirty when something on the layer changes or the layer's offset changes and an item on the layer is visible. | |
} | |
Uint16 flags | |
Bit flags used with layers. | |
}; | |
Sint16 | offX |
The horizontal offset value. | |
Sint16 | offY |
The vertical offset value. | |
RenderItem * | worldListFirst |
The first item of the list of all items present on the layer. | |
RenderItem * | worldListLast |
The last item of the list of all items present on the layer. |
Layers provide a Z-ordering for 2D graphics. The ordering of overlapping items in the same layer is not guaranteed. Each layer can be independently offset. Layer coordinates are translated into physical coordinates by adding the offset values.
Definition at line 373 of file render.h.
union { ... } |
Uint16 Layer_t::flags |
Sint16 Layer_t::offX |
The horizontal offset value.
Definition at line 388 of file render.h.
Referenced by PlacePlayerLabel().
Sint16 Layer_t::offY |
The vertical offset value.
Definition at line 395 of file render.h.
Referenced by PlacePlayerLabel().
The first item of the list of all items present on the layer.
Definition at line 377 of file render.h.
Referenced by AddRenderItem(), and RemoveRenderItem().
The last item of the list of all items present on the layer.
Definition at line 381 of file render.h.
Referenced by AddRenderItem(), and RemoveRenderItem().