summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2024-02-18 15:26:21 +0200
committerjussi2024-02-18 15:26:21 +0200
commit9b27daefc225752f3f24ea862e9c2be13f8addf6 (patch)
treecfa74048b9bddb9dc58e8117a4a7af845ee137eb /API.md
parent9de10be468c5151765a0e007d5889971c637fd24 (diff)
downloadreilua-enhanced-9b27daefc225752f3f24ea862e9c2be13f8addf6.tar.gz
reilua-enhanced-9b27daefc225752f3f24ea862e9c2be13f8addf6.tar.bz2
reilua-enhanced-9b27daefc225752f3f24ea862e9c2be13f8addf6.zip
Process renamed to update to be more inline with naming of raylib and common convention.
Diffstat (limited to 'API.md')
-rw-r--r--API.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/API.md b/API.md
index 4934bc4..b6323b7 100644
--- a/API.md
+++ b/API.md
@@ -2,7 +2,7 @@
## Functions
-Application needs 'main.lua' or 'main' file as entry point. ReiLua executable will first look it from same directory. Alternatively, path to the folder where "main.lua" is located can be given as argument. There are five Lua functions that the framework will call, 'RL.init', 'RL.process', 'RL.draw', 'RL.event', 'RL.log', and 'RL.exit'.
+Application needs 'main.lua' or 'main' file as entry point. ReiLua executable will first look it from same directory. Alternatively, path to the folder where "main.lua" is located can be given as argument. There are five Lua functions that the framework will call, 'RL.init', 'RL.update', 'RL.draw', 'RL.event', 'RL.log', and 'RL.exit'.
---
> function RL.init()
@@ -11,7 +11,7 @@ This function will be called first when 'main.lua' is found
---
-> function RL.process( delta )
+> function RL.update( delta )
This function will be called every frame during execution. It will get time duration from last frame on argument 'delta'
@@ -19,7 +19,7 @@ This function will be called every frame during execution. It will get time dura
> function RL.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. You can still use RL.BeginDrawing() and RL.EndDrawing() manually from anywhere.
+This function will be called every frame after update and it should have all rendering related functions. 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.
---