@@ -388,20 +388,20 @@ uint8_t name##_data[2 + (data_size)]; \
388
388
gfx_rletsprite_t *name = (gfx_rletsprite_t *)name##_data
389
389
390
390
/**
391
- * Sets a particular tile's value given an initialized tilemap
392
- * structure and pixel offsets
391
+ * Sets a particular tile's sprite tileset index.
392
+ * This function bases position on the pixel offset from the top-left of the tilemap.
393
393
*
394
394
* @param tilemap Pointer to initialized tilemap structure.
395
395
* @param x_offset Offset in pixels from the left of the tilemap.
396
396
* @param y_offset Offset in pixels from the top of the tilemap.
397
- * @param value Value to set tile to .
397
+ * @param value Sprite index in tileset .
398
398
*/
399
399
#define gfx_SetTile (tilemap , x_offset , y_offset , value ) \
400
400
(*(gfx_TilePtr((tilemap), (x_offset), (y_offset))) = (uint8_t)(value))
401
401
402
402
/**
403
- * Gets a particular tile's value given an initialized tilemap
404
- * structure and pixel offsets .
403
+ * Gets a particular tile's sprite tileset index.
404
+ * This function bases position on the pixel offset from the top-left of the tilemap .
405
405
*
406
406
* @param[in] tilemap Pointer to an initialized tilemap structure.
407
407
* @param[in] x_offset Offset in pixels from the left of the tilemap.
@@ -411,20 +411,20 @@ gfx_rletsprite_t *name = (gfx_rletsprite_t *)name##_data
411
411
(*(gfx_TilePtr((tilemap), (x_offset), (y_offset))))
412
412
413
413
/**
414
- * Sets a particular tile's value given an initialized tilemap structure
415
- * and mapped offsets .
414
+ * Sets a particular tile's sprite tileset index.
415
+ * This function uses the corrdinates from the tilemap array .
416
416
*
417
417
* @param[in] tilemap Pointer to initialized tilemap structure.
418
418
* @param[in] col Column of tile in tilemap.
419
419
* @param[in] row Row of tile in tilemap.
420
- * @param[in] value Value to set tile to .
420
+ * @param[in] value Sprite index in tileset .
421
421
*/
422
422
#define gfx_SetTileMapped (tilemap , col , row , value ) \
423
423
(*(gfx_TilePtrMapped((tilemap), (col), (row))) = (uint8_t)(value))
424
424
425
425
/**
426
- * Gets a particular tile's value given an initialized tilemap structure
427
- * and mapped offsets .
426
+ * Gets a particular tile's sprite tileset index.
427
+ * This function uses the corrdinates from the tilemap array .
428
428
*
429
429
* @param[in] tilemap Pointer to an initialized tilemap structure.
430
430
* @param[in] col Column of tile in tilemap.
@@ -626,7 +626,7 @@ gfx_sprite_t *gfx_AllocSprite(uint8_t width,
626
626
void * (* malloc_routine )(size_t ));
627
627
628
628
/**
629
- * Draws a tilemap given an initialized tilemap structure .
629
+ * Draws a tilemap.
630
630
*
631
631
* @param[in] tilemap Pointer to initialized tilemap structure.
632
632
* @param[in] x_offset Offset in pixels from the left of the tilemap.
@@ -638,7 +638,7 @@ void gfx_Tilemap(const gfx_tilemap_t *tilemap,
638
638
uint24_t y_offset );
639
639
640
640
/**
641
- * Draws an unclipped tilemap given an initialized tilemap structure .
641
+ * Draws an unclipped tilemap.
642
642
*
643
643
* @param[in] tilemap Pointer to initialized tilemap structure.
644
644
* @param[in] x_offset Offset in pixels from the left of the tilemap.
@@ -650,7 +650,7 @@ void gfx_Tilemap_NoClip(const gfx_tilemap_t *tilemap,
650
650
uint24_t y_offset );
651
651
652
652
/**
653
- * Draws a transparent tilemap given an initialized tilemap structure .
653
+ * Draws a transparent tilemap.
654
654
*
655
655
* @param[in] tilemap Pointer to initialized tilemap structure.
656
656
* @param[in] x_offset Offset in pixels from the left of the tilemap.
@@ -662,8 +662,7 @@ void gfx_TransparentTilemap(const gfx_tilemap_t *tilemap,
662
662
uint24_t y_offset );
663
663
664
664
/**
665
- * Draws an unclipped transparent tilemap given an initialized tilemap
666
- * structure.
665
+ * Draws an unclipped transparent tilemap.
667
666
*
668
667
* @param[in] tilemap Pointer to initialized tilemap structure.
669
668
* @param[in] x_offset Offset in pixels from the left of the tilemap.
@@ -675,9 +674,8 @@ void gfx_TransparentTilemap_NoClip(const gfx_tilemap_t *tilemap,
675
674
uint24_t y_offset );
676
675
677
676
/**
678
- * Gets a pointer to a particular tile given an initialized tilemap
679
- * structure and pixel offsets. Measurement is done from the actual
680
- * tilemap, not the drawn offset location.
677
+ * Gets a pointer to a particular sprite tileset index.
678
+ * This function bases position on the pixel offset from the top-left of the tilemap.
681
679
*
682
680
* @param[in] tilemap Pointer to initialized tilemap structure.
683
681
* @param[in] x_offset Offset in pixels from the left of the tilemap.
@@ -688,8 +686,8 @@ uint8_t *gfx_TilePtr(const gfx_tilemap_t *tilemap,
688
686
uint24_t y_offset );
689
687
690
688
/**
691
- * Gets a pointer to a particular tile given an initialized tilemap
692
- * structure and mapped offsets .
689
+ * Gets a pointer to a particular sprite tileset index.
690
+ * This function uses the corrdinates from the tilemap array .
693
691
*
694
692
* @param[in] tilemap Pointer to an initialized tilemap structure.
695
693
* @param[in] col Column of tile in tilemap.
0 commit comments