summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2022-02-22 19:09:57 +0200
committerjussi2022-02-22 19:09:57 +0200
commit30ae308c9b26b18096f3f993f4b6ad50ea6bfd76 (patch)
tree4d44d290e078ff09ff848134d3e0f31ca9c5134d /API.md
parenta7f58b3261565b59e508c659ae3a7f1964a5bad5 (diff)
downloadreilua-enhanced-30ae308c9b26b18096f3f993f4b6ad50ea6bfd76.tar.gz
reilua-enhanced-30ae308c9b26b18096f3f993f4b6ad50ea6bfd76.tar.bz2
reilua-enhanced-30ae308c9b26b18096f3f993f4b6ad50ea6bfd76.zip
Documentation, heightmap example and custom begin and end draw.
Diffstat (limited to 'API.md')
-rw-r--r--API.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/API.md b/API.md
index e9805ba..297e9d8 100644
--- a/API.md
+++ b/API.md
@@ -20,7 +20,8 @@ This function will be called every frame during execution. It will get time dura
> function draw()
This function will be called every frame after process and it should have all rendering related functions.
-Note: Engine will call Raylib functions 'BeginDrawing()' before this function call and 'EndDrawing()' after it
+Note: Engine will call Raylib functions 'BeginDrawing()' before this function call and 'EndDrawing()' after it.
+You can still use RL_BeginDrawing() and RL_EndDrawing() manually from anywhere.
---
@@ -698,6 +699,18 @@ Set background color ( framebuffer clear color )
---
+> RL_BeginDrawing()
+
+Setup canvas ( framebuffer ) to start drawing
+
+---
+
+> RL_EndDrawing()
+
+End canvas drawing and swap buffers ( double buffering )
+
+---
+
> success = RL_BeginBlendMode( int mode )
Begin blending mode ( BLEND_ALPHA, BLEND_ADDITIVE, BLEND_MULTIPLIED... )