- addTile
void addTile(ABitmap tile, wchar id)
Undocumented in source. Be warned that the author may not have intended to support it.
- getMX
int getMX()
Undocumented in source. Be warned that the author may not have intended to support it.
- getMY
int getMY()
Undocumented in source. Be warned that the author may not have intended to support it.
- getMapping
MappingElement[] getMapping()
Undocumented in source. Be warned that the author may not have intended to support it.
- getTX
int getTX()
Undocumented in source. Be warned that the author may not have intended to support it.
- getTY
int getTY()
Undocumented in source. Be warned that the author may not have intended to support it.
- getTileHeight
int getTileHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
- getTileWidth
int getTileWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
- loadMapping
void loadMapping(int x, int y, MappingElement[] mapping)
Loads a mapping from an array. x , y : Sizes of the mapping. map : an array representing the elements of the map.
x*y=map.length
- readMapping
MappingElement readMapping(int x, int y)
Gets the the ID of the given element from the mapping. x , y : Position.
- relScroll
void relScroll(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- removeTile
void removeTile(wchar id)
Removes the tile with the ID from the set.
- scroll
void scroll(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- setRasterizer
void setRasterizer(int rX, int rY)
Undocumented in source. Be warned that the author may not have intended to support it.
- setWarpMode
void setWarpMode(bool w)
Warpmode: if enabled, the layer will be turned into an "infinite" mode.
- tileByPixel
MappingElement tileByPixel(int x, int y)
Returns which tile is at the given pixel
- tileByPixelWithoutTransform
MappingElement tileByPixelWithoutTransform(int x, int y)
Returns which tile is at the given pixel
- updateRaster
void updateRaster(void* workpad, int pitch, Color* palette, int[] threads)
Undocumented in source. Be warned that the author may not have intended to support it.
- writeMapping
void writeMapping(int x, int y, MappingElement w)
Writes to the map. x , y : Position. w : ID of the tile.
- A
short A [@property getter]
Horizontal scaling. Greater than 256 means zooming in, less than 256 means zooming out.
- A
short A [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- B
short B [@property getter]
- B
short B [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- C
short C [@property getter]
- C
short C [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- D
short D [@property getter]
Vertical scaling. Greater than 256 means zooming in, less than 256 means zooming out.
- D
short D [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- x_0
short x_0 [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- x_0
short x_0 [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- y_0
short y_0 [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- y_0
short y_0 [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- mainRenderingFunction
void function(uint* src, uint* dest, size_t length) mainRenderingFunction;
Used to get around some readability issues. (void* src, void* dest, int length)
- mainColorLookupFunction
void function(ushort* src, uint* dest, uint* palette, size_t length) mainColorLookupFunction;
Undocumented in source.
- main8BitColorLookupFunction
void function(ubyte* src, uint* dest, uint* palette, size_t length) main8BitColorLookupFunction;
Undocumented in source.
- main4BitColorLookupFunction
void function(ubyte* src, uint* dest, uint* palette, size_t length, int offset) main4BitColorLookupFunction;
Undocumented in source.
- renderMode
LayerRenderingMode renderMode;
Undocumented in source.
- sX
int sX;
- sY
int sY;
- rasterX
int rasterX;
- rasterY
int rasterY;
Undocumented in source.
- setRasterizer
void setRasterizer(int rX, int rY)
- setRenderingMode
void setRenderingMode(LayerRenderingMode mode)
- scroll
void scroll(int x, int y)
- relScroll
void relScroll(int x, int y)
Relative scrolling. Positive values scrolls the layer left and up, negative values scrolls the layer down and right.
- getSX
int getSX()
Getter for the X scroll position.
- getSY
int getSY()
Getter for the Y scroll position.
- updateRaster
void updateRaster(void* workpad, int pitch, Color* palette, int[] threads)
Override this to enable output to the raster
- flipHorizontal
void flipHorizontal(uint* src, int length)
Standard algorithm for horizontal mirroring
Implements a modified TileLayer with transformability with capabilities similar to MODE7. <br/> Transform function: [x',y'] = ([A,B,C,D] * ([x,y] + [sX,sY] - [x_0,y_0])>>>8 + [x_0,y_0] <br/> All basic transform values are integer based, 256 equals with 1.0 <br/> Restrictions compared to standard TileLayer: <ul> <li>Only a single type of bitmap can be used and 4 bit ones are excluded.</li> <li>8 bit tiles will share the same palette.</li> <li>Tiles must have any of the following sizes: 8, 16, 32, 64.</li> <li>Maximum layer size in pixels are restricted to 65536*65536</li> </ul> HDMA emulation supported through delegate hBlankInterrupt.