Argumets stored in RL.arg array.

This commit is contained in:
jussi
2023-10-15 22:31:17 +03:00
parent 7af7e70031
commit 95be0403e6
9 changed files with 40 additions and 14 deletions

6
API.md
View File

@@ -1,6 +1,6 @@
# ReiLua API
## Usage
## 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'.
@@ -41,6 +41,10 @@ This function will be called on program close. Cleanup could be done here.
---
## Arguments
Arguments are stored in 'RL.arg' array.
## Globals - ConfigFlags
FLAG_VSYNC_HINT = 64
FLAG_FULLSCREEN_MODE = 2