From 8ade9eeb436f1bc8090df698ccf24595cd21b5e3 Mon Sep 17 00:00:00 2001 From: jussi Date: Sat, 3 Jun 2023 18:46:20 +0300 Subject: rlgl Vertex level operations and Draw Textured Polygon Example. --- API.md | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) (limited to 'API.md') 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 --- -- cgit v1.2.3