Update docs/dev/Lua API.rst

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

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