diff options
| author | jussi | 2023-06-02 23:19:32 +0300 |
|---|---|---|
| committer | jussi | 2023-06-02 23:19:32 +0300 |
| commit | ed6d37294a6b72382cca09f6808565b61bd0c36b (patch) | |
| tree | e3d00f3b3e0c339d329274f27ed39cf21f3cafad /API.md | |
| parent | d550afa3d41e49c6cb215498db0eb547a628d578 (diff) | |
| download | reilua-enhanced-ed6d37294a6b72382cca09f6808565b61bd0c36b.tar.gz reilua-enhanced-ed6d37294a6b72382cca09f6808565b61bd0c36b.tar.bz2 reilua-enhanced-ed6d37294a6b72382cca09f6808565b61bd0c36b.zip | |
rlgl Some Render batch management functions and Matrix operations functions.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 123 |
1 files changed, 123 insertions, 0 deletions
@@ -6833,6 +6833,101 @@ Get light enabled --- +## RLGL - Matrix operations + +--- + +> success = RL.rlMatrixMode( int mode ) + +Choose the current matrix to be transformed + +- Failure return false +- Success return true + +--- + +> RL.rlPushMatrix() + +Push the current matrix to stack + +--- + +> RL.rlPopMatrix() + +Pop latest inserted matrix from stack + +--- + +> RL.rlLoadIdentity() + +Reset current matrix to identity matrix + +--- + +> success = RL.rlTranslatef( Vector3 translation ) + +Multiply the current matrix by a translation matrix + +- Failure return false +- Success return true + +--- + +> success = RL.rlRotatef( float angle, Vector3 rotation ) + +Multiply the current matrix by a rotation matrix + +- Failure return false +- Success return true + +--- + +> success = RL.rlScalef( Vector3 scale ) + +Multiply the current matrix by a scaling matrix + +- Failure return false +- Success return true + +--- + +> success = RL.rlMultMatrixf( Matrix matrix ) + +Multiply the current matrix by another matrix + +- Failure return false +- Success return true + +--- + +> success = RL.rlFrustum( float left, float right, float bottom, float top, float znear, float zfar ) + +Multiply the current matrix by a perspective matrix generated by parameters + +- Failure return false +- Success return true + +--- + +> success = RL.rlOrtho( float left, float right, float bottom, float top, float znear, float zfar ) + +Multiply the current matrix by an orthographic matrix generated by parameters + +- Failure return false +- Success return true + +--- + +> success = RL.rlViewport( Rectangle viewport ) + +Set the viewport area ( transformation from normalized device coordinates to window coordinates ) +NOTE: We store current viewport dimensions + +- Failure return false +- Success return true + +--- + ## RLGL - Textures state --- @@ -7024,6 +7119,34 @@ Get current OpenGL version --- +## RLGL - Render batch management + +--- + +> RL.rlDrawRenderBatchActive() + +Update and draw internal render batch + +--- + +> overflow = RL.rlCheckRenderBatchLimit( int vCount ) + +Check internal buffer overflow for a given number of vertex and force a rlRenderBatch draw call if required + +- Failure return nil +- Success return bool + +--- + +> success = RL.rlSetTexture( int id ) + +Set current texture for render batch and check buffers limits + +- Failure return false +- Success return true + +--- + ## RLGL - Textures management --- |
