... | ... | @@ -10,6 +10,12 @@ void jlDrawBlit8x8a(jlSurfaceT source, jint16 sx, jint16 sy, jint16 tx, jint16 t |
|
|
```
|
|
|
"Blits" (rapidly copies) an 8x8 pixel "tile" from the specified surface onto the current drawing surface with transparency. This call is slower than `jlDrawBlit8x8`, so use only when needed. The coordinates of the tile to blit (`sx`, `sy`) are specified in 8x8 "cells". (With the display being 320x200 pixels, there are 40x24 cells per surface.) Target coordinates (`tx`, `ty`) are specified in pixels. Due to the way display memory is handled, blitting to odd columns is very slow. Requesting an odd column target will result in the tile being blitted to the previous even column. If you need single pixel horizontal accuracy, create a second set of tiles with the content offset by one pixel and alternate between them. Transparency information is contained in a "mask" tile that is located `offset` cells to the right of the specified tile. If the pixel in the mask is color 0, the corresponding pixel in the source tile will be copied to the current surface. If the mask pixel is color 15, nothing will be copied. Other mask color values are undefined and should not be used.
|
|
|
|
|
|
#### jlDrawBlitMap
|
|
|
```c
|
|
|
void jlDrawBlitMap(jint16 startX, jint16 startY, jint16 width, jint16 height, byte *mapData, juint16 stride, jlSurfaceT source);
|
|
|
```
|
|
|
Allows rapid blitting of a pre-defined arrangement of tiles to the current drawing surface. `startX` and `startY` define the upper right hand location of the destination in pixels. `width` and `height` define the destinations dimensions in cells (8x8 pixel blocks). `mapData` is a pointer to a block of memory containing a stream of bytes representing the source tiles X and Y location (one byte X, one byte Y per tile). To allow drawing a sub-section of the tile data, after `width` tiles have been blitted, `stride` bytes will be skipped in the `mapData` before the next row begins.
|
|
|
|
|
|
#### jlDrawBox
|
|
|
```c
|
|
|
void jlDrawBox(int x1, int y1, int x2, int y2);
|
... | ... | |