TileLayer

General purpose TileLayer with palette support, mainly for backgrounds. Use multiple of this class for paralax scrolling.

Constructors

this
this(int tX, int tY, TileLayerRenderingMode renderMode)

Constructor. tX , tY : Set the size of the tiles on the layer.

Members

Functions

addTile
void addTile(Bitmap16Bit t, wchar id)
Undocumented in source. Be warned that the author may not have intended to support it.
getLayerInfo
BLInfo getLayerInfo()
Undocumented in source. Be warned that the author may not have intended to support it.
getMapping
wchar[] getMapping()
Undocumented in source. Be warned that the author may not have intended to support it.
getTile
Bitmap16Bit getTile(wchar id)
Undocumented in source. Be warned that the author may not have intended to support it.
loadMapping
void loadMapping(int x, int y, wchar[] map)
Undocumented in source. Be warned that the author may not have intended to support it.
readMapping
wchar readMapping(int x, int y)

Gets the the ID of the given element from the mapping. x , y : Position.

removeTile
void removeTile(wchar id)
Undocumented in source. Be warned that the author may not have intended to support it.
setWrapMode
void setWrapMode(bool w)

Wrapmode: if enabled, the layer will be turned into an "infinite" mode.

tileByPixel
wchar tileByPixel(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
updateRaster
void updateRaster(void* workpad, int pitch, ubyte[] palette, int[] threads)
Undocumented in source. Be warned that the author may not have intended to support it.
updateRaster
void updateRaster(Bitmap16Bit frameBuffer)
Undocumented in source. Be warned that the author may not have intended to support it.
writeMapping
void writeMapping(int x, int y, wchar w)

Writes to the map. x , y : Position. w : ID of the tile.

Inherited Members

From Layer

setRasterizer
void setRasterizer(int rX, int rY)
Undocumented in source. Be warned that the author may not have intended to support it.
scroll
void scroll(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
relScroll
void relScroll(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
getSX
int getSX()
Undocumented in source. Be warned that the author may not have intended to support it.
getSY
int getSY()
Undocumented in source. Be warned that the author may not have intended to support it.
updateRaster
void updateRaster(void* workpad, int pitch, ubyte[] palette, int[] threads)

Override this to enable output to the raster

From ITileLayer

getLayerInfo
BLInfo getLayerInfo()
Undocumented in source.
getTile
Bitmap16Bit getTile(wchar id)
Undocumented in source.
getMapping
wchar[] getMapping()
Undocumented in source.

Meta