From 3471e4514ffae28cab3fb926c86e5bf461723ac9 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 9 Apr 2025 00:34:19 +0300 Subject: RectPack. --- ReiLua_API.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ReiLua_API.lua') 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) -- cgit v1.2.3