summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <[email protected]>2018-10-08 12:29:02 +0200
committerRay <[email protected]>2018-10-08 12:29:02 +0200
commit2feea87b616292b5bce4454a42c2d048f1cce7d8 (patch)
treeda6e5daeb725c36838c7aa83a9cee3408587eda0 /src/raylib.h
parent46c0e73c6cd419009c07a3feea7c744132cfd127 (diff)
downloadraylib-2feea87b616292b5bce4454a42c2d048f1cce7d8.tar.gz
raylib-2feea87b616292b5bce4454a42c2d048f1cce7d8.zip
Multiple changes, check description
REVIEW: Reorganized global variables for consistency ADDED: GetWindowHandle() to get native window handle ADDED: GetDirectoryFiles() to get files list for a DIR
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 20a3ca26..6549ba1d 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -814,6 +814,7 @@ RLAPI void SetWindowMinSize(int width, int height); // Set window
RLAPI void SetWindowSize(int width, int height); // Set window dimensions
RLAPI int GetScreenWidth(void); // Get current screen width
RLAPI int GetScreenHeight(void); // Get current screen height
+RLAPI void *GetWindowHandle(void); // Get native window handle
RLAPI int GetMonitorCount(void); // Get number of connected monitors
RLAPI int GetMonitorWidth(int monitor); // Get primary monitor width
RLAPI int GetMonitorHeight(int monitor); // Get primary monitor height
@@ -872,10 +873,12 @@ RLAPI const char *GetExtension(const char *fileName); // Get pointer
RLAPI const char *GetFileName(const char *filePath); // Get pointer to filename for a path string
RLAPI const char *GetDirectoryPath(const char *fileName); // Get full path for a given fileName (uses static string)
RLAPI const char *GetWorkingDirectory(void); // Get current working directory (uses static string)
+RLAPI char **GetDirectoryFiles(const char *dirPath, int *count); // Get filenames in a directory path (memory should be freed)
+RLAPI void ClearDirectoryFiles(void); // Clear directory files paths buffers (free memory)
RLAPI bool ChangeDirectory(const char *dir); // Change working directory, returns true if success
RLAPI bool IsFileDropped(void); // Check if a file has been dropped into window
-RLAPI char **GetDroppedFiles(int *count); // Get dropped files names
-RLAPI void ClearDroppedFiles(void); // Clear dropped files paths buffer
+RLAPI char **GetDroppedFiles(int *count); // Get dropped files names (memory should be freed)
+RLAPI void ClearDroppedFiles(void); // Clear dropped files paths buffer (free memory)
// Persistent storage management
RLAPI void StorageSaveValue(int position, int value); // Save integer value to storage file (to defined position)