summaryrefslogtreecommitdiff
path: root/ReiLua_API.lua
diff options
context:
space:
mode:
authorjussi2024-10-25 21:19:42 +0300
committerjussi2024-10-25 21:19:42 +0300
commitcddfc09ccc286726736fa436a10919021a177b69 (patch)
treeac99e0a221807ee4d1906124f6b1218022d6011f /ReiLua_API.lua
parentab995f345387b306735ecfbda84dbc019f1053bb (diff)
downloadreilua-enhanced-cddfc09ccc286726736fa436a10919021a177b69.tar.gz
reilua-enhanced-cddfc09ccc286726736fa436a10919021a177b69.tar.bz2
reilua-enhanced-cddfc09ccc286726736fa436a10919021a177b69.zip
glDepthRange and glPolygonOffset.
Diffstat (limited to 'ReiLua_API.lua')
-rw-r--r--ReiLua_API.lua22
1 files changed, 19 insertions, 3 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua
index b519248..3df128b 100644
--- a/ReiLua_API.lua
+++ b/ReiLua_API.lua
@@ -1181,6 +1181,8 @@ RL.GL_DEPTH_TEST=2929
RL.GL_DITHER=3024
---If enabled, an offset is added to depth values of a polygon's fragments produced by rasterization. See glPolygonOffset
RL.GL_POLYGON_OFFSET_FILL=32823
+RL.GL_POLYGON_OFFSET_LINE=10754
+RL.GL_POLYGON_OFFSET_POINT=10753
---If enabled, compute a temporary coverage value where each bit is determined by the alpha value at the corresponding sample location. The temporary coverage value is then ANDed with the fragment coverage value
RL.GL_SAMPLE_ALPHA_TO_COVERAGE=32926
---If enabled, the fragment's coverage is ANDed with the temporary coverage value. If GL_SAMPLE_COVERAGE_INVERT is set to GL_TRUE, invert the coverage value. See glSampleCoverage
@@ -4811,7 +4813,7 @@ function RL.GetMeshBoundingBox( mesh ) end
---@return any RL.GenMeshTangents
function RL.GenMeshTangents( mesh ) end
----Get mesh data as table.
+---Get mesh vertex attributes data as table.
---- Success return Mesh{}
---@param mesh any
---@return any meshData
@@ -6326,8 +6328,9 @@ function RL.GuiSetState( state ) end
function RL.GuiGetState() end
---Set guiSliderDragging
+---@param dragging boolean
---@return any RL.GuiSetSliderDragging
-function RL.GuiSetSliderDragging() end
+function RL.GuiSetSliderDragging( dragging ) end
---Get guiSliderDragging
---- Success return bool
@@ -6335,8 +6338,9 @@ function RL.GuiSetSliderDragging() end
function RL.GuiGetSliderDragging() end
---Set guiSliderActive
+---@param rect any
---@return any RL.GuiSetSliderActive
-function RL.GuiSetSliderActive() end
+function RL.GuiSetSliderActive( rect ) end
---Get guiSliderActive
---- Success return Rectangle
@@ -7730,6 +7734,12 @@ function RL.glBlitFramebuffer( srcTex, dstTex, srcRect, dstRect, mask, filter )
-- OpenGL - State Management
+---Specify mapping of depth values from normalized device coordinates to window coordinates
+---@param nearVal number
+---@param farVal number
+---@return any RL.glDepthRange
+function RL.glDepthRange( nearVal, farVal ) end
+
---Enable server-side GL capabilities
---@param cap integer
---@return any RL.glEnable
@@ -7740,6 +7750,12 @@ function RL.glEnable( cap ) end
---@return any RL.glDisable
function RL.glDisable( cap ) end
+---Set the scale and units used to calculate depth values
+---@param factor number
+---@param units number
+---@return any RL.glPolygonOffset
+function RL.glPolygonOffset( factor, units ) end
+
---Set front and back function and reference value for stencil testing
---@param func integer
---@param ref integer