|
|
*All drawing operations take place on a "back buffer" and not on the visible display. To make any content visible, you must call `jlDisplayPresent()`.*
|
|
|
|
|
|
#### jlDrawBlit8x8
|
|
|
```c
|
|
|
void jlDrawBlit8x8(jlStaT *sta, int cx1, int cy1, int cx2, int cy2);
|
|
|
void jlDrawBlit8x8(jlSurfaceT source, jint16 sx, jint16 sy, jint16 tx, jint16 ty);
|
|
|
```
|
|
|
"Blits" (rapidly copies) an 8x8 pixel "tile" from the specified surface onto the current drawing surface. 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.
|
|
|
|
|
|
#### jlDrawBlit8x8a
|
|
|
```c
|
|
|
void jlDrawBlit8x8a(jlSurfaceT source, jint16 sx, jint16 sy, jint16 tx, jint16 ty, byte offset);
|
|
|
```
|
|
|
"Blits" (rapidly copies) an 8x8 pixel "tile" from a loaded static image onto the back buffer. The coordinates of the tile to blit are specified in "cells". With the display being 320x200 pixels, there are 40x24 cells per image/display.
|
|
|
"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.
|
|
|
|
|
|
#### jlDrawBox
|
|
|
```c
|
... | ... | |