summaryrefslogtreecommitdiff
path: root/ReiLua_API.lua
diff options
context:
space:
mode:
authorjussi2023-10-22 22:14:56 +0300
committerjussi2023-10-22 22:14:56 +0300
commit168f4959d4a265d7615a81b667917754ca85bfce (patch)
treef6959d45b29b3e33d355b24c16514de58d5911d6 /ReiLua_API.lua
parent6915f3e27c7a2f4ed8c90909a9aa9cb8906d1c00 (diff)
downloadreilua-enhanced-168f4959d4a265d7615a81b667917754ca85bfce.tar.gz
reilua-enhanced-168f4959d4a265d7615a81b667917754ca85bfce.tar.bz2
reilua-enhanced-168f4959d4a265d7615a81b667917754ca85bfce.zip
rlgl Matrix state management API update.
Diffstat (limited to 'ReiLua_API.lua')
-rw-r--r--ReiLua_API.lua61
1 files changed, 61 insertions, 0 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua
index 881fb11..3b78623 100644
--- a/ReiLua_API.lua
+++ b/ReiLua_API.lua
@@ -6166,6 +6166,67 @@ function RL.rlFramebufferComplete( id ) end
---@return any success
function RL.rlUnloadFramebuffer( id ) end
+-- RLGL - Matrix state management
+
+---Get internal modelview matrix
+---- Success return Matrix
+---@return any modelview
+function RL.rlGetMatrixModelview() end
+
+---Get internal projection matrix
+---- Success return Matrix
+---@return any projection
+function RL.rlGetMatrixProjection() end
+
+---Get internal accumulated transform matrix
+---- Success return Matrix
+---@return any transform
+function RL.rlGetMatrixTransform() end
+
+---Get internal projection matrix for stereo render (selected eye)
+---- Failure return false
+---- Success return Matrix
+---@param eye integer
+---@return any projection
+function RL.rlGetMatrixProjectionStereo( eye ) end
+
+---Get internal view offset matrix for stereo render (selected eye)
+---- Failure return false
+---- Success return Matrix
+---@param eye integer
+---@return any viewOffset
+function RL.rlGetMatrixViewOffsetStereo( eye ) end
+
+---Set a custom projection matrix (replaces internal projection matrix)
+---- Failure return false
+---- Success return true
+---@param proj table
+---@return any success
+function RL.rlSetMatrixProjection( proj ) end
+
+---Set a custom modelview matrix (replaces internal modelview matrix)
+---- Failure return false
+---- Success return true
+---@param view table
+---@return any success
+function RL.rlSetMatrixModelview( view ) end
+
+---Set eyes projection matrices for stereo rendering
+---- Failure return false
+---- Success return true
+---@param right table
+---@param left table
+---@return any success
+function RL.rlSetMatrixProjectionStereo( right, left ) end
+
+---Set eyes view offsets matrices for stereo rendering
+---- Failure return false
+---- Success return true
+---@param right table
+---@param left table
+---@return any success
+function RL.rlSetMatrixViewOffsetStereo( right, left ) end
+
-- OpenGL - Framebuffer management
---Copy a block of pixels from one framebuffer object to another.