summaryrefslogtreecommitdiff
path: root/ReiLua_API.lua
diff options
context:
space:
mode:
authorjussi2025-04-09 00:34:19 +0300
committerjussi2025-04-09 00:34:19 +0300
commit3471e4514ffae28cab3fb926c86e5bf461723ac9 (patch)
treea1fda2f7c82eb360cc897a60e52519b168791b78 /ReiLua_API.lua
parentd0bfd1f71d852eb55ec0e94792a02c7291080633 (diff)
downloadreilua-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.lua8
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)