Update docs/dev/Lua API.rst

Co-authored-by: Myk <myk.taylor@gmail.com>
develop
shevernitskiy 2023-08-30 12:49:48 +03:00 committed by GitHub
parent 02d33e532d
commit 47a22025a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

@ -2628,10 +2628,9 @@ raw ``texpos``. When we need to draw a particular tile, we can look up the curre
* ``createTile(pixels, tile_px_w, tile_px_h)``
Create and register new a texture with the given tile dimension and array of ``pixels`` as data in row major order.
Each pixel is an integer representing color in packed RBGA format (for example, #0022FF11).
Returns ``TexposHandle``.
Create and register a new texture with the given tile dimensions and an array of
``pixels`` in row major order. Each pixel is an integer representing color in packed
RBGA format (for example, #0022FF11). Returns a ``TexposHandle``.
* ``createTileset(pixels, texture_px_w, texture_px_h, tile_px_w, tile_px_h)``