From 870e3a46a6fcdbd5b264406984d232874f138ea3 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 15 May 2023 14:18:58 +0300 Subject: More rlgl General render state functions. Fixed rlgl function prefix to rl. --- ReiLua_API.lua | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'ReiLua_API.lua') diff --git a/ReiLua_API.lua b/ReiLua_API.lua index a0b3dd0..d850b65 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -551,6 +551,11 @@ RL.RL_OPENGL_33=3 RL.RL_OPENGL_43=4 RL.RL_OPENGL_ES_20=5 +-- Globals - rlCullMode + +RL.RL_CULL_FACE_FRONT=0 +RL.RL_CULL_FACE_BACK=1 + -- Globals - OpenGL RL.GL_COLOR_BUFFER_BIT=16384 @@ -5286,6 +5291,45 @@ function RL.UpdateLightValues( shader, light ) end -- RLGL - General render state +---Enable color blending +---@return any RL.rlEnableColorBlend +function RL.rlEnableColorBlend() end + +---Disable color blending +---@return any RL.rlDisableColorBlend +function RL.rlDisableColorBlend() end + +---Enable depth test +---@return any RL.rlEnableDepthTest +function RL.rlEnableDepthTest() end + +---Disable depth test +---@return any RL.rlDisableDepthTest +function RL.rlDisableDepthTest() end + +---Enable depth write +---@return any RL.rlEnableDepthMask +function RL.rlEnableDepthMask() end + +---Disable depth write +---@return any RL.rlDisableDepthMask +function RL.rlDisableDepthMask() end + +---Enable backface culling +---@return any RL.rlEnableBackfaceCulling +function RL.rlEnableBackfaceCulling() end + +---Disable backface culling +---@return any RL.rlDisableBackfaceCulling +function RL.rlDisableBackfaceCulling() end + +---Set face culling mode +---- Failure return false +---- Success return true +---@param mode integer +---@return any success +function RL.rlSetCullFace( mode ) end + ---Set the line drawing width ---- Failure return false ---- Success return true @@ -5298,6 +5342,14 @@ function RL.rlSetLineWidth( width ) end ---@return any width function RL.rlGetLineWidth() end +---Enable line aliasing +---@return any RL.rlEnableSmoothLines +function RL.rlEnableSmoothLines() end + +---Disable line aliasing +---@return any RL.rlDisableSmoothLines +function RL.rlDisableSmoothLines() end + -- RLGL - Initialization functions ---Get current OpenGL version -- cgit v1.2.3