summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2022-05-18 18:10:45 +0300
committerjussi2022-05-18 18:10:45 +0300
commitf293e25dd821494b24e46a3bc0a612a5e03089a5 (patch)
tree27ba9780e2a5be013a2ec9e2e81c6b6b5d8e4b56 /API.md
parent59ea29d8ff9dad751659a0a42d76a5534f7b4b97 (diff)
downloadreilua-enhanced-f293e25dd821494b24e46a3bc0a612a5e03089a5.tar.gz
reilua-enhanced-f293e25dd821494b24e46a3bc0a612a5e03089a5.tar.bz2
reilua-enhanced-f293e25dd821494b24e46a3bc0a612a5e03089a5.zip
Shader load functions argument fix. File drop and change directory.
Diffstat (limited to 'API.md')
-rw-r--r--API.md34
1 files changed, 30 insertions, 4 deletions
diff --git a/API.md b/API.md
index 486e1cf..8861466 100644
--- a/API.md
+++ b/API.md
@@ -1120,7 +1120,8 @@ End scissor mode
> shader = RL_LoadShader( string vsFileName, string fsFileName )
-Load shader from files and bind default locations
+Load shader from files and bind default locations.
+NOTE: Set nil if no shader
- Failure return -1
- Success return int
@@ -1130,6 +1131,7 @@ Load shader from files and bind default locations
> shader = RL_LoadShaderFromMemory( string vsCode, string fsCode )
Load shader from code strings and bind default locations
+NOTE: Set nil if no shader
- Failure return -1
- Success return int
@@ -1577,7 +1579,7 @@ Get full path for a given fileName with path ( Uses static string )
---
-> filePath = RL_GetPrevDirectoryPath( string dirPath )
+> directory = RL_GetPrevDirectoryPath( string dirPath )
Get previous directory path for a given path ( Uses static string )
@@ -1586,11 +1588,10 @@ Get previous directory path for a given path ( Uses static string )
---
-> filePath = RL_GetWorkingDirectory()
+> directory = RL_GetWorkingDirectory()
Get current working directory ( Uses static string )
-- Failure return false
- Success return string
---
@@ -1604,6 +1605,31 @@ Get filenames in a directory path
---
+> success = RL_ChangeDirectory( string directory )
+
+Change working directory, return true on success
+
+- Failure return false
+- Success return true
+
+---
+
+> fileDropped = RL_IsFileDropped()
+
+Check if a file has been dropped into window
+
+- Success return bool
+
+---
+
+> files = RL_GetDroppedFiles()
+
+Get dropped files names
+
+- Success return string{}
+
+---
+
> time = RL_GetFileModTime( string fileName )
Get file modification time ( Last write time )