diff options
| author | jussi | 2025-04-09 00:34:19 +0300 |
|---|---|---|
| committer | jussi | 2025-04-09 00:34:19 +0300 |
| commit | 3471e4514ffae28cab3fb926c86e5bf461723ac9 (patch) | |
| tree | a1fda2f7c82eb360cc897a60e52519b168791b78 /ReiLua_API.lua | |
| parent | d0bfd1f71d852eb55ec0e94792a02c7291080633 (diff) | |
| download | reilua-enhanced-3471e4514ffae28cab3fb926c86e5bf461723ac9.tar.gz reilua-enhanced-3471e4514ffae28cab3fb926c86e5bf461723ac9.tar.bz2 reilua-enhanced-3471e4514ffae28cab3fb926c86e5bf461723ac9.zip | |
RectPack.
Diffstat (limited to 'ReiLua_API.lua')
| -rw-r--r-- | ReiLua_API.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua index 47e4903..0d21202 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -3521,6 +3521,14 @@ function RL.CheckCollisionPointLine( point, p1, p2, threshold ) end ---@return any rectangle function RL.GetCollisionRec( rec1, rec2 ) end +---Useful for e.g. packing rectangular textures into an atlas. stbrp_pack_rects +---- Success return Rectangle{} +---@param rects table +---@param size table +---@param padding integer +---@return any rects{} +function RL.RectPack( rects, size, padding ) end + -- Textures - Image loading functions ---Load image from file into CPU memory (RAM) |
