From f293e25dd821494b24e46a3bc0a612a5e03089a5 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 18 May 2022 18:10:45 +0300 Subject: Shader load functions argument fix. File drop and change directory. --- API.md | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) (limited to 'API.md') 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 ) -- cgit v1.2.3