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 /ReiLua_API.lua | |
| 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 'ReiLua_API.lua')
| -rw-r--r-- | ReiLua_API.lua | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua index 990295e..f7e1bb8 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -5549,6 +5549,88 @@ function RL.GetLightColor( light ) end ---@return any enabled function RL.IsLightEnabled( light ) end +-- RLGL - Matrix operations + +---Choose the current matrix to be transformed +---- Failure return false +---- Success return true +---@param mode integer +---@return any success +function RL.rlMatrixMode( mode ) end + +---Push the current matrix to stack +---@return any RL.rlPushMatrix +function RL.rlPushMatrix() end + +---Pop latest inserted matrix from stack +---@return any RL.rlPopMatrix +function RL.rlPopMatrix() end + +---Reset current matrix to identity matrix +---@return any RL.rlLoadIdentity +function RL.rlLoadIdentity() end + +---Multiply the current matrix by a translation matrix +---- Failure return false +---- Success return true +---@param translation table +---@return any success +function RL.rlTranslatef( translation ) end + +---Multiply the current matrix by a rotation matrix +---- Failure return false +---- Success return true +---@param angle number +---@param rotation table +---@return any success +function RL.rlRotatef( angle, rotation ) end + +---Multiply the current matrix by a scaling matrix +---- Failure return false +---- Success return true +---@param scale table +---@return any success +function RL.rlScalef( scale ) end + +---Multiply the current matrix by another matrix +---- Failure return false +---- Success return true +---@param matrix table +---@return any success +function RL.rlMultMatrixf( matrix ) end + +---Multiply the current matrix by a perspective matrix generated by parameters +---- Failure return false +---- Success return true +---@param left number +---@param right number +---@param bottom number +---@param top number +---@param znear number +---@param zfar number +---@return any success +function RL.rlFrustum( left, right, bottom, top, znear, zfar ) end + +---Multiply the current matrix by an orthographic matrix generated by parameters +---- Failure return false +---- Success return true +---@param left number +---@param right number +---@param bottom number +---@param top number +---@param znear number +---@param zfar number +---@return any success +function RL.rlOrtho( left, right, bottom, top, znear, zfar ) end + +---Set the viewport area ( transformation from normalized device coordinates to window coordinates ) +---NOTE: We store current viewport dimensions +---- Failure return false +---- Success return true +---@param viewport table +---@return any success +function RL.rlViewport( viewport ) end + -- RLGL - Textures state ---Select and active a texture slot @@ -5686,6 +5768,26 @@ function RL.rlDisableSmoothLines() end ---@return any version function RL.rlGetVersion() end +-- RLGL - Render batch management + +---Update and draw internal render batch +---@return any RL.rlDrawRenderBatchActive +function RL.rlDrawRenderBatchActive() end + +---Check internal buffer overflow for a given number of vertex and force a rlRenderBatch draw call if required +---- Failure return nil +---- Success return bool +---@param vCount integer +---@return any overflow +function RL.rlCheckRenderBatchLimit( vCount ) end + +---Set current texture for render batch and check buffers limits +---- Failure return false +---- Success return true +---@param id integer +---@return any success +function RL.rlSetTexture( id ) end + -- RLGL - Textures management ---Load texture in GPU |
