More rlgl General render state functions. Fixed rlgl function prefix to rl.

This commit is contained in:
jussi
2023-05-15 14:18:58 +03:00
parent b387742850
commit 870e3a46a6
7 changed files with 290 additions and 5 deletions

75
API.md
View File

@@ -933,6 +933,12 @@ RL_OPENGL_43
RL_OPENGL_ES_20
## Globals - rlCullMode
RL_CULL_FACE_FRONT
RL_CULL_FACE_BACK
## Globals - OpenGL
GL_COLOR_BUFFER_BIT
@@ -6464,6 +6470,63 @@ Send light properties to shader
---
> RL.rlEnableColorBlend()
Enable color blending
---
> RL.rlDisableColorBlend()
Disable color blending
---
> RL.rlEnableDepthTest()
Enable depth test
---
> RL.rlDisableDepthTest()
Disable depth test
---
> RL.rlEnableDepthMask()
Enable depth write
---
> RL.rlDisableDepthMask()
Disable depth write
---
> RL.rlEnableBackfaceCulling()
Enable backface culling
---
> RL.rlDisableBackfaceCulling()
Disable backface culling
---
> success = RL.rlSetCullFace( int mode )
Set face culling mode
- Failure return false
- Success return true
---
> success = RL.rlSetLineWidth( float width )
Set the line drawing width
@@ -6481,6 +6544,18 @@ Get the line drawing width
---
> RL.rlEnableSmoothLines()
Enable line aliasing
---
> RL.rlDisableSmoothLines()
Disable line aliasing
---
## RLGL - Initialization functions
---