diff options
| author | jussi | 2025-06-02 20:49:51 +0300 |
|---|---|---|
| committer | jussi | 2025-06-02 20:49:51 +0300 |
| commit | 5b8af05e96b33f2d032cc31a329b89e1231d5502 (patch) | |
| tree | 9ea0f70bae6c77cfc0edeb3f4b0b11fa9fb6be94 /ReiLua_API.lua | |
| parent | e26bb8603c5a4053f2790fc7d6ce02b3179f5289 (diff) | |
| download | reilua-enhanced-5b8af05e96b33f2d032cc31a329b89e1231d5502.tar.gz reilua-enhanced-5b8af05e96b33f2d032cc31a329b89e1231d5502.tar.bz2 reilua-enhanced-5b8af05e96b33f2d032cc31a329b89e1231d5502.zip | |
Frustum math from raylib extras.
Diffstat (limited to 'ReiLua_API.lua')
| -rw-r--r-- | ReiLua_API.lua | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua index 406c038..dec0d17 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -1167,7 +1167,7 @@ RL.RL_MAX_SHADER_LOCATIONS=32 ---Default projection matrix near cull distance RL.RL_CULL_DISTANCE_NEAR=0.01 ---Default projection matrix far cull distance -RL.RL_CULL_DISTANCE_FAR=1000 +RL.RL_CULL_DISTANCE_FAR=1000.0 -- Defines - RLGL Texture parameters @@ -6985,6 +6985,37 @@ function RL.QuaternionTransform( q, mat ) end ---@return any result function RL.QuaternionEquals( q1, q2 ) end +-- Math - Frustum + +---Extract frustum from projection and modelView matrices. +---- Success return Vector4{} +---@param projection table +---@param modelview table +---@return any frustum +function RL.ExtractFrustum( projection, modelview ) end + +---Check if point inside frustum +---- Success return bool +---@param frustum table +---@param position table +---@return any inFrustum +function RL.PointInFrustum( frustum, position ) end + +---Check if sphere inside frustum +---- Success return bool +---@param frustum table +---@param position table +---@return any inFrustum +function RL.SphereInFrustum( frustum, position ) end + +---Check if AABB inside frustum +---- Success return bool +---@param frustum table +---@param min table +---@param max table +---@return any inFrustum +function RL.AABBInFrustum( frustum, min, max ) end + -- Gui - Global gui state control functions ---Enable gui controls (global state) |
