summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2023-10-22 22:14:56 +0300
committerjussi2023-10-22 22:14:56 +0300
commit168f4959d4a265d7615a81b667917754ca85bfce (patch)
treef6959d45b29b3e33d355b24c16514de58d5911d6 /API.md
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 'API.md')
-rw-r--r--API.md82
1 files changed, 82 insertions, 0 deletions
diff --git a/API.md b/API.md
index 08148d7..601cd69 100644
--- a/API.md
+++ b/API.md
@@ -7191,6 +7191,88 @@ Delete framebuffer from GPU
---
+## RLGL - Matrix state management
+
+---
+
+> modelview = RL.rlGetMatrixModelview()
+
+Get internal modelview matrix
+
+- Success return Matrix
+
+---
+
+> projection = RL.rlGetMatrixProjection()
+
+Get internal projection matrix
+
+- Success return Matrix
+
+---
+
+> transform = RL.rlGetMatrixTransform()
+
+Get internal accumulated transform matrix
+
+- Success return Matrix
+
+---
+
+> projection = RL.rlGetMatrixProjectionStereo( int eye )
+
+Get internal projection matrix for stereo render (selected eye)
+
+- Failure return false
+- Success return Matrix
+
+---
+
+> viewOffset = RL.rlGetMatrixViewOffsetStereo( int eye )
+
+Get internal view offset matrix for stereo render (selected eye)
+
+- Failure return false
+- Success return Matrix
+
+---
+
+> success = RL.rlSetMatrixProjection( Matrix proj )
+
+Set a custom projection matrix (replaces internal projection matrix)
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.rlSetMatrixModelview( Matrix view )
+
+Set a custom modelview matrix (replaces internal modelview matrix)
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.rlSetMatrixProjectionStereo( Matrix right, Matrix left )
+
+Set eyes projection matrices for stereo rendering
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.rlSetMatrixViewOffsetStereo( Matrix right, Matrix left )
+
+Set eyes view offsets matrices for stereo rendering
+
+- Failure return false
+- Success return true
+
+---
+
## OpenGL - Framebuffer management
---