pixelperfectengine.graphics.layers.base

Undocumented in source.

Public Imports

pixelperfectengine.graphics.bitmap
public import pixelperfectengine.graphics.bitmap;
Undocumented in source.
pixelperfectengine.graphics.common
public import pixelperfectengine.graphics.common;
Undocumented in source.
pixelperfectengine.graphics.layers.interfaces
public import pixelperfectengine.graphics.layers.interfaces;
Undocumented in source.
pixelperfectengine.system.exc
public import pixelperfectengine.system.exc;
Undocumented in source.

Members

Aliases

RenderFunc
alias RenderFunc = void function(uint* src, uint* dest, size_t length, ubyte value)
Undocumented in source.

Classes

Layer
class Layer

The basis of all layer classes, containing function pointers for rendering. Can be overloaded for user defined layers.

Enums

LayerType
enum LayerType

Mostly used for internal communication and scripting.

RenderingMode
enum RenderingMode

Defines how the layer or sprite will be rendered. See each value's documentation individually for more information on each mode.

WarpMode
enum WarpMode

Sets the WarpMode for any tile layer.

Functions

getRenderingFunc
RenderFunc getRenderingFunc(RenderingMode mode)

Returns the rendering function that belongs to the enumeration value.

localBlt
void localBlt(uint* src, uint* dest, size_t length, ubyte value)

For generating a blitter function with value modifier

localCpy
void localCpy(uint* src, uint* dest, size_t length, ubyte value)

For generating a copy function with value modifier

localXOR
void localXOR(uint* src, uint* dest, size_t length, ubyte value)

For generating a XOR blitter function with value modifier

Structs

MappingElement
struct MappingElement

Mapping element, that is used on most if not all layers in this engine. It reserves: * 16 bits for tile selection. * 6 bits for extra purposes (can be user defined if the layer doesn't use it for anything else). * 1 bit for vertical mirroring. * 1 bit for horizontal mirroring. * 8 bits for palette selection (can be used for user-defined purposes if tiles are either 16 or 32 bit). User defined purposes may include marking tiles with special purpose for the game logic.

Meta