summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2023-06-03 18:46:20 +0300
committerjussi2023-06-03 18:46:20 +0300
commit8ade9eeb436f1bc8090df698ccf24595cd21b5e3 (patch)
tree97e9528dc066fa619e0679116cb3583d5483b973 /API.md
parented6d37294a6b72382cca09f6808565b61bd0c36b (diff)
downloadreilua-enhanced-8ade9eeb436f1bc8090df698ccf24595cd21b5e3.tar.gz
reilua-enhanced-8ade9eeb436f1bc8090df698ccf24595cd21b5e3.tar.bz2
reilua-enhanced-8ade9eeb436f1bc8090df698ccf24595cd21b5e3.zip
rlgl Vertex level operations and Draw Textured Polygon Example.
Diffstat (limited to 'API.md')
-rw-r--r--API.md82
1 files changed, 82 insertions, 0 deletions
diff --git a/API.md b/API.md
index 0f2b15b..45fa871 100644
--- a/API.md
+++ b/API.md
@@ -6928,6 +6928,88 @@ NOTE: We store current viewport dimensions
---
+## RLGL - Vertex level operations
+
+---
+
+> success = RL.rlBegin( int mode )
+
+Initialize drawing mode ( how to organize vertex )
+
+- Failure return false
+- Success return true
+
+---
+
+> RL.rlEnd()
+
+Finish vertex providing
+
+---
+
+> success = RL.rlVertex2f( Vector2 position )
+
+Define one vertex ( position )
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.rlVertex3f( Vector3 position )
+
+Define one vertex ( position )
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.rlTexCoord2f( Vector2 texCoord )
+
+Define one vertex ( texture coordinate ) - 2 float
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.rlNormal3f( Vector3 normal )
+
+Define one vertex ( normal ) - 3 float
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.rlColor4ub( Color color )
+
+Define one vertex ( color ) - 4 byte
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.rlColor3f( Vector3 color )
+
+Define one vertex ( color ) - 3 float
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.rlColor4f( Vector4 color )
+
+Define one vertex ( color ) - 4 float
+
+- Failure return false
+- Success return true
+
+---
+
## RLGL - Textures state
---