Standard algorithm for horizontal mirroring, used for tile mirroring
Returns the type of the layer. Useful with certain scripting languages.
Getter for the X scroll position.
Getter for the Y scroll position.
Relatively scrolls the layer by the given amount. Formula is: [sX,sY] = [sX,sY] + [x,y]
Scrolls the layer to the given position.
Sets up the layer for the current rasterizer.
Sets the global rendering mode for this layer.
Renders the layer's output to the raster. Function is called sequentially for all layers. Layers with higher priority number will render to the raster in a later time. Function is marked as @nogc, as render-time allocation has negative impact on performance. For errors, either use asserts for unrecoverable errors, or errorcodes for less severe cases.
Used to implement changeable renderers for each layers
Raster width (visible)
Haster height
Horizontal scroll position
Vertical scroll position
The basis of all layer classes, containing function pointers for rendering. Can be overloaded for user defined layers.