diff --git a/.github/workflows/parse_api.yml b/.github/workflows/parse_api.yml
index ec76532ba..c8665e1d4 100644
--- a/.github/workflows/parse_api.yml
+++ b/.github/workflows/parse_api.yml
@@ -22,7 +22,7 @@ jobs:
- name: Diff parse files
id: diff
run: |
- git add -N parser
+ git add -N tools/parser
git diff --name-only --exit-code
continue-on-error: true
diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c
index aacc456b5..cab497266 100644
--- a/src/platforms/rcore_desktop_glfw.c
+++ b/src/platforms/rcore_desktop_glfw.c
@@ -130,27 +130,29 @@ void ClosePlatform(void); // Close platform
static void ErrorCallback(int error, const char *description); // GLFW3 Error Callback, runs on GLFW3 error
// Window callbacks events
-static void WindowSizeCallback(GLFWwindow *window, int width, int height); // GLFW3 WindowSize Callback, runs when window is resized
-static void WindowPosCallback(GLFWwindow* window, int x, int y); // GLFW3 WindowPos Callback, runs when window is moved
-static void WindowIconifyCallback(GLFWwindow *window, int iconified); // GLFW3 WindowIconify Callback, runs when window is minimized/restored
-static void WindowMaximizeCallback(GLFWwindow* window, int maximized); // GLFW3 Window Maximize Callback, runs when window is maximized
-static void WindowFocusCallback(GLFWwindow *window, int focused); // GLFW3 WindowFocus Callback, runs when window get/lose focus
-static void WindowDropCallback(GLFWwindow *window, int count, const char **paths); // GLFW3 Window Drop Callback, runs when drop files into window
-static void WindowContentScaleCallback(GLFWwindow *window, float scalex, float scaley); // GLFW3 Window Content Scale Callback, runs when window changes scale
+static void WindowSizeCallback(GLFWwindow *window, int width, int height); // GLFW3 WindowSize Callback, runs when window is resized
+static void WindowPosCallback(GLFWwindow* window, int x, int y); // GLFW3 WindowPos Callback, runs when window is moved
+static void WindowIconifyCallback(GLFWwindow *window, int iconified); // GLFW3 WindowIconify Callback, runs when window is minimized/restored
+static void WindowMaximizeCallback(GLFWwindow* window, int maximized); // GLFW3 Window Maximize Callback, runs when window is maximized
+static void WindowFocusCallback(GLFWwindow *window, int focused); // GLFW3 WindowFocus Callback, runs when window get/lose focus
+static void WindowDropCallback(GLFWwindow *window, int count, const char **paths); // GLFW3 Window Drop Callback, runs when drop files into window
+static void WindowContentScaleCallback(GLFWwindow *window, float scalex, float scaley); // GLFW3 Window Content Scale Callback, runs when window changes scale
// Input callbacks events
-static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, int mods); // GLFW3 Keyboard Callback, runs on key pressed
-static void CharCallback(GLFWwindow *window, unsigned int codepoint); // GLFW3 Char Callback, runs on key pressed (get codepoint value)
-static void MouseButtonCallback(GLFWwindow *window, int button, int action, int mods); // GLFW3 Mouse Button Callback, runs on mouse button pressed
-static void MouseCursorPosCallback(GLFWwindow *window, double x, double y); // GLFW3 Cursor Position Callback, runs on mouse move
-static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffset); // GLFW3 Scrolling Callback, runs on mouse wheel
-static void CursorEnterCallback(GLFWwindow *window, int enter); // GLFW3 Cursor Enter Callback, cursor enters client area
-static void JoystickCallback(int jid, int event); // GLFW3 Joystick Connected/Disconnected Callback
+static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, int mods); // GLFW3 Keyboard Callback, runs on key pressed
+static void CharCallback(GLFWwindow *window, unsigned int codepoint); // GLFW3 Char Callback, runs on key pressed (get codepoint value)
+static void MouseButtonCallback(GLFWwindow *window, int button, int action, int mods); // GLFW3 Mouse Button Callback, runs on mouse button pressed
+static void MouseCursorPosCallback(GLFWwindow *window, double x, double y); // GLFW3 Cursor Position Callback, runs on mouse move
+static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffset); // GLFW3 Scrolling Callback, runs on mouse wheel
+static void CursorEnterCallback(GLFWwindow *window, int enter); // GLFW3 Cursor Enter Callback, cursor enters client area
+static void JoystickCallback(int jid, int event); // GLFW3 Joystick Connected/Disconnected Callback
-// Wrappers used by glfwInitAllocator
-static void *AllocateWrapper(size_t size, void *user); // GLFW3 GLFWallocatefun, wrapps around RL_CALLOC macro
-static void *ReallocateWrapper(void *block, size_t size, void *user); // GLFW3 GLFWreallocatefun, wrapps around RL_REALLOC macro
-static void DeallocateWrapper(void *block, void *user); // GLFW3 GLFWdeallocatefun, wraps around RL_FREE macro
+// Memory allocator wrappers [used by glfwInitAllocator()]
+static void *AllocateWrapper(size_t size, void *user); // GLFW3 GLFWallocatefun, wrapps around RL_CALLOC macro
+static void *ReallocateWrapper(void *block, size_t size, void *user); // GLFW3 GLFWreallocatefun, wrapps around RL_REALLOC macro
+static void DeallocateWrapper(void *block, void *user); // GLFW3 GLFWdeallocatefun, wraps around RL_FREE macro
+
+static void SetDimensionsFromMonitor(GLFWmonitor *monitor); // Set screen dimensions from monitor/display dimensions
//----------------------------------------------------------------------------------
// Module Functions Declaration
@@ -435,7 +437,7 @@ void SetWindowState(unsigned int flags)
// State change: FLAG_INTERLACED_HINT
if (((CORE.Window.flags & FLAG_INTERLACED_HINT) != (flags & FLAG_INTERLACED_HINT)) && ((flags & FLAG_INTERLACED_HINT) > 0))
{
- TRACELOG(LOG_WARNING, "RPI: Interlaced mode can only be configured before window initialization");
+ TRACELOG(LOG_WARNING, "WINDOW: Interlaced mode can only be configured before window initialization");
}
}
@@ -993,7 +995,7 @@ Vector2 GetWindowPosition(void)
// Get window scale DPI factor for current monitor
Vector2 GetWindowScaleDPI(void)
{
- Vector2 scale = {0};
+ Vector2 scale = { 0 };
glfwGetWindowContentScale(platform.handle, &scale.x, &scale.y);
return scale;
}
@@ -1321,20 +1323,6 @@ void PollInputEvents(void)
//----------------------------------------------------------------------------------
// Module Internal Functions Definition
//----------------------------------------------------------------------------------
-
-static void SetDimensionsFromMonitor(GLFWmonitor *monitor)
-{
- const GLFWvidmode *mode = glfwGetVideoMode(monitor);
-
- // Default display resolution to that of the current mode
- CORE.Window.display.width = mode->width;
- CORE.Window.display.height = mode->height;
-
- // Set screen width/height to the display width/height if they are 0
- if (CORE.Window.screen.width == 0) CORE.Window.screen.width = CORE.Window.display.width;
- if (CORE.Window.screen.height == 0) CORE.Window.screen.height = CORE.Window.display.height;
-}
-
// Function wrappers around RL_*alloc macros, used by glfwInitAllocator() inside of InitPlatform()
// We need to provide these because GLFWallocator expects function pointers with specific signatures
// Similar wrappers exist in utils.c but we cannot reuse them here due to declaration mismatch
@@ -1929,8 +1917,6 @@ static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, i
// GLFW3 Char Callback, get unicode codepoint value
static void CharCallback(GLFWwindow *window, unsigned int codepoint)
{
- //TRACELOG(LOG_DEBUG, "Char Callback: Codepoint: %i", codepoint);
-
// NOTE: Registers any key down considering OS keyboard layout but
// does not detect action events, those should be managed by user...
// Ref: https://github.com/glfw/glfw/issues/668#issuecomment-166794907
@@ -2041,6 +2027,20 @@ static void JoystickCallback(int jid, int event)
}
}
+// Set screen dimensions from monitor/display dimensions
+static void SetDimensionsFromMonitor(GLFWmonitor *monitor)
+{
+ const GLFWvidmode *mode = glfwGetVideoMode(monitor);
+
+ // Default display resolution to that of the current mode
+ CORE.Window.display.width = mode->width;
+ CORE.Window.display.height = mode->height;
+
+ // Set screen width/height to the display width/height if they are 0
+ if (CORE.Window.screen.width == 0) CORE.Window.screen.width = CORE.Window.display.width;
+ if (CORE.Window.screen.height == 0) CORE.Window.screen.height = CORE.Window.display.height;
+}
+
#ifdef _WIN32
# define WIN32_CLIPBOARD_IMPLEMENTATION
# include "../external/win32_clipboard.h"
diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c
index da1bded6d..f2e2a7407 100644
--- a/src/platforms/rcore_desktop_rgfw.c
+++ b/src/platforms/rcore_desktop_rgfw.c
@@ -240,12 +240,34 @@ static const unsigned short keyMappingRGFW[] = {
[RGFW_scrollLock] = KEY_SCROLL_LOCK,
};
+static int RGFW_gpConvTable[18] = {
+ [RGFW_gamepadY] = GAMEPAD_BUTTON_RIGHT_FACE_UP,
+ [RGFW_gamepadB] = GAMEPAD_BUTTON_RIGHT_FACE_RIGHT,
+ [RGFW_gamepadA] = GAMEPAD_BUTTON_RIGHT_FACE_DOWN,
+ [RGFW_gamepadX] = GAMEPAD_BUTTON_RIGHT_FACE_LEFT,
+ [RGFW_gamepadL1] = GAMEPAD_BUTTON_LEFT_TRIGGER_1,
+ [RGFW_gamepadR1] = GAMEPAD_BUTTON_RIGHT_TRIGGER_1,
+ [RGFW_gamepadL2] = GAMEPAD_BUTTON_LEFT_TRIGGER_2,
+ [RGFW_gamepadR2] = GAMEPAD_BUTTON_RIGHT_TRIGGER_2,
+ [RGFW_gamepadSelect] = GAMEPAD_BUTTON_MIDDLE_LEFT,
+ [RGFW_gamepadHome] = GAMEPAD_BUTTON_MIDDLE,
+ [RGFW_gamepadStart] = GAMEPAD_BUTTON_MIDDLE_RIGHT,
+ [RGFW_gamepadUp] = GAMEPAD_BUTTON_LEFT_FACE_UP,
+ [RGFW_gamepadRight] = GAMEPAD_BUTTON_LEFT_FACE_RIGHT,
+ [RGFW_gamepadDown] = GAMEPAD_BUTTON_LEFT_FACE_DOWN,
+ [RGFW_gamepadLeft] = GAMEPAD_BUTTON_LEFT_FACE_LEFT,
+ [RGFW_gamepadL3] = GAMEPAD_BUTTON_LEFT_THUMB,
+ [RGFW_gamepadR3] = GAMEPAD_BUTTON_RIGHT_THUMB,
+};
+
//----------------------------------------------------------------------------------
// Module Internal Functions Declaration
//----------------------------------------------------------------------------------
int InitPlatform(void); // Initialize platform (graphics, inputs and more)
bool InitGraphicsDevice(void); // Initialize graphics device
+static KeyboardKey ConvertScancodeToKey(u32 keycode);
+
//----------------------------------------------------------------------------------
// Module Functions Declaration
//----------------------------------------------------------------------------------
@@ -897,28 +919,6 @@ const char *GetKeyName(int key)
return "";
}
-static KeyboardKey ConvertScancodeToKey(u32 keycode);
-
-int RGFW_gpConvTable[18] = {
- [RGFW_gamepadY] = GAMEPAD_BUTTON_RIGHT_FACE_UP,
- [RGFW_gamepadB] = GAMEPAD_BUTTON_RIGHT_FACE_RIGHT,
- [RGFW_gamepadA] = GAMEPAD_BUTTON_RIGHT_FACE_DOWN,
- [RGFW_gamepadX] = GAMEPAD_BUTTON_RIGHT_FACE_LEFT,
- [RGFW_gamepadL1] = GAMEPAD_BUTTON_LEFT_TRIGGER_1,
- [RGFW_gamepadR1] = GAMEPAD_BUTTON_RIGHT_TRIGGER_1,
- [RGFW_gamepadL2] = GAMEPAD_BUTTON_LEFT_TRIGGER_2,
- [RGFW_gamepadR2] = GAMEPAD_BUTTON_RIGHT_TRIGGER_2,
- [RGFW_gamepadSelect] = GAMEPAD_BUTTON_MIDDLE_LEFT,
- [RGFW_gamepadHome] = GAMEPAD_BUTTON_MIDDLE,
- [RGFW_gamepadStart] = GAMEPAD_BUTTON_MIDDLE_RIGHT,
- [RGFW_gamepadUp] = GAMEPAD_BUTTON_LEFT_FACE_UP,
- [RGFW_gamepadRight] = GAMEPAD_BUTTON_LEFT_FACE_RIGHT,
- [RGFW_gamepadDown] = GAMEPAD_BUTTON_LEFT_FACE_DOWN,
- [RGFW_gamepadLeft] = GAMEPAD_BUTTON_LEFT_FACE_LEFT,
- [RGFW_gamepadL3] = GAMEPAD_BUTTON_LEFT_THUMB,
- [RGFW_gamepadR3] = GAMEPAD_BUTTON_RIGHT_THUMB,
-};
-
// Register all input events
void PollInputEvents(void)
{
diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c
index a0ddac075..71265e718 100644
--- a/src/platforms/rcore_desktop_sdl.c
+++ b/src/platforms/rcore_desktop_sdl.c
@@ -90,6 +90,8 @@
#endif
#endif
+#define SCANCODE_MAPPED_NUM 232
+
//----------------------------------------------------------------------------------
// Types and Structures Definition
//----------------------------------------------------------------------------------
@@ -110,10 +112,6 @@ extern CoreData CORE; // Global CORE state context
static PlatformData platform = { 0 }; // Platform specific data
-//----------------------------------------------------------------------------------
-// Global Variables Definition
-//----------------------------------------------------------------------------------
-#define SCANCODE_MAPPED_NUM 232
static const KeyboardKey mapScancodeToKey[SCANCODE_MAPPED_NUM] = {
KEY_NULL, // SDL_SCANCODE_UNKNOWN
0,
@@ -321,7 +319,7 @@ Uint8 SDL_EventState(Uint32 type, int state)
{
case SDL_DISABLE: SDL_SetEventEnabled(type, false); break;
case SDL_ENABLE: SDL_SetEventEnabled(type, true); break;
- default: TRACELOG(LOG_WARNING, "Event sate: unknow type");
+ default: TRACELOG(LOG_WARNING, "SDL: Event state of unknow type");
}
return stateBefore;
@@ -329,10 +327,10 @@ Uint8 SDL_EventState(Uint32 type, int state)
void SDL_GetCurrentDisplayMode_Adapter(SDL_DisplayID displayID, SDL_DisplayMode* mode)
{
- const SDL_DisplayMode* currMode = SDL_GetCurrentDisplayMode(displayID);
+ const SDL_DisplayMode *currentMode = SDL_GetCurrentDisplayMode(displayID);
- if (currMode == NULL) TRACELOG(LOG_WARNING, "No current display mode");
- else *mode = *currMode;
+ if (currentMode == NULL) TRACELOG(LOG_WARNING, "SDL: No possible to get current display mode");
+ else *mode = *currentMode;
}
// SDL3 Migration: Renamed
@@ -423,7 +421,7 @@ int SDL_GetNumTouchFingers(SDL_TouchID touchID)
// SDL_GetClipboardData function is available since SDL 3.1.3. (e.g. SDL3)
void *SDL_GetClipboardData(const char *mime_type, size_t *size)
{
- TRACELOG(LOG_WARNING, "Getting clipboard data that is not text is only available in SDL3");
+ TRACELOG(LOG_WARNING, "SDL: Getting clipboard data that is not text not available in SDL2");
// We could possibly implement it ourselves in this case for some easier platforms
return NULL;
@@ -438,8 +436,8 @@ int InitPlatform(void); // Initialize platf
void ClosePlatform(void); // Close platform
static KeyboardKey ConvertScancodeToKey(SDL_Scancode sdlScancode); // Help convert SDL scancodes to raylib key
-
static int GetCodepointNextSDL(const char *text, int *codepointSize); // Get next codepoint in a byte sequence and bytes processed
+static void UpdateTouchPointsSDL(SDL_TouchFingerEvent event); // Update CORE input touch point info from SDL touch data
//----------------------------------------------------------------------------------
// Module Functions Declaration
@@ -1307,41 +1305,6 @@ const char *GetKeyName(int key)
return SDL_GetKeyName(key);
}
-static void UpdateTouchPointsSDL(SDL_TouchFingerEvent event)
-{
-#if defined(USING_VERSION_SDL3) // SDL3
- int count = 0;
- SDL_Finger **fingers = SDL_GetTouchFingers(event.touchID, &count);
- CORE.Input.Touch.pointCount = count;
-
- for (int i = 0; i < CORE.Input.Touch.pointCount; i++)
- {
- SDL_Finger *finger = fingers[i];
- CORE.Input.Touch.pointId[i] = finger->id;
- CORE.Input.Touch.position[i].x = finger->x*CORE.Window.screen.width;
- CORE.Input.Touch.position[i].y = finger->y*CORE.Window.screen.height;
- CORE.Input.Touch.currentTouchState[i] = 1;
- }
-
- SDL_free(fingers);
-
-#else // SDL2
-
- CORE.Input.Touch.pointCount = SDL_GetNumTouchFingers(event.touchId);
-
- for (int i = 0; i < CORE.Input.Touch.pointCount; i++)
- {
- SDL_Finger *finger = SDL_GetTouchFinger(event.touchId, i);
- CORE.Input.Touch.pointId[i] = finger->id;
- CORE.Input.Touch.position[i].x = finger->x*CORE.Window.screen.width;
- CORE.Input.Touch.position[i].y = finger->y*CORE.Window.screen.height;
- CORE.Input.Touch.currentTouchState[i] = 1;
- }
-#endif
-
- for (int i = CORE.Input.Touch.pointCount; i < MAX_TOUCH_POINTS; i++) CORE.Input.Touch.currentTouchState[i] = 0;
-}
-
// Register all input events
void PollInputEvents(void)
{
@@ -1399,15 +1362,9 @@ void PollInputEvents(void)
// Poll input events for current platform
//-----------------------------------------------------------------------------
- /*
// WARNING: Indexes into this array are obtained by using SDL_Scancode values, not SDL_Keycode values
- const Uint8 *keys = SDL_GetKeyboardState(NULL);
- for (int i = 0; i < 256; ++i)
- {
- CORE.Input.Keyboard.currentKeyState[i] = keys[i];
- //if (keys[i]) TRACELOG(LOG_WARNING, "Pressed key: %i", i);
- }
- */
+ //const Uint8 *keys = SDL_GetKeyboardState(NULL);
+ //for (int i = 0; i < 256; ++i) CORE.Input.Keyboard.currentKeyState[i] = keys[i];
CORE.Window.resizedLastFrame = false;
@@ -2174,3 +2131,39 @@ static int GetCodepointNextSDL(const char *text, int *codepointSize)
return codepoint;
}
+
+// Update CORE input touch point info from SDL touch data
+static void UpdateTouchPointsSDL(SDL_TouchFingerEvent event)
+{
+#if defined(USING_VERSION_SDL3) // SDL3
+ int count = 0;
+ SDL_Finger **fingers = SDL_GetTouchFingers(event.touchID, &count);
+ CORE.Input.Touch.pointCount = count;
+
+ for (int i = 0; i < CORE.Input.Touch.pointCount; i++)
+ {
+ SDL_Finger *finger = fingers[i];
+ CORE.Input.Touch.pointId[i] = finger->id;
+ CORE.Input.Touch.position[i].x = finger->x*CORE.Window.screen.width;
+ CORE.Input.Touch.position[i].y = finger->y*CORE.Window.screen.height;
+ CORE.Input.Touch.currentTouchState[i] = 1;
+ }
+
+ SDL_free(fingers);
+
+#else // SDL2
+
+ CORE.Input.Touch.pointCount = SDL_GetNumTouchFingers(event.touchId);
+
+ for (int i = 0; i < CORE.Input.Touch.pointCount; i++)
+ {
+ SDL_Finger *finger = SDL_GetTouchFinger(event.touchId, i);
+ CORE.Input.Touch.pointId[i] = finger->id;
+ CORE.Input.Touch.position[i].x = finger->x*CORE.Window.screen.width;
+ CORE.Input.Touch.position[i].y = finger->y*CORE.Window.screen.height;
+ CORE.Input.Touch.currentTouchState[i] = 1;
+ }
+#endif
+
+ for (int i = CORE.Input.Touch.pointCount; i < MAX_TOUCH_POINTS; i++) CORE.Input.Touch.currentTouchState[i] = 0;
+}
diff --git a/src/platforms/rcore_drm.c b/src/platforms/rcore_drm.c
index b15df2dea..a399092ad 100644
--- a/src/platforms/rcore_drm.c
+++ b/src/platforms/rcore_drm.c
@@ -245,6 +245,7 @@ static void RestoreKeyboard(void); // Restore keyboard system
static void ProcessKeyboard(void); // Process keyboard events
#endif
+// Input management functions
static void InitEvdevInput(void); // Initialize evdev inputs
static void ConfigureEvdevDevice(char *device); // Identifies a input device and configures it for use if appropriate
static void PollKeyboardEvents(void); // Process evdev keyboard events
@@ -703,7 +704,7 @@ void SwapScreenBuffer()
if (!crtcSet || !platform.gbmSurface) return;
static int loopCnt = 0;
- static int errCnt[5] = {0};
+ static int errCnt[5] = { 0 };
loopCnt++;
// Call this only, if pendingFlip is not set
diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c
index 9703a7bec..c8fe0cfe7 100644
--- a/src/platforms/rcore_web.c
+++ b/src/platforms/rcore_web.c
@@ -1722,8 +1722,7 @@ static EM_BOOL EmscriptenTouchCallback(int eventType, const EmscriptenTouchEvent
}
#if defined(SUPPORT_GESTURES_SYSTEM)
- GestureEvent gestureEvent = {0};
-
+ GestureEvent gestureEvent = { 0 };
gestureEvent.pointCount = CORE.Input.Touch.pointCount;
// Register touch actions
@@ -1852,7 +1851,7 @@ static EM_BOOL EmscriptenVisibilityChangeCallback(int eventType, const Emscripte
//-------------------------------------------------------------------------------------------------------
// JS: Get the canvas id provided by the module configuration
-EM_JS(char*, GetCanvasIdJs, (), {
+EM_JS(char *, GetCanvasIdJs, (), {
var canvasId = "#" + Module.canvas.id;
var lengthBytes = lengthBytesUTF8(canvasId) + 1;
var stringOnWasmHeap = _malloc(lengthBytes);
diff --git a/src/raylib.h b/src/raylib.h
index 5635546e0..642f9318c 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1110,45 +1110,51 @@ RLAPI void MemFree(void *ptr); // Internal me
// Set custom callbacks
// WARNING: Callbacks setup is intended for advanced users
-RLAPI void SetTraceLogCallback(TraceLogCallback callback); // Set custom trace log
-RLAPI void SetLoadFileDataCallback(LoadFileDataCallback callback); // Set custom file binary data loader
-RLAPI void SetSaveFileDataCallback(SaveFileDataCallback callback); // Set custom file binary data saver
-RLAPI void SetLoadFileTextCallback(LoadFileTextCallback callback); // Set custom file text data loader
-RLAPI void SetSaveFileTextCallback(SaveFileTextCallback callback); // Set custom file text data saver
+RLAPI void SetTraceLogCallback(TraceLogCallback callback); // Set custom trace log
+RLAPI void SetLoadFileDataCallback(LoadFileDataCallback callback); // Set custom file binary data loader
+RLAPI void SetSaveFileDataCallback(SaveFileDataCallback callback); // Set custom file binary data saver
+RLAPI void SetLoadFileTextCallback(LoadFileTextCallback callback); // Set custom file text data loader
+RLAPI void SetSaveFileTextCallback(SaveFileTextCallback callback); // Set custom file text data saver
// Files management functions
RLAPI unsigned char *LoadFileData(const char *fileName, int *dataSize); // Load file data as byte array (read)
-RLAPI void UnloadFileData(unsigned char *data); // Unload file data allocated by LoadFileData()
+RLAPI void UnloadFileData(unsigned char *data); // Unload file data allocated by LoadFileData()
RLAPI bool SaveFileData(const char *fileName, void *data, int dataSize); // Save data to file from byte array (write), returns true on success
RLAPI bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName); // Export data to code (.h), returns true on success
-RLAPI char *LoadFileText(const char *fileName); // Load text data from file (read), returns a '\0' terminated string
-RLAPI void UnloadFileText(char *text); // Unload file text data allocated by LoadFileText()
-RLAPI bool SaveFileText(const char *fileName, const char *text); // Save text data to file (write), string must be '\0' terminated, returns true on success
+RLAPI char *LoadFileText(const char *fileName); // Load text data from file (read), returns a '\0' terminated string
+RLAPI void UnloadFileText(char *text); // Unload file text data allocated by LoadFileText()
+RLAPI bool SaveFileText(const char *fileName, const char *text); // Save text data to file (write), string must be '\0' terminated, returns true on success
//------------------------------------------------------------------
// File system functions
-RLAPI bool FileExists(const char *fileName); // Check if file exists
-RLAPI bool DirectoryExists(const char *dirPath); // Check if a directory path exists
-RLAPI bool IsFileExtension(const char *fileName, const char *ext); // Check file extension (recommended include point: .png, .wav)
-RLAPI int GetFileLength(const char *fileName); // Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)
-RLAPI const char *GetFileExtension(const char *fileName); // Get pointer to extension for a filename string (includes dot: '.png')
-RLAPI const char *GetFileName(const char *filePath); // Get pointer to filename for a path string
-RLAPI const char *GetFileNameWithoutExt(const char *filePath); // Get filename string without extension (uses static string)
-RLAPI const char *GetDirectoryPath(const char *filePath); // Get full path for a given fileName with path (uses static string)
-RLAPI const char *GetPrevDirectoryPath(const char *dirPath); // Get previous directory path for a given path (uses static string)
-RLAPI const char *GetWorkingDirectory(void); // Get current working directory (uses static string)
-RLAPI const char *GetApplicationDirectory(void); // Get the directory of the running application (uses static string)
-RLAPI int MakeDirectory(const char *dirPath); // Create directories (including full path requested), returns 0 on success
-RLAPI bool ChangeDirectory(const char *dir); // Change working directory, return true on success
-RLAPI bool IsPathFile(const char *path); // Check if a given path is a file or a directory
-RLAPI bool IsFileNameValid(const char *fileName); // Check if fileName is valid for the platform/OS
-RLAPI FilePathList LoadDirectoryFiles(const char *dirPath); // Load directory filepaths
+RLAPI int FileRename(const char *fileName, const char *fileRename); // Rename file (if exists)
+RLAPI int FileRemove(const char *fileName); // Remove file (if exists)
+RLAPI int FileCopy(const char *srcPath, const char *dstPath); // Copy file from one path to another, dstPath created if it doesn't exist
+RLAPI int FileMove(const char *srcPath, const char *dstPath); // Move file from one directory to another, dstPath created if it doesn't exist
+RLAPI int FileTextReplace(const char *fileName, const char *search, const char *replacement); // Replace text in an existing file
+RLAPI int FileTextFindIndex(const char *fileName, const char *search); // Find text in existing file
+RLAPI bool FileExists(const char *fileName); // Check if file exists
+RLAPI bool DirectoryExists(const char *dirPath); // Check if a directory path exists
+RLAPI bool IsFileExtension(const char *fileName, const char *ext); // Check file extension (recommended include point: .png, .wav)
+RLAPI int GetFileLength(const char *fileName); // Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)
+RLAPI long GetFileModTime(const char *fileName); // Get file modification time (last write time)
+RLAPI const char *GetFileExtension(const char *fileName); // Get pointer to extension for a filename string (includes dot: '.png')
+RLAPI const char *GetFileName(const char *filePath); // Get pointer to filename for a path string
+RLAPI const char *GetFileNameWithoutExt(const char *filePath); // Get filename string without extension (uses static string)
+RLAPI const char *GetDirectoryPath(const char *filePath); // Get full path for a given fileName with path (uses static string)
+RLAPI const char *GetPrevDirectoryPath(const char *dirPath); // Get previous directory path for a given path (uses static string)
+RLAPI const char *GetWorkingDirectory(void); // Get current working directory (uses static string)
+RLAPI const char *GetApplicationDirectory(void); // Get the directory of the running application (uses static string)
+RLAPI int MakeDirectory(const char *dirPath); // Create directories (including full path requested), returns 0 on success
+RLAPI bool ChangeDirectory(const char *dir); // Change working directory, return true on success
+RLAPI bool IsPathFile(const char *path); // Check if a given path is a file or a directory
+RLAPI bool IsFileNameValid(const char *fileName); // Check if fileName is valid for the platform/OS
+RLAPI FilePathList LoadDirectoryFiles(const char *dirPath); // Load directory filepaths
RLAPI FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool scanSubdirs); // Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result
-RLAPI void UnloadDirectoryFiles(FilePathList files); // Unload filepaths
-RLAPI bool IsFileDropped(void); // Check if a file has been dropped into window
-RLAPI FilePathList LoadDroppedFiles(void); // Load dropped filepaths
-RLAPI void UnloadDroppedFiles(FilePathList files); // Unload dropped filepaths
-RLAPI long GetFileModTime(const char *fileName); // Get file modification time (last write time)
+RLAPI void UnloadDirectoryFiles(FilePathList files); // Unload filepaths
+RLAPI bool IsFileDropped(void); // Check if a file has been dropped into window
+RLAPI FilePathList LoadDroppedFiles(void); // Load dropped filepaths
+RLAPI void UnloadDroppedFiles(FilePathList files); // Unload dropped filepaths
// Compression/Encoding functionality
RLAPI unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize); // Compress data (DEFLATE algorithm), memory must be MemFree()
@@ -1504,7 +1510,7 @@ RLAPI int GetCodepointPrevious(const char *text, int *codepointSize);
RLAPI const char *CodepointToUTF8(int codepoint, int *utf8Size); // Encode one codepoint into UTF-8 byte array (array length returned as parameter)
// Text strings management functions (no UTF-8 strings, only byte chars)
-// WARNING 1: Most of these functions use internal static buffers, it's recommended to store returned data on user-side for re-use
+// WARNING 1: Most of these functions use internal static buffers[], it's recommended to store returned data on user-side for re-use
// WARNING 2: Some strings allocate memory internally for the returned strings, those strings must be free by user using MemFree()
RLAPI char **LoadTextLines(const char *text, int *count); // Load text as separate lines ('\n')
RLAPI void UnloadTextLines(char **text, int lineCount); // Unload text lines
@@ -1513,12 +1519,15 @@ RLAPI bool TextIsEqual(const char *text1, const char *text2);
RLAPI unsigned int TextLength(const char *text); // Get text length, checks for '\0' ending
RLAPI const char *TextFormat(const char *text, ...); // Text formatting with variables (sprintf() style)
RLAPI const char *TextSubtext(const char *text, int position, int length); // Get a piece of a text string
-RLAPI char *TextReplace(const char *text, const char *replace, const char *by); // Replace text string (WARNING: memory must be freed!)
+RLAPI const char *TextRemoveSpaces(const char *text); // Remove text spaces, concat words
+RLAPI char *GetTextBetween(const char *text, const char *begin, const char *end); // Get text between two strings
+RLAPI char *TextReplace(const char *text, const char *search, const char *replacement); // Replace text string (WARNING: memory must be freed!)
+RLAPI char *TextReplaceBetween(const char *text, const char *begin, const char *end, const char *replacement); // Replace text between two specific strings (WARNING: memory must be freed!)
RLAPI char *TextInsert(const char *text, const char *insert, int position); // Insert text in a position (WARNING: memory must be freed!)
RLAPI char *TextJoin(char **textList, int count, const char *delimiter); // Join text strings with delimiter
RLAPI char **TextSplit(const char *text, char delimiter, int *count); // Split text into multiple strings, using MAX_TEXTSPLIT_COUNT static strings
-RLAPI void TextAppend(char *text, const char *append, int *position); // Append text at specific position and move cursor!
-RLAPI int TextFindIndex(const char *text, const char *find); // Find first text occurrence within a string, -1 if not found
+RLAPI void TextAppend(char *text, const char *append, int *position); // Append text at specific position and move cursor
+RLAPI int TextFindIndex(const char *text, const char *search); // Find first text occurrence within a string, -1 if not found
RLAPI char *TextToUpper(const char *text); // Get upper case version of provided string
RLAPI char *TextToLower(const char *text); // Get lower case version of provided string
RLAPI char *TextToPascal(const char *text); // Get Pascal case notation version of provided string
diff --git a/src/rcore.c b/src/rcore.c
index 735851c8e..7a17d7f6f 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1927,6 +1927,115 @@ void SetConfigFlags(unsigned int flags)
// Module Functions Definition: File system
//----------------------------------------------------------------------------------
+// Rename file (if exists)
+// NOTE: Only rename file name required, not full path
+int FileRename(const char *fileName, const char *fileRename)
+{
+ int result = 0;
+
+ if (FileExists(fileName))
+ {
+ result = rename(fileName, fileRename);
+ }
+ else result = -1;
+
+ return result;
+}
+
+// Remove file (if exists)
+int FileRemove(const char *fileName)
+{
+ int result = 0;
+
+ if (FileExists(fileName))
+ {
+ result = remove(fileName);
+ }
+ else result = -1;
+
+ return result;
+}
+
+// Copy file from one path to another
+// NOTE: If destination path does not exist, it is created!
+int FileCopy(const char *srcPath, const char *dstPath)
+{
+ int result = 0;
+ int srcDataSize = 0;
+ unsigned char *srcFileData = LoadFileData(srcPath, &srcDataSize);
+
+ // Create required paths if they do not exist
+ if (!DirectoryExists(GetDirectoryPath(dstPath)))
+ result = MakeDirectory(GetDirectoryPath(dstPath));
+
+ if (result == 0) // Directory created successfully (or already exists)
+ {
+ if ((srcFileData != NULL) && (srcDataSize > 0))
+ result = SaveFileData(dstPath, srcFileData, srcDataSize);
+ }
+
+ UnloadFileData(srcFileData);
+
+ return result;
+}
+
+// Move file from one directory to another
+// NOTE: If dst directories do not exists they are created
+int FileMove(const char *srcPath, const char *dstPath)
+{
+ int result = 0;
+
+ if (FileExists(srcPath))
+ {
+ FileCopy(srcPath, dstPath);
+ FileRemove(srcPath);
+ }
+ else result = -1;
+
+ return result;
+}
+
+// Replace text in an existing file
+// WARNING: DEPENDENCY: [rtext] module
+int FileTextReplace(const char *fileName, const char *search, const char *replacement)
+{
+ int result = 0;
+ char *fileText = NULL;
+ char *fileTextUpdated = { 0 };
+
+#if defined(SUPPORT_MODULE_RTEXT)
+ if (FileExists(fileName))
+ {
+ fileText = LoadFileText(fileName);
+ fileTextUpdated = TextReplace(fileText, search, replacement);
+ result = SaveFileText(fileName, fileTextUpdated);
+ MemFree(fileTextUpdated);
+ UnloadFileText(fileText);
+ }
+#else
+ TRACELOG(LOG_WARNING, "FILE: File text replace requires [rtext] module");
+#endif
+
+ return result;
+}
+
+// Find text index position in existing file
+// WARNING: DEPENDENCY: [rtext] module
+int FileTextFindIndex(const char *fileName, const char *search)
+{
+ int result = -1;
+
+ if (FileExists(fileName))
+ {
+ char *fileText = LoadFileText(fileName);
+ char *ptr = strstr(fileText, search);
+ if (ptr != NULL) result = (int)(ptr - fileText);
+ UnloadFileText(fileText);
+ }
+
+ return result;
+}
+
// Check if the file exists
bool FileExists(const char *fileName)
{
@@ -2054,6 +2163,21 @@ int GetFileLength(const char *fileName)
return size;
}
+// Get file modification time (last write time)
+long GetFileModTime(const char *fileName)
+{
+ struct stat result = { 0 };
+ long modTime = 0;
+
+ if (stat(fileName, &result) == 0)
+ {
+ time_t mod = result.st_mtime;
+ modTime = (long)mod;
+ }
+
+ return modTime;
+}
+
// Get pointer to extension for a filename string (includes the dot: .png)
// WARNING: We just get the ptr but not the extension as a separate string
const char *GetFileExtension(const char *fileName)
@@ -2367,7 +2491,7 @@ void UnloadDirectoryFiles(FilePathList files)
// Create directories (including full path requested), returns 0 on success
int MakeDirectory(const char *dirPath)
{
- if ((dirPath == NULL) || (dirPath[0] == '\0')) return 1; // Path is not valid
+ if ((dirPath == NULL) || (dirPath[0] == '\0')) return -1; // Path is not valid
if (DirectoryExists(dirPath)) return 0; // Path already exists (is valid)
// Copy path string to avoid modifying original
@@ -2392,8 +2516,11 @@ int MakeDirectory(const char *dirPath)
// Create final directory
if (!DirectoryExists(pathcpy)) MKDIR(pathcpy);
-
RL_FREE(pathcpy);
+
+ // In case something failed and requested directory
+ // was not successfully created, return -1
+ if (!DirectoryExists(dirPath)) return -1;
return 0;
}
@@ -2513,22 +2640,6 @@ void UnloadDroppedFiles(FilePathList files)
}
}
-// Get file modification time (last write time)
-long GetFileModTime(const char *fileName)
-{
- struct stat result = { 0 };
- long modTime = 0;
-
- if (stat(fileName, &result) == 0)
- {
- time_t mod = result.st_mtime;
-
- modTime = (long)mod;
- }
-
- return modTime;
-}
-
//----------------------------------------------------------------------------------
// Module Functions Definition: Compression and Encoding
//----------------------------------------------------------------------------------
@@ -2903,7 +3014,7 @@ unsigned int *ComputeSHA1(unsigned char *data, int dataSize)
for (int offset = 0; offset < newDataSize; offset += (512/8))
{
// Break chunk into sixteen 32-bit words w[j], 0 <= j <= 15
- unsigned int w[80] = {0};
+ unsigned int w[80] = { 0 };
for (int i = 0; i < 16; i++)
{
w[i] = (msg[offset + (i*4) + 0] << 24) |
diff --git a/src/rlgl.h b/src/rlgl.h
index db3838601..e9339bdc3 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -2476,7 +2476,7 @@ void rlLoadExtensions(void *loader)
}
// Check instanced rendering support
- if (strstr(extList[i], (const char*)"instanced_arrays") != NULL) // Broad check for instanced_arrays
+ if (strstr(extList[i], (const char *)"instanced_arrays") != NULL) // Broad check for instanced_arrays
{
// Specific check
if (strcmp(extList[i], (const char *)"GL_ANGLE_instanced_arrays") == 0) // ANGLE
@@ -2509,7 +2509,7 @@ void rlLoadExtensions(void *loader)
glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDEXTPROC)((rlglLoadProc)loader)("glDrawArraysInstancedEXT");
glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDEXTPROC)((rlglLoadProc)loader)("glDrawElementsInstancedEXT");
}
- else if (strcmp(extList[i], (const char*)"GL_NV_draw_instanced") == 0)
+ else if (strcmp(extList[i], (const char *)"GL_NV_draw_instanced") == 0)
{
glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDEXTPROC)((rlglLoadProc)loader)("glDrawArraysInstancedNV");
glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDEXTPROC)((rlglLoadProc)loader)("glDrawElementsInstancedNV");
diff --git a/src/rtext.c b/src/rtext.c
index b8866f190..edfe33c8b 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -1649,34 +1649,79 @@ const char *TextSubtext(const char *text, int position, int length)
return buffer;
}
+// Remove text spaces, concat words
+const char *TextRemoveSpaces(const char *text)
+{
+ static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
+ memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH);
+
+ if (text != NULL)
+ {
+ // Avoid copying the ' ' characters
+ for (int i = 0, j = 0; (i < MAX_TEXT_BUFFER_LENGTH - 1) && (text[j] != '\0'); i++)
+ {
+ if (text[i] != ' ') { buffer[j] = text[i]; j++; }
+ }
+ }
+
+ return buffer;
+}
+
+// Get text between two strings
+char *GetTextBetween(const char *text, const char *begin, const char *end)
+{
+ #define MAX_TEXT_BETWEEN_SIZE 1024
+
+ static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
+ memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH);
+
+ int beginIndex = TextFindIndex(text, begin);
+
+ if (beginIndex > -1)
+ {
+ int beginLen = strlen(begin);
+ int endIndex = TextFindIndex(text + beginIndex + beginLen, end);
+
+ if (endIndex > -1)
+ {
+ endIndex += (beginIndex + beginLen);
+ int len = (endIndex - beginIndex - beginLen);
+ if (len < (MAX_TEXT_BETWEEN_SIZE - 1)) strncpy(buffer, text + beginIndex + beginLen, len);
+ else strncpy(buffer, text + beginIndex + beginLen, MAX_TEXT_BETWEEN_SIZE - 1);
+ }
+ }
+
+ return buffer;
+}
+
// Replace text string
// REQUIRES: strstr(), strncpy(), strcpy()
+// TODO: If (replacement == NULL) remove "search" text
// WARNING: Allocated memory must be manually freed
-char *TextReplace(const char *text, const char *replace, const char *by)
+char *TextReplace(const char *text, const char *search, const char *replacement)
{
- // Sanity checks and initialization
- if (!text || !replace || !by) return NULL;
-
char *result = NULL;
-
+
+ if (!text || !search) return NULL; // Sanity check
+
char *insertPoint = NULL; // Next insert point
char *temp = NULL; // Temp pointer
- int replaceLen = 0; // Replace string length of (the string to remove)
- int byLen = 0; // Replacement length (the string to replace by)
- int lastReplacePos = 0; // Distance between replace and end of last replace
+ int searchLen = 0; // Search string length of (the string to remove)
+ int replaceLen = 0; // Replacement length (the string to replace by)
+ int lastReplacePos = 0; // Distance between next search and end of last replace
int count = 0; // Number of replacements
- replaceLen = TextLength(replace);
- if (replaceLen == 0) return NULL; // Empty replace causes infinite loop during count
+ searchLen = TextLength(search);
+ if (searchLen == 0) return NULL; // Empty search causes infinite loop during count
- byLen = TextLength(by);
+ replaceLen = TextLength(replacement);
// Count the number of replacements needed
insertPoint = (char *)text;
- for (count = 0; (temp = strstr(insertPoint, replace)); count++) insertPoint = temp + replaceLen;
+ for (count = 0; (temp = strstr(insertPoint, search)); count++) insertPoint = temp + searchLen;
// Allocate returning string and point temp to it
- temp = result = (char *)RL_MALLOC(TextLength(text) + (byLen - replaceLen)*count + 1);
+ temp = result = (char *)RL_MALLOC(TextLength(text) + (replaceLen - searchLen)*count + 1);
if (!result) return NULL; // Memory could not be allocated
@@ -1686,11 +1731,11 @@ char *TextReplace(const char *text, const char *replace, const char *by)
// - 'text' points to the remainder of text after "end of replace"
while (count--)
{
- insertPoint = strstr(text, replace);
+ insertPoint = strstr(text, search);
lastReplacePos = (int)(insertPoint - text);
temp = strncpy(temp, text, lastReplacePos) + lastReplacePos;
- temp = strcpy(temp, by) + byLen;
- text += lastReplacePos + replaceLen; // Move to next "end of replace"
+ temp = strcpy(temp, replacement) + replaceLen;
+ text += lastReplacePos + searchLen; // Move to next "end of replace"
}
// Copy remaind text part after replacement to result (pointed by moving temp)
@@ -1699,6 +1744,41 @@ char *TextReplace(const char *text, const char *replace, const char *by)
return result;
}
+// Replace text between two specific strings
+// REQUIRES: strlen(), strncpy()
+// NOTE: If (replacement == NULL) remove "begin"[ ]"end" text
+// WARNING: Returned string must be freed by user
+char *TextReplaceBetween(const char *text, const char *begin, const char *end, const char *replacement)
+{
+ char *result = NULL;
+
+ if (!text || !begin || !end) return NULL; // Sanity check
+
+ int beginIndex = TextFindIndex(text, begin);
+
+ if (beginIndex > -1)
+ {
+ int beginLen = strlen(begin);
+ int endIndex = TextFindIndex(text + beginIndex + beginLen, end);
+
+ if (endIndex > -1)
+ {
+ endIndex += (beginIndex + beginLen);
+
+ int textLen = strlen(text);
+ int replaceLen = (replacement == NULL)? 0 : strlen(replacement);
+ int toreplaceLen = endIndex - beginIndex - beginLen;
+ result = (char *)RL_CALLOC(textLen + replaceLen - toreplaceLen + 1, sizeof(char));
+
+ strncpy(result, text, beginIndex + beginLen); // Copy first text part
+ if (replacement != NULL) strncpy(result + beginIndex + beginLen, replacement, replaceLen); // Copy replacement (if provided)
+ strncpy(result + beginIndex + beginLen + replaceLen, text + endIndex, textLen - endIndex); // Copy end text part
+ }
+ }
+
+ return result;
+}
+
// Insert text in a specific position, moves all text forward
// WARNING: Allocated memory must be manually freed
char *TextInsert(const char *text, const char *insert, int position)
@@ -1761,11 +1841,11 @@ char **TextSplit(const char *text, char delimiter, int *count)
// 1. Maximum number of possible split strings is set by MAX_TEXTSPLIT_COUNT
// 2. Maximum size of text to split is MAX_TEXT_BUFFER_LENGTH
- static char *result[MAX_TEXTSPLIT_COUNT] = { NULL };
- static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
+ static char *buffers[MAX_TEXTSPLIT_COUNT] = { NULL }; // Pointers to buffer[] text data
+ static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 }; // Text data with '\0' separators
memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH);
- result[0] = buffer;
+ buffers[0] = buffer;
int counter = 0;
if (text != NULL)
@@ -1780,7 +1860,7 @@ char **TextSplit(const char *text, char delimiter, int *count)
else if (buffer[i] == delimiter)
{
buffer[i] = '\0'; // Set an end of string at this point
- result[counter] = buffer + i + 1;
+ buffers[counter] = buffer + i + 1;
counter++;
if (counter == MAX_TEXTSPLIT_COUNT) break;
@@ -1789,7 +1869,7 @@ char **TextSplit(const char *text, char delimiter, int *count)
}
*count = counter;
- return result;
+ return buffers;
}
// Append text at specific position and move cursor
@@ -1803,11 +1883,11 @@ void TextAppend(char *text, const char *append, int *position)
// Find first text occurrence within a string
// REQUIRES: strstr()
-int TextFindIndex(const char *text, const char *find)
+int TextFindIndex(const char *text, const char *search)
{
int position = -1;
- char *ptr = strstr(text, find);
+ char *ptr = strstr(text, search);
if (ptr != NULL) position = (int)(ptr - text);
@@ -1885,7 +1965,7 @@ char *TextToPascal(const char *text)
// WARNING: Limited functionality, only basic characters set
char *TextToSnake(const char *text)
{
- static char buffer[MAX_TEXT_BUFFER_LENGTH] = {0};
+ static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH);
if (text != NULL)
@@ -1913,7 +1993,7 @@ char *TextToSnake(const char *text)
// WARNING: Limited functionality, only basic characters set
char *TextToCamel(const char *text)
{
- static char buffer[MAX_TEXT_BUFFER_LENGTH] = {0};
+ static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH);
if (text != NULL)
diff --git a/tools/parser/output/raylib_api.json b/tools/parser/output/raylib_api.json
index 58ba0be01..5c641bac3 100644
--- a/tools/parser/output/raylib_api.json
+++ b/tools/parser/output/raylib_api.json
@@ -4414,6 +4414,96 @@
}
]
},
+ {
+ "name": "FileRename",
+ "description": "Rename file (if exists)",
+ "returnType": "int",
+ "params": [
+ {
+ "type": "const char *",
+ "name": "fileName"
+ },
+ {
+ "type": "const char *",
+ "name": "fileRename"
+ }
+ ]
+ },
+ {
+ "name": "FileRemove",
+ "description": "Remove file (if exists)",
+ "returnType": "int",
+ "params": [
+ {
+ "type": "const char *",
+ "name": "fileName"
+ }
+ ]
+ },
+ {
+ "name": "FileCopy",
+ "description": "Copy file from one path to another, dstPath created if it doesn't exist",
+ "returnType": "int",
+ "params": [
+ {
+ "type": "const char *",
+ "name": "srcPath"
+ },
+ {
+ "type": "const char *",
+ "name": "dstPath"
+ }
+ ]
+ },
+ {
+ "name": "FileMove",
+ "description": "Move file from one directory to another, dstPath created if it doesn't exist",
+ "returnType": "int",
+ "params": [
+ {
+ "type": "const char *",
+ "name": "srcPath"
+ },
+ {
+ "type": "const char *",
+ "name": "dstPath"
+ }
+ ]
+ },
+ {
+ "name": "FileTextReplace",
+ "description": "Replace text in an existing file",
+ "returnType": "int",
+ "params": [
+ {
+ "type": "const char *",
+ "name": "fileName"
+ },
+ {
+ "type": "const char *",
+ "name": "search"
+ },
+ {
+ "type": "const char *",
+ "name": "replacement"
+ }
+ ]
+ },
+ {
+ "name": "FileTextFindIndex",
+ "description": "Find text in existing file",
+ "returnType": "int",
+ "params": [
+ {
+ "type": "const char *",
+ "name": "fileName"
+ },
+ {
+ "type": "const char *",
+ "name": "search"
+ }
+ ]
+ },
{
"name": "FileExists",
"description": "Check if file exists",
@@ -4462,6 +4552,17 @@
}
]
},
+ {
+ "name": "GetFileModTime",
+ "description": "Get file modification time (last write time)",
+ "returnType": "long",
+ "params": [
+ {
+ "type": "const char *",
+ "name": "fileName"
+ }
+ ]
+ },
{
"name": "GetFileExtension",
"description": "Get pointer to extension for a filename string (includes dot: '.png')",
@@ -4633,17 +4734,6 @@
}
]
},
- {
- "name": "GetFileModTime",
- "description": "Get file modification time (last write time)",
- "returnType": "long",
- "params": [
- {
- "type": "const char *",
- "name": "fileName"
- }
- ]
- },
{
"name": "CompressData",
"description": "Compress data (DEFLATE algorithm), memory must be MemFree()",
@@ -9714,6 +9804,36 @@
}
]
},
+ {
+ "name": "TextRemoveSpaces",
+ "description": "Remove text spaces, concat words",
+ "returnType": "const char *",
+ "params": [
+ {
+ "type": "const char *",
+ "name": "text"
+ }
+ ]
+ },
+ {
+ "name": "GetTextBetween",
+ "description": "Get text between two strings",
+ "returnType": "char *",
+ "params": [
+ {
+ "type": "const char *",
+ "name": "text"
+ },
+ {
+ "type": "const char *",
+ "name": "begin"
+ },
+ {
+ "type": "const char *",
+ "name": "end"
+ }
+ ]
+ },
{
"name": "TextReplace",
"description": "Replace text string (WARNING: memory must be freed!)",
@@ -9725,11 +9845,34 @@
},
{
"type": "const char *",
- "name": "replace"
+ "name": "search"
},
{
"type": "const char *",
- "name": "by"
+ "name": "replacement"
+ }
+ ]
+ },
+ {
+ "name": "TextReplaceBetween",
+ "description": "Replace text between two specific strings (WARNING: memory must be freed!)",
+ "returnType": "char *",
+ "params": [
+ {
+ "type": "const char *",
+ "name": "text"
+ },
+ {
+ "type": "const char *",
+ "name": "begin"
+ },
+ {
+ "type": "const char *",
+ "name": "end"
+ },
+ {
+ "type": "const char *",
+ "name": "replacement"
}
]
},
@@ -9792,7 +9935,7 @@
},
{
"name": "TextAppend",
- "description": "Append text at specific position and move cursor!",
+ "description": "Append text at specific position and move cursor",
"returnType": "void",
"params": [
{
@@ -9820,7 +9963,7 @@
},
{
"type": "const char *",
- "name": "find"
+ "name": "search"
}
]
},
diff --git a/tools/parser/output/raylib_api.lua b/tools/parser/output/raylib_api.lua
index 2a385b237..ce3671159 100644
--- a/tools/parser/output/raylib_api.lua
+++ b/tools/parser/output/raylib_api.lua
@@ -4009,6 +4009,60 @@ return {
{type = "const char *", name = "text"}
}
},
+ {
+ name = "FileRename",
+ description = "Rename file (if exists)",
+ returnType = "int",
+ params = {
+ {type = "const char *", name = "fileName"},
+ {type = "const char *", name = "fileRename"}
+ }
+ },
+ {
+ name = "FileRemove",
+ description = "Remove file (if exists)",
+ returnType = "int",
+ params = {
+ {type = "const char *", name = "fileName"}
+ }
+ },
+ {
+ name = "FileCopy",
+ description = "Copy file from one path to another, dstPath created if it doesn't exist",
+ returnType = "int",
+ params = {
+ {type = "const char *", name = "srcPath"},
+ {type = "const char *", name = "dstPath"}
+ }
+ },
+ {
+ name = "FileMove",
+ description = "Move file from one directory to another, dstPath created if it doesn't exist",
+ returnType = "int",
+ params = {
+ {type = "const char *", name = "srcPath"},
+ {type = "const char *", name = "dstPath"}
+ }
+ },
+ {
+ name = "FileTextReplace",
+ description = "Replace text in an existing file",
+ returnType = "int",
+ params = {
+ {type = "const char *", name = "fileName"},
+ {type = "const char *", name = "search"},
+ {type = "const char *", name = "replacement"}
+ }
+ },
+ {
+ name = "FileTextFindIndex",
+ description = "Find text in existing file",
+ returnType = "int",
+ params = {
+ {type = "const char *", name = "fileName"},
+ {type = "const char *", name = "search"}
+ }
+ },
{
name = "FileExists",
description = "Check if file exists",
@@ -4042,6 +4096,14 @@ return {
{type = "const char *", name = "fileName"}
}
},
+ {
+ name = "GetFileModTime",
+ description = "Get file modification time (last write time)",
+ returnType = "long",
+ params = {
+ {type = "const char *", name = "fileName"}
+ }
+ },
{
name = "GetFileExtension",
description = "Get pointer to extension for a filename string (includes dot: '.png')",
@@ -4168,14 +4230,6 @@ return {
{type = "FilePathList", name = "files"}
}
},
- {
- name = "GetFileModTime",
- description = "Get file modification time (last write time)",
- returnType = "long",
- params = {
- {type = "const char *", name = "fileName"}
- }
- },
{
name = "CompressData",
description = "Compress data (DEFLATE algorithm), memory must be MemFree()",
@@ -6909,14 +6963,43 @@ return {
{type = "int", name = "length"}
}
},
+ {
+ name = "TextRemoveSpaces",
+ description = "Remove text spaces, concat words",
+ returnType = "const char *",
+ params = {
+ {type = "const char *", name = "text"}
+ }
+ },
+ {
+ name = "GetTextBetween",
+ description = "Get text between two strings",
+ returnType = "char *",
+ params = {
+ {type = "const char *", name = "text"},
+ {type = "const char *", name = "begin"},
+ {type = "const char *", name = "end"}
+ }
+ },
{
name = "TextReplace",
description = "Replace text string (WARNING: memory must be freed!)",
returnType = "char *",
params = {
{type = "const char *", name = "text"},
- {type = "const char *", name = "replace"},
- {type = "const char *", name = "by"}
+ {type = "const char *", name = "search"},
+ {type = "const char *", name = "replacement"}
+ }
+ },
+ {
+ name = "TextReplaceBetween",
+ description = "Replace text between two specific strings (WARNING: memory must be freed!)",
+ returnType = "char *",
+ params = {
+ {type = "const char *", name = "text"},
+ {type = "const char *", name = "begin"},
+ {type = "const char *", name = "end"},
+ {type = "const char *", name = "replacement"}
}
},
{
@@ -6951,7 +7034,7 @@ return {
},
{
name = "TextAppend",
- description = "Append text at specific position and move cursor!",
+ description = "Append text at specific position and move cursor",
returnType = "void",
params = {
{type = "char *", name = "text"},
@@ -6965,7 +7048,7 @@ return {
returnType = "int",
params = {
{type = "const char *", name = "text"},
- {type = "const char *", name = "find"}
+ {type = "const char *", name = "search"}
}
},
{
diff --git a/tools/parser/output/raylib_api.txt b/tools/parser/output/raylib_api.txt
index 9ff8a7735..94568b690 100644
--- a/tools/parser/output/raylib_api.txt
+++ b/tools/parser/output/raylib_api.txt
@@ -993,7 +993,7 @@ Callback 006: AudioCallback() (2 input parameters)
Param[1]: bufferData (type: void *)
Param[2]: frames (type: unsigned int)
-Functions found: 586
+Functions found: 595
Function 001: InitWindow() (3 input parameters)
Name: InitWindow
@@ -1657,306 +1657,342 @@ Function 123: SaveFileText() (2 input parameters)
Description: Save text data to file (write), string must be '\0' terminated, returns true on success
Param[1]: fileName (type: const char *)
Param[2]: text (type: const char *)
-Function 124: FileExists() (1 input parameters)
+Function 124: FileRename() (2 input parameters)
+ Name: FileRename
+ Return type: int
+ Description: Rename file (if exists)
+ Param[1]: fileName (type: const char *)
+ Param[2]: fileRename (type: const char *)
+Function 125: FileRemove() (1 input parameters)
+ Name: FileRemove
+ Return type: int
+ Description: Remove file (if exists)
+ Param[1]: fileName (type: const char *)
+Function 126: FileCopy() (2 input parameters)
+ Name: FileCopy
+ Return type: int
+ Description: Copy file from one path to another, dstPath created if it doesn't exist
+ Param[1]: srcPath (type: const char *)
+ Param[2]: dstPath (type: const char *)
+Function 127: FileMove() (2 input parameters)
+ Name: FileMove
+ Return type: int
+ Description: Move file from one directory to another, dstPath created if it doesn't exist
+ Param[1]: srcPath (type: const char *)
+ Param[2]: dstPath (type: const char *)
+Function 128: FileTextReplace() (3 input parameters)
+ Name: FileTextReplace
+ Return type: int
+ Description: Replace text in an existing file
+ Param[1]: fileName (type: const char *)
+ Param[2]: search (type: const char *)
+ Param[3]: replacement (type: const char *)
+Function 129: FileTextFindIndex() (2 input parameters)
+ Name: FileTextFindIndex
+ Return type: int
+ Description: Find text in existing file
+ Param[1]: fileName (type: const char *)
+ Param[2]: search (type: const char *)
+Function 130: FileExists() (1 input parameters)
Name: FileExists
Return type: bool
Description: Check if file exists
Param[1]: fileName (type: const char *)
-Function 125: DirectoryExists() (1 input parameters)
+Function 131: DirectoryExists() (1 input parameters)
Name: DirectoryExists
Return type: bool
Description: Check if a directory path exists
Param[1]: dirPath (type: const char *)
-Function 126: IsFileExtension() (2 input parameters)
+Function 132: IsFileExtension() (2 input parameters)
Name: IsFileExtension
Return type: bool
Description: Check file extension (recommended include point: .png, .wav)
Param[1]: fileName (type: const char *)
Param[2]: ext (type: const char *)
-Function 127: GetFileLength() (1 input parameters)
+Function 133: GetFileLength() (1 input parameters)
Name: GetFileLength
Return type: int
Description: Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)
Param[1]: fileName (type: const char *)
-Function 128: GetFileExtension() (1 input parameters)
+Function 134: GetFileModTime() (1 input parameters)
+ Name: GetFileModTime
+ Return type: long
+ Description: Get file modification time (last write time)
+ Param[1]: fileName (type: const char *)
+Function 135: GetFileExtension() (1 input parameters)
Name: GetFileExtension
Return type: const char *
Description: Get pointer to extension for a filename string (includes dot: '.png')
Param[1]: fileName (type: const char *)
-Function 129: GetFileName() (1 input parameters)
+Function 136: GetFileName() (1 input parameters)
Name: GetFileName
Return type: const char *
Description: Get pointer to filename for a path string
Param[1]: filePath (type: const char *)
-Function 130: GetFileNameWithoutExt() (1 input parameters)
+Function 137: GetFileNameWithoutExt() (1 input parameters)
Name: GetFileNameWithoutExt
Return type: const char *
Description: Get filename string without extension (uses static string)
Param[1]: filePath (type: const char *)
-Function 131: GetDirectoryPath() (1 input parameters)
+Function 138: GetDirectoryPath() (1 input parameters)
Name: GetDirectoryPath
Return type: const char *
Description: Get full path for a given fileName with path (uses static string)
Param[1]: filePath (type: const char *)
-Function 132: GetPrevDirectoryPath() (1 input parameters)
+Function 139: GetPrevDirectoryPath() (1 input parameters)
Name: GetPrevDirectoryPath
Return type: const char *
Description: Get previous directory path for a given path (uses static string)
Param[1]: dirPath (type: const char *)
-Function 133: GetWorkingDirectory() (0 input parameters)
+Function 140: GetWorkingDirectory() (0 input parameters)
Name: GetWorkingDirectory
Return type: const char *
Description: Get current working directory (uses static string)
No input parameters
-Function 134: GetApplicationDirectory() (0 input parameters)
+Function 141: GetApplicationDirectory() (0 input parameters)
Name: GetApplicationDirectory
Return type: const char *
Description: Get the directory of the running application (uses static string)
No input parameters
-Function 135: MakeDirectory() (1 input parameters)
+Function 142: MakeDirectory() (1 input parameters)
Name: MakeDirectory
Return type: int
Description: Create directories (including full path requested), returns 0 on success
Param[1]: dirPath (type: const char *)
-Function 136: ChangeDirectory() (1 input parameters)
+Function 143: ChangeDirectory() (1 input parameters)
Name: ChangeDirectory
Return type: bool
Description: Change working directory, return true on success
Param[1]: dir (type: const char *)
-Function 137: IsPathFile() (1 input parameters)
+Function 144: IsPathFile() (1 input parameters)
Name: IsPathFile
Return type: bool
Description: Check if a given path is a file or a directory
Param[1]: path (type: const char *)
-Function 138: IsFileNameValid() (1 input parameters)
+Function 145: IsFileNameValid() (1 input parameters)
Name: IsFileNameValid
Return type: bool
Description: Check if fileName is valid for the platform/OS
Param[1]: fileName (type: const char *)
-Function 139: LoadDirectoryFiles() (1 input parameters)
+Function 146: LoadDirectoryFiles() (1 input parameters)
Name: LoadDirectoryFiles
Return type: FilePathList
Description: Load directory filepaths
Param[1]: dirPath (type: const char *)
-Function 140: LoadDirectoryFilesEx() (3 input parameters)
+Function 147: LoadDirectoryFilesEx() (3 input parameters)
Name: LoadDirectoryFilesEx
Return type: FilePathList
Description: Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result
Param[1]: basePath (type: const char *)
Param[2]: filter (type: const char *)
Param[3]: scanSubdirs (type: bool)
-Function 141: UnloadDirectoryFiles() (1 input parameters)
+Function 148: UnloadDirectoryFiles() (1 input parameters)
Name: UnloadDirectoryFiles
Return type: void
Description: Unload filepaths
Param[1]: files (type: FilePathList)
-Function 142: IsFileDropped() (0 input parameters)
+Function 149: IsFileDropped() (0 input parameters)
Name: IsFileDropped
Return type: bool
Description: Check if a file has been dropped into window
No input parameters
-Function 143: LoadDroppedFiles() (0 input parameters)
+Function 150: LoadDroppedFiles() (0 input parameters)
Name: LoadDroppedFiles
Return type: FilePathList
Description: Load dropped filepaths
No input parameters
-Function 144: UnloadDroppedFiles() (1 input parameters)
+Function 151: UnloadDroppedFiles() (1 input parameters)
Name: UnloadDroppedFiles
Return type: void
Description: Unload dropped filepaths
Param[1]: files (type: FilePathList)
-Function 145: GetFileModTime() (1 input parameters)
- Name: GetFileModTime
- Return type: long
- Description: Get file modification time (last write time)
- Param[1]: fileName (type: const char *)
-Function 146: CompressData() (3 input parameters)
+Function 152: CompressData() (3 input parameters)
Name: CompressData
Return type: unsigned char *
Description: Compress data (DEFLATE algorithm), memory must be MemFree()
Param[1]: data (type: const unsigned char *)
Param[2]: dataSize (type: int)
Param[3]: compDataSize (type: int *)
-Function 147: DecompressData() (3 input parameters)
+Function 153: DecompressData() (3 input parameters)
Name: DecompressData
Return type: unsigned char *
Description: Decompress data (DEFLATE algorithm), memory must be MemFree()
Param[1]: compData (type: const unsigned char *)
Param[2]: compDataSize (type: int)
Param[3]: dataSize (type: int *)
-Function 148: EncodeDataBase64() (3 input parameters)
+Function 154: EncodeDataBase64() (3 input parameters)
Name: EncodeDataBase64
Return type: char *
Description: Encode data to Base64 string (includes NULL terminator), memory must be MemFree()
Param[1]: data (type: const unsigned char *)
Param[2]: dataSize (type: int)
Param[3]: outputSize (type: int *)
-Function 149: DecodeDataBase64() (2 input parameters)
+Function 155: DecodeDataBase64() (2 input parameters)
Name: DecodeDataBase64
Return type: unsigned char *
Description: Decode Base64 string (expected NULL terminated), memory must be MemFree()
Param[1]: text (type: const char *)
Param[2]: outputSize (type: int *)
-Function 150: ComputeCRC32() (2 input parameters)
+Function 156: ComputeCRC32() (2 input parameters)
Name: ComputeCRC32
Return type: unsigned int
Description: Compute CRC32 hash code
Param[1]: data (type: unsigned char *)
Param[2]: dataSize (type: int)
-Function 151: ComputeMD5() (2 input parameters)
+Function 157: ComputeMD5() (2 input parameters)
Name: ComputeMD5
Return type: unsigned int *
Description: Compute MD5 hash code, returns static int[4] (16 bytes)
Param[1]: data (type: unsigned char *)
Param[2]: dataSize (type: int)
-Function 152: ComputeSHA1() (2 input parameters)
+Function 158: ComputeSHA1() (2 input parameters)
Name: ComputeSHA1
Return type: unsigned int *
Description: Compute SHA1 hash code, returns static int[5] (20 bytes)
Param[1]: data (type: unsigned char *)
Param[2]: dataSize (type: int)
-Function 153: LoadAutomationEventList() (1 input parameters)
+Function 159: LoadAutomationEventList() (1 input parameters)
Name: LoadAutomationEventList
Return type: AutomationEventList
Description: Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS
Param[1]: fileName (type: const char *)
-Function 154: UnloadAutomationEventList() (1 input parameters)
+Function 160: UnloadAutomationEventList() (1 input parameters)
Name: UnloadAutomationEventList
Return type: void
Description: Unload automation events list from file
Param[1]: list (type: AutomationEventList)
-Function 155: ExportAutomationEventList() (2 input parameters)
+Function 161: ExportAutomationEventList() (2 input parameters)
Name: ExportAutomationEventList
Return type: bool
Description: Export automation events list as text file
Param[1]: list (type: AutomationEventList)
Param[2]: fileName (type: const char *)
-Function 156: SetAutomationEventList() (1 input parameters)
+Function 162: SetAutomationEventList() (1 input parameters)
Name: SetAutomationEventList
Return type: void
Description: Set automation event list to record to
Param[1]: list (type: AutomationEventList *)
-Function 157: SetAutomationEventBaseFrame() (1 input parameters)
+Function 163: SetAutomationEventBaseFrame() (1 input parameters)
Name: SetAutomationEventBaseFrame
Return type: void
Description: Set automation event internal base frame to start recording
Param[1]: frame (type: int)
-Function 158: StartAutomationEventRecording() (0 input parameters)
+Function 164: StartAutomationEventRecording() (0 input parameters)
Name: StartAutomationEventRecording
Return type: void
Description: Start recording automation events (AutomationEventList must be set)
No input parameters
-Function 159: StopAutomationEventRecording() (0 input parameters)
+Function 165: StopAutomationEventRecording() (0 input parameters)
Name: StopAutomationEventRecording
Return type: void
Description: Stop recording automation events
No input parameters
-Function 160: PlayAutomationEvent() (1 input parameters)
+Function 166: PlayAutomationEvent() (1 input parameters)
Name: PlayAutomationEvent
Return type: void
Description: Play a recorded automation event
Param[1]: event (type: AutomationEvent)
-Function 161: IsKeyPressed() (1 input parameters)
+Function 167: IsKeyPressed() (1 input parameters)
Name: IsKeyPressed
Return type: bool
Description: Check if a key has been pressed once
Param[1]: key (type: int)
-Function 162: IsKeyPressedRepeat() (1 input parameters)
+Function 168: IsKeyPressedRepeat() (1 input parameters)
Name: IsKeyPressedRepeat
Return type: bool
Description: Check if a key has been pressed again
Param[1]: key (type: int)
-Function 163: IsKeyDown() (1 input parameters)
+Function 169: IsKeyDown() (1 input parameters)
Name: IsKeyDown
Return type: bool
Description: Check if a key is being pressed
Param[1]: key (type: int)
-Function 164: IsKeyReleased() (1 input parameters)
+Function 170: IsKeyReleased() (1 input parameters)
Name: IsKeyReleased
Return type: bool
Description: Check if a key has been released once
Param[1]: key (type: int)
-Function 165: IsKeyUp() (1 input parameters)
+Function 171: IsKeyUp() (1 input parameters)
Name: IsKeyUp
Return type: bool
Description: Check if a key is NOT being pressed
Param[1]: key (type: int)
-Function 166: GetKeyPressed() (0 input parameters)
+Function 172: GetKeyPressed() (0 input parameters)
Name: GetKeyPressed
Return type: int
Description: Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty
No input parameters
-Function 167: GetCharPressed() (0 input parameters)
+Function 173: GetCharPressed() (0 input parameters)
Name: GetCharPressed
Return type: int
Description: Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty
No input parameters
-Function 168: GetKeyName() (1 input parameters)
+Function 174: GetKeyName() (1 input parameters)
Name: GetKeyName
Return type: const char *
Description: Get name of a QWERTY key on the current keyboard layout (eg returns string 'q' for KEY_A on an AZERTY keyboard)
Param[1]: key (type: int)
-Function 169: SetExitKey() (1 input parameters)
+Function 175: SetExitKey() (1 input parameters)
Name: SetExitKey
Return type: void
Description: Set a custom key to exit program (default is ESC)
Param[1]: key (type: int)
-Function 170: IsGamepadAvailable() (1 input parameters)
+Function 176: IsGamepadAvailable() (1 input parameters)
Name: IsGamepadAvailable
Return type: bool
Description: Check if a gamepad is available
Param[1]: gamepad (type: int)
-Function 171: GetGamepadName() (1 input parameters)
+Function 177: GetGamepadName() (1 input parameters)
Name: GetGamepadName
Return type: const char *
Description: Get gamepad internal name id
Param[1]: gamepad (type: int)
-Function 172: IsGamepadButtonPressed() (2 input parameters)
+Function 178: IsGamepadButtonPressed() (2 input parameters)
Name: IsGamepadButtonPressed
Return type: bool
Description: Check if a gamepad button has been pressed once
Param[1]: gamepad (type: int)
Param[2]: button (type: int)
-Function 173: IsGamepadButtonDown() (2 input parameters)
+Function 179: IsGamepadButtonDown() (2 input parameters)
Name: IsGamepadButtonDown
Return type: bool
Description: Check if a gamepad button is being pressed
Param[1]: gamepad (type: int)
Param[2]: button (type: int)
-Function 174: IsGamepadButtonReleased() (2 input parameters)
+Function 180: IsGamepadButtonReleased() (2 input parameters)
Name: IsGamepadButtonReleased
Return type: bool
Description: Check if a gamepad button has been released once
Param[1]: gamepad (type: int)
Param[2]: button (type: int)
-Function 175: IsGamepadButtonUp() (2 input parameters)
+Function 181: IsGamepadButtonUp() (2 input parameters)
Name: IsGamepadButtonUp
Return type: bool
Description: Check if a gamepad button is NOT being pressed
Param[1]: gamepad (type: int)
Param[2]: button (type: int)
-Function 176: GetGamepadButtonPressed() (0 input parameters)
+Function 182: GetGamepadButtonPressed() (0 input parameters)
Name: GetGamepadButtonPressed
Return type: int
Description: Get the last gamepad button pressed
No input parameters
-Function 177: GetGamepadAxisCount() (1 input parameters)
+Function 183: GetGamepadAxisCount() (1 input parameters)
Name: GetGamepadAxisCount
Return type: int
Description: Get axis count for a gamepad
Param[1]: gamepad (type: int)
-Function 178: GetGamepadAxisMovement() (2 input parameters)
+Function 184: GetGamepadAxisMovement() (2 input parameters)
Name: GetGamepadAxisMovement
Return type: float
Description: Get movement value for a gamepad axis
Param[1]: gamepad (type: int)
Param[2]: axis (type: int)
-Function 179: SetGamepadMappings() (1 input parameters)
+Function 185: SetGamepadMappings() (1 input parameters)
Name: SetGamepadMappings
Return type: int
Description: Set internal gamepad mappings (SDL_GameControllerDB)
Param[1]: mappings (type: const char *)
-Function 180: SetGamepadVibration() (4 input parameters)
+Function 186: SetGamepadVibration() (4 input parameters)
Name: SetGamepadVibration
Return type: void
Description: Set gamepad vibration for both motors (duration in seconds)
@@ -1964,151 +2000,151 @@ Function 180: SetGamepadVibration() (4 input parameters)
Param[2]: leftMotor (type: float)
Param[3]: rightMotor (type: float)
Param[4]: duration (type: float)
-Function 181: IsMouseButtonPressed() (1 input parameters)
+Function 187: IsMouseButtonPressed() (1 input parameters)
Name: IsMouseButtonPressed
Return type: bool
Description: Check if a mouse button has been pressed once
Param[1]: button (type: int)
-Function 182: IsMouseButtonDown() (1 input parameters)
+Function 188: IsMouseButtonDown() (1 input parameters)
Name: IsMouseButtonDown
Return type: bool
Description: Check if a mouse button is being pressed
Param[1]: button (type: int)
-Function 183: IsMouseButtonReleased() (1 input parameters)
+Function 189: IsMouseButtonReleased() (1 input parameters)
Name: IsMouseButtonReleased
Return type: bool
Description: Check if a mouse button has been released once
Param[1]: button (type: int)
-Function 184: IsMouseButtonUp() (1 input parameters)
+Function 190: IsMouseButtonUp() (1 input parameters)
Name: IsMouseButtonUp
Return type: bool
Description: Check if a mouse button is NOT being pressed
Param[1]: button (type: int)
-Function 185: GetMouseX() (0 input parameters)
+Function 191: GetMouseX() (0 input parameters)
Name: GetMouseX
Return type: int
Description: Get mouse position X
No input parameters
-Function 186: GetMouseY() (0 input parameters)
+Function 192: GetMouseY() (0 input parameters)
Name: GetMouseY
Return type: int
Description: Get mouse position Y
No input parameters
-Function 187: GetMousePosition() (0 input parameters)
+Function 193: GetMousePosition() (0 input parameters)
Name: GetMousePosition
Return type: Vector2
Description: Get mouse position XY
No input parameters
-Function 188: GetMouseDelta() (0 input parameters)
+Function 194: GetMouseDelta() (0 input parameters)
Name: GetMouseDelta
Return type: Vector2
Description: Get mouse delta between frames
No input parameters
-Function 189: SetMousePosition() (2 input parameters)
+Function 195: SetMousePosition() (2 input parameters)
Name: SetMousePosition
Return type: void
Description: Set mouse position XY
Param[1]: x (type: int)
Param[2]: y (type: int)
-Function 190: SetMouseOffset() (2 input parameters)
+Function 196: SetMouseOffset() (2 input parameters)
Name: SetMouseOffset
Return type: void
Description: Set mouse offset
Param[1]: offsetX (type: int)
Param[2]: offsetY (type: int)
-Function 191: SetMouseScale() (2 input parameters)
+Function 197: SetMouseScale() (2 input parameters)
Name: SetMouseScale
Return type: void
Description: Set mouse scaling
Param[1]: scaleX (type: float)
Param[2]: scaleY (type: float)
-Function 192: GetMouseWheelMove() (0 input parameters)
+Function 198: GetMouseWheelMove() (0 input parameters)
Name: GetMouseWheelMove
Return type: float
Description: Get mouse wheel movement for X or Y, whichever is larger
No input parameters
-Function 193: GetMouseWheelMoveV() (0 input parameters)
+Function 199: GetMouseWheelMoveV() (0 input parameters)
Name: GetMouseWheelMoveV
Return type: Vector2
Description: Get mouse wheel movement for both X and Y
No input parameters
-Function 194: SetMouseCursor() (1 input parameters)
+Function 200: SetMouseCursor() (1 input parameters)
Name: SetMouseCursor
Return type: void
Description: Set mouse cursor
Param[1]: cursor (type: int)
-Function 195: GetTouchX() (0 input parameters)
+Function 201: GetTouchX() (0 input parameters)
Name: GetTouchX
Return type: int
Description: Get touch position X for touch point 0 (relative to screen size)
No input parameters
-Function 196: GetTouchY() (0 input parameters)
+Function 202: GetTouchY() (0 input parameters)
Name: GetTouchY
Return type: int
Description: Get touch position Y for touch point 0 (relative to screen size)
No input parameters
-Function 197: GetTouchPosition() (1 input parameters)
+Function 203: GetTouchPosition() (1 input parameters)
Name: GetTouchPosition
Return type: Vector2
Description: Get touch position XY for a touch point index (relative to screen size)
Param[1]: index (type: int)
-Function 198: GetTouchPointId() (1 input parameters)
+Function 204: GetTouchPointId() (1 input parameters)
Name: GetTouchPointId
Return type: int
Description: Get touch point identifier for given index
Param[1]: index (type: int)
-Function 199: GetTouchPointCount() (0 input parameters)
+Function 205: GetTouchPointCount() (0 input parameters)
Name: GetTouchPointCount
Return type: int
Description: Get number of touch points
No input parameters
-Function 200: SetGesturesEnabled() (1 input parameters)
+Function 206: SetGesturesEnabled() (1 input parameters)
Name: SetGesturesEnabled
Return type: void
Description: Enable a set of gestures using flags
Param[1]: flags (type: unsigned int)
-Function 201: IsGestureDetected() (1 input parameters)
+Function 207: IsGestureDetected() (1 input parameters)
Name: IsGestureDetected
Return type: bool
Description: Check if a gesture have been detected
Param[1]: gesture (type: unsigned int)
-Function 202: GetGestureDetected() (0 input parameters)
+Function 208: GetGestureDetected() (0 input parameters)
Name: GetGestureDetected
Return type: int
Description: Get latest detected gesture
No input parameters
-Function 203: GetGestureHoldDuration() (0 input parameters)
+Function 209: GetGestureHoldDuration() (0 input parameters)
Name: GetGestureHoldDuration
Return type: float
Description: Get gesture hold time in seconds
No input parameters
-Function 204: GetGestureDragVector() (0 input parameters)
+Function 210: GetGestureDragVector() (0 input parameters)
Name: GetGestureDragVector
Return type: Vector2
Description: Get gesture drag vector
No input parameters
-Function 205: GetGestureDragAngle() (0 input parameters)
+Function 211: GetGestureDragAngle() (0 input parameters)
Name: GetGestureDragAngle
Return type: float
Description: Get gesture drag angle
No input parameters
-Function 206: GetGesturePinchVector() (0 input parameters)
+Function 212: GetGesturePinchVector() (0 input parameters)
Name: GetGesturePinchVector
Return type: Vector2
Description: Get gesture pinch delta
No input parameters
-Function 207: GetGesturePinchAngle() (0 input parameters)
+Function 213: GetGesturePinchAngle() (0 input parameters)
Name: GetGesturePinchAngle
Return type: float
Description: Get gesture pinch angle
No input parameters
-Function 208: UpdateCamera() (2 input parameters)
+Function 214: UpdateCamera() (2 input parameters)
Name: UpdateCamera
Return type: void
Description: Update camera position for selected mode
Param[1]: camera (type: Camera *)
Param[2]: mode (type: int)
-Function 209: UpdateCameraPro() (4 input parameters)
+Function 215: UpdateCameraPro() (4 input parameters)
Name: UpdateCameraPro
Return type: void
Description: Update camera movement/rotation
@@ -2116,36 +2152,36 @@ Function 209: UpdateCameraPro() (4 input parameters)
Param[2]: movement (type: Vector3)
Param[3]: rotation (type: Vector3)
Param[4]: zoom (type: float)
-Function 210: SetShapesTexture() (2 input parameters)
+Function 216: SetShapesTexture() (2 input parameters)
Name: SetShapesTexture
Return type: void
Description: Set texture and rectangle to be used on shapes drawing
Param[1]: texture (type: Texture2D)
Param[2]: source (type: Rectangle)
-Function 211: GetShapesTexture() (0 input parameters)
+Function 217: GetShapesTexture() (0 input parameters)
Name: GetShapesTexture
Return type: Texture2D
Description: Get texture that is used for shapes drawing
No input parameters
-Function 212: GetShapesTextureRectangle() (0 input parameters)
+Function 218: GetShapesTextureRectangle() (0 input parameters)
Name: GetShapesTextureRectangle
Return type: Rectangle
Description: Get texture source rectangle that is used for shapes drawing
No input parameters
-Function 213: DrawPixel() (3 input parameters)
+Function 219: DrawPixel() (3 input parameters)
Name: DrawPixel
Return type: void
Description: Draw a pixel using geometry [Can be slow, use with care]
Param[1]: posX (type: int)
Param[2]: posY (type: int)
Param[3]: color (type: Color)
-Function 214: DrawPixelV() (2 input parameters)
+Function 220: DrawPixelV() (2 input parameters)
Name: DrawPixelV
Return type: void
Description: Draw a pixel using geometry (Vector version) [Can be slow, use with care]
Param[1]: position (type: Vector2)
Param[2]: color (type: Color)
-Function 215: DrawLine() (5 input parameters)
+Function 221: DrawLine() (5 input parameters)
Name: DrawLine
Return type: void
Description: Draw a line
@@ -2154,14 +2190,14 @@ Function 215: DrawLine() (5 input parameters)
Param[3]: endPosX (type: int)
Param[4]: endPosY (type: int)
Param[5]: color (type: Color)
-Function 216: DrawLineV() (3 input parameters)
+Function 222: DrawLineV() (3 input parameters)
Name: DrawLineV
Return type: void
Description: Draw a line (using gl lines)
Param[1]: startPos (type: Vector2)
Param[2]: endPos (type: Vector2)
Param[3]: color (type: Color)
-Function 217: DrawLineEx() (4 input parameters)
+Function 223: DrawLineEx() (4 input parameters)
Name: DrawLineEx
Return type: void
Description: Draw a line (using triangles/quads)
@@ -2169,14 +2205,14 @@ Function 217: DrawLineEx() (4 input parameters)
Param[2]: endPos (type: Vector2)
Param[3]: thick (type: float)
Param[4]: color (type: Color)
-Function 218: DrawLineStrip() (3 input parameters)
+Function 224: DrawLineStrip() (3 input parameters)
Name: DrawLineStrip
Return type: void
Description: Draw lines sequence (using gl lines)
Param[1]: points (type: const Vector2 *)
Param[2]: pointCount (type: int)
Param[3]: color (type: Color)
-Function 219: DrawLineBezier() (4 input parameters)
+Function 225: DrawLineBezier() (4 input parameters)
Name: DrawLineBezier
Return type: void
Description: Draw line segment cubic-bezier in-out interpolation
@@ -2184,7 +2220,7 @@ Function 219: DrawLineBezier() (4 input parameters)
Param[2]: endPos (type: Vector2)
Param[3]: thick (type: float)
Param[4]: color (type: Color)
-Function 220: DrawCircle() (4 input parameters)
+Function 226: DrawCircle() (4 input parameters)
Name: DrawCircle
Return type: void
Description: Draw a color-filled circle
@@ -2192,7 +2228,7 @@ Function 220: DrawCircle() (4 input parameters)
Param[2]: centerY (type: int)
Param[3]: radius (type: float)
Param[4]: color (type: Color)
-Function 221: DrawCircleSector() (6 input parameters)
+Function 227: DrawCircleSector() (6 input parameters)
Name: DrawCircleSector
Return type: void
Description: Draw a piece of a circle
@@ -2202,7 +2238,7 @@ Function 221: DrawCircleSector() (6 input parameters)
Param[4]: endAngle (type: float)
Param[5]: segments (type: int)
Param[6]: color (type: Color)
-Function 222: DrawCircleSectorLines() (6 input parameters)
+Function 228: DrawCircleSectorLines() (6 input parameters)
Name: DrawCircleSectorLines
Return type: void
Description: Draw circle sector outline
@@ -2212,7 +2248,7 @@ Function 222: DrawCircleSectorLines() (6 input parameters)
Param[4]: endAngle (type: float)
Param[5]: segments (type: int)
Param[6]: color (type: Color)
-Function 223: DrawCircleGradient() (5 input parameters)
+Function 229: DrawCircleGradient() (5 input parameters)
Name: DrawCircleGradient
Return type: void
Description: Draw a gradient-filled circle
@@ -2221,14 +2257,14 @@ Function 223: DrawCircleGradient() (5 input parameters)
Param[3]: radius (type: float)
Param[4]: inner (type: Color)
Param[5]: outer (type: Color)
-Function 224: DrawCircleV() (3 input parameters)
+Function 230: DrawCircleV() (3 input parameters)
Name: DrawCircleV
Return type: void
Description: Draw a color-filled circle (Vector version)
Param[1]: center (type: Vector2)
Param[2]: radius (type: float)
Param[3]: color (type: Color)
-Function 225: DrawCircleLines() (4 input parameters)
+Function 231: DrawCircleLines() (4 input parameters)
Name: DrawCircleLines
Return type: void
Description: Draw circle outline
@@ -2236,14 +2272,14 @@ Function 225: DrawCircleLines() (4 input parameters)
Param[2]: centerY (type: int)
Param[3]: radius (type: float)
Param[4]: color (type: Color)
-Function 226: DrawCircleLinesV() (3 input parameters)
+Function 232: DrawCircleLinesV() (3 input parameters)
Name: DrawCircleLinesV
Return type: void
Description: Draw circle outline (Vector version)
Param[1]: center (type: Vector2)
Param[2]: radius (type: float)
Param[3]: color (type: Color)
-Function 227: DrawEllipse() (5 input parameters)
+Function 233: DrawEllipse() (5 input parameters)
Name: DrawEllipse
Return type: void
Description: Draw ellipse
@@ -2252,7 +2288,7 @@ Function 227: DrawEllipse() (5 input parameters)
Param[3]: radiusH (type: float)
Param[4]: radiusV (type: float)
Param[5]: color (type: Color)
-Function 228: DrawEllipseV() (4 input parameters)
+Function 234: DrawEllipseV() (4 input parameters)
Name: DrawEllipseV
Return type: void
Description: Draw ellipse (Vector version)
@@ -2260,7 +2296,7 @@ Function 228: DrawEllipseV() (4 input parameters)
Param[2]: radiusH (type: float)
Param[3]: radiusV (type: float)
Param[4]: color (type: Color)
-Function 229: DrawEllipseLines() (5 input parameters)
+Function 235: DrawEllipseLines() (5 input parameters)
Name: DrawEllipseLines
Return type: void
Description: Draw ellipse outline
@@ -2269,7 +2305,7 @@ Function 229: DrawEllipseLines() (5 input parameters)
Param[3]: radiusH (type: float)
Param[4]: radiusV (type: float)
Param[5]: color (type: Color)
-Function 230: DrawEllipseLinesV() (4 input parameters)
+Function 236: DrawEllipseLinesV() (4 input parameters)
Name: DrawEllipseLinesV
Return type: void
Description: Draw ellipse outline (Vector version)
@@ -2277,7 +2313,7 @@ Function 230: DrawEllipseLinesV() (4 input parameters)
Param[2]: radiusH (type: float)
Param[3]: radiusV (type: float)
Param[4]: color (type: Color)
-Function 231: DrawRing() (7 input parameters)
+Function 237: DrawRing() (7 input parameters)
Name: DrawRing
Return type: void
Description: Draw ring
@@ -2288,7 +2324,7 @@ Function 231: DrawRing() (7 input parameters)
Param[5]: endAngle (type: float)
Param[6]: segments (type: int)
Param[7]: color (type: Color)
-Function 232: DrawRingLines() (7 input parameters)
+Function 238: DrawRingLines() (7 input parameters)
Name: DrawRingLines
Return type: void
Description: Draw ring outline
@@ -2299,7 +2335,7 @@ Function 232: DrawRingLines() (7 input parameters)
Param[5]: endAngle (type: float)
Param[6]: segments (type: int)
Param[7]: color (type: Color)
-Function 233: DrawRectangle() (5 input parameters)
+Function 239: DrawRectangle() (5 input parameters)
Name: DrawRectangle
Return type: void
Description: Draw a color-filled rectangle
@@ -2308,20 +2344,20 @@ Function 233: DrawRectangle() (5 input parameters)
Param[3]: width (type: int)
Param[4]: height (type: int)
Param[5]: color (type: Color)
-Function 234: DrawRectangleV() (3 input parameters)
+Function 240: DrawRectangleV() (3 input parameters)
Name: DrawRectangleV
Return type: void
Description: Draw a color-filled rectangle (Vector version)
Param[1]: position (type: Vector2)
Param[2]: size (type: Vector2)
Param[3]: color (type: Color)
-Function 235: DrawRectangleRec() (2 input parameters)
+Function 241: DrawRectangleRec() (2 input parameters)
Name: DrawRectangleRec
Return type: void
Description: Draw a color-filled rectangle
Param[1]: rec (type: Rectangle)
Param[2]: color (type: Color)
-Function 236: DrawRectanglePro() (4 input parameters)
+Function 242: DrawRectanglePro() (4 input parameters)
Name: DrawRectanglePro
Return type: void
Description: Draw a color-filled rectangle with pro parameters
@@ -2329,7 +2365,7 @@ Function 236: DrawRectanglePro() (4 input parameters)
Param[2]: origin (type: Vector2)
Param[3]: rotation (type: float)
Param[4]: color (type: Color)
-Function 237: DrawRectangleGradientV() (6 input parameters)
+Function 243: DrawRectangleGradientV() (6 input parameters)
Name: DrawRectangleGradientV
Return type: void
Description: Draw a vertical-gradient-filled rectangle
@@ -2339,7 +2375,7 @@ Function 237: DrawRectangleGradientV() (6 input parameters)
Param[4]: height (type: int)
Param[5]: top (type: Color)
Param[6]: bottom (type: Color)
-Function 238: DrawRectangleGradientH() (6 input parameters)
+Function 244: DrawRectangleGradientH() (6 input parameters)
Name: DrawRectangleGradientH
Return type: void
Description: Draw a horizontal-gradient-filled rectangle
@@ -2349,7 +2385,7 @@ Function 238: DrawRectangleGradientH() (6 input parameters)
Param[4]: height (type: int)
Param[5]: left (type: Color)
Param[6]: right (type: Color)
-Function 239: DrawRectangleGradientEx() (5 input parameters)
+Function 245: DrawRectangleGradientEx() (5 input parameters)
Name: DrawRectangleGradientEx
Return type: void
Description: Draw a gradient-filled rectangle with custom vertex colors
@@ -2358,7 +2394,7 @@ Function 239: DrawRectangleGradientEx() (5 input parameters)
Param[3]: bottomLeft (type: Color)
Param[4]: bottomRight (type: Color)
Param[5]: topRight (type: Color)
-Function 240: DrawRectangleLines() (5 input parameters)
+Function 246: DrawRectangleLines() (5 input parameters)
Name: DrawRectangleLines
Return type: void
Description: Draw rectangle outline
@@ -2367,14 +2403,14 @@ Function 240: DrawRectangleLines() (5 input parameters)
Param[3]: width (type: int)
Param[4]: height (type: int)
Param[5]: color (type: Color)
-Function 241: DrawRectangleLinesEx() (3 input parameters)
+Function 247: DrawRectangleLinesEx() (3 input parameters)
Name: DrawRectangleLinesEx
Return type: void
Description: Draw rectangle outline with extended parameters
Param[1]: rec (type: Rectangle)
Param[2]: lineThick (type: float)
Param[3]: color (type: Color)
-Function 242: DrawRectangleRounded() (4 input parameters)
+Function 248: DrawRectangleRounded() (4 input parameters)
Name: DrawRectangleRounded
Return type: void
Description: Draw rectangle with rounded edges
@@ -2382,7 +2418,7 @@ Function 242: DrawRectangleRounded() (4 input parameters)
Param[2]: roundness (type: float)
Param[3]: segments (type: int)
Param[4]: color (type: Color)
-Function 243: DrawRectangleRoundedLines() (4 input parameters)
+Function 249: DrawRectangleRoundedLines() (4 input parameters)
Name: DrawRectangleRoundedLines
Return type: void
Description: Draw rectangle lines with rounded edges
@@ -2390,7 +2426,7 @@ Function 243: DrawRectangleRoundedLines() (4 input parameters)
Param[2]: roundness (type: float)
Param[3]: segments (type: int)
Param[4]: color (type: Color)
-Function 244: DrawRectangleRoundedLinesEx() (5 input parameters)
+Function 250: DrawRectangleRoundedLinesEx() (5 input parameters)
Name: DrawRectangleRoundedLinesEx
Return type: void
Description: Draw rectangle with rounded edges outline
@@ -2399,7 +2435,7 @@ Function 244: DrawRectangleRoundedLinesEx() (5 input parameters)
Param[3]: segments (type: int)
Param[4]: lineThick (type: float)
Param[5]: color (type: Color)
-Function 245: DrawTriangle() (4 input parameters)
+Function 251: DrawTriangle() (4 input parameters)
Name: DrawTriangle
Return type: void
Description: Draw a color-filled triangle (vertex in counter-clockwise order!)
@@ -2407,7 +2443,7 @@ Function 245: DrawTriangle() (4 input parameters)
Param[2]: v2 (type: Vector2)
Param[3]: v3 (type: Vector2)
Param[4]: color (type: Color)
-Function 246: DrawTriangleLines() (4 input parameters)
+Function 252: DrawTriangleLines() (4 input parameters)
Name: DrawTriangleLines
Return type: void
Description: Draw triangle outline (vertex in counter-clockwise order!)
@@ -2415,21 +2451,21 @@ Function 246: DrawTriangleLines() (4 input parameters)
Param[2]: v2 (type: Vector2)
Param[3]: v3 (type: Vector2)
Param[4]: color (type: Color)
-Function 247: DrawTriangleFan() (3 input parameters)
+Function 253: DrawTriangleFan() (3 input parameters)
Name: DrawTriangleFan
Return type: void
Description: Draw a triangle fan defined by points (first vertex is the center)
Param[1]: points (type: const Vector2 *)
Param[2]: pointCount (type: int)
Param[3]: color (type: Color)
-Function 248: DrawTriangleStrip() (3 input parameters)
+Function 254: DrawTriangleStrip() (3 input parameters)
Name: DrawTriangleStrip
Return type: void
Description: Draw a triangle strip defined by points
Param[1]: points (type: const Vector2 *)
Param[2]: pointCount (type: int)
Param[3]: color (type: Color)
-Function 249: DrawPoly() (5 input parameters)
+Function 255: DrawPoly() (5 input parameters)
Name: DrawPoly
Return type: void
Description: Draw a regular polygon (Vector version)
@@ -2438,7 +2474,7 @@ Function 249: DrawPoly() (5 input parameters)
Param[3]: radius (type: float)
Param[4]: rotation (type: float)
Param[5]: color (type: Color)
-Function 250: DrawPolyLines() (5 input parameters)
+Function 256: DrawPolyLines() (5 input parameters)
Name: DrawPolyLines
Return type: void
Description: Draw a polygon outline of n sides
@@ -2447,7 +2483,7 @@ Function 250: DrawPolyLines() (5 input parameters)
Param[3]: radius (type: float)
Param[4]: rotation (type: float)
Param[5]: color (type: Color)
-Function 251: DrawPolyLinesEx() (6 input parameters)
+Function 257: DrawPolyLinesEx() (6 input parameters)
Name: DrawPolyLinesEx
Return type: void
Description: Draw a polygon outline of n sides with extended parameters
@@ -2457,7 +2493,7 @@ Function 251: DrawPolyLinesEx() (6 input parameters)
Param[4]: rotation (type: float)
Param[5]: lineThick (type: float)
Param[6]: color (type: Color)
-Function 252: DrawSplineLinear() (4 input parameters)
+Function 258: DrawSplineLinear() (4 input parameters)
Name: DrawSplineLinear
Return type: void
Description: Draw spline: Linear, minimum 2 points
@@ -2465,7 +2501,7 @@ Function 252: DrawSplineLinear() (4 input parameters)
Param[2]: pointCount (type: int)
Param[3]: thick (type: float)
Param[4]: color (type: Color)
-Function 253: DrawSplineBasis() (4 input parameters)
+Function 259: DrawSplineBasis() (4 input parameters)
Name: DrawSplineBasis
Return type: void
Description: Draw spline: B-Spline, minimum 4 points
@@ -2473,7 +2509,7 @@ Function 253: DrawSplineBasis() (4 input parameters)
Param[2]: pointCount (type: int)
Param[3]: thick (type: float)
Param[4]: color (type: Color)
-Function 254: DrawSplineCatmullRom() (4 input parameters)
+Function 260: DrawSplineCatmullRom() (4 input parameters)
Name: DrawSplineCatmullRom
Return type: void
Description: Draw spline: Catmull-Rom, minimum 4 points
@@ -2481,7 +2517,7 @@ Function 254: DrawSplineCatmullRom() (4 input parameters)
Param[2]: pointCount (type: int)
Param[3]: thick (type: float)
Param[4]: color (type: Color)
-Function 255: DrawSplineBezierQuadratic() (4 input parameters)
+Function 261: DrawSplineBezierQuadratic() (4 input parameters)
Name: DrawSplineBezierQuadratic
Return type: void
Description: Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]
@@ -2489,7 +2525,7 @@ Function 255: DrawSplineBezierQuadratic() (4 input parameters)
Param[2]: pointCount (type: int)
Param[3]: thick (type: float)
Param[4]: color (type: Color)
-Function 256: DrawSplineBezierCubic() (4 input parameters)
+Function 262: DrawSplineBezierCubic() (4 input parameters)
Name: DrawSplineBezierCubic
Return type: void
Description: Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]
@@ -2497,7 +2533,7 @@ Function 256: DrawSplineBezierCubic() (4 input parameters)
Param[2]: pointCount (type: int)
Param[3]: thick (type: float)
Param[4]: color (type: Color)
-Function 257: DrawSplineSegmentLinear() (4 input parameters)
+Function 263: DrawSplineSegmentLinear() (4 input parameters)
Name: DrawSplineSegmentLinear
Return type: void
Description: Draw spline segment: Linear, 2 points
@@ -2505,7 +2541,7 @@ Function 257: DrawSplineSegmentLinear() (4 input parameters)
Param[2]: p2 (type: Vector2)
Param[3]: thick (type: float)
Param[4]: color (type: Color)
-Function 258: DrawSplineSegmentBasis() (6 input parameters)
+Function 264: DrawSplineSegmentBasis() (6 input parameters)
Name: DrawSplineSegmentBasis
Return type: void
Description: Draw spline segment: B-Spline, 4 points
@@ -2515,7 +2551,7 @@ Function 258: DrawSplineSegmentBasis() (6 input parameters)
Param[4]: p4 (type: Vector2)
Param[5]: thick (type: float)
Param[6]: color (type: Color)
-Function 259: DrawSplineSegmentCatmullRom() (6 input parameters)
+Function 265: DrawSplineSegmentCatmullRom() (6 input parameters)
Name: DrawSplineSegmentCatmullRom
Return type: void
Description: Draw spline segment: Catmull-Rom, 4 points
@@ -2525,7 +2561,7 @@ Function 259: DrawSplineSegmentCatmullRom() (6 input parameters)
Param[4]: p4 (type: Vector2)
Param[5]: thick (type: float)
Param[6]: color (type: Color)
-Function 260: DrawSplineSegmentBezierQuadratic() (5 input parameters)
+Function 266: DrawSplineSegmentBezierQuadratic() (5 input parameters)
Name: DrawSplineSegmentBezierQuadratic
Return type: void
Description: Draw spline segment: Quadratic Bezier, 2 points, 1 control point
@@ -2534,7 +2570,7 @@ Function 260: DrawSplineSegmentBezierQuadratic() (5 input parameters)
Param[3]: p3 (type: Vector2)
Param[4]: thick (type: float)
Param[5]: color (type: Color)
-Function 261: DrawSplineSegmentBezierCubic() (6 input parameters)
+Function 267: DrawSplineSegmentBezierCubic() (6 input parameters)
Name: DrawSplineSegmentBezierCubic
Return type: void
Description: Draw spline segment: Cubic Bezier, 2 points, 2 control points
@@ -2544,14 +2580,14 @@ Function 261: DrawSplineSegmentBezierCubic() (6 input parameters)
Param[4]: p4 (type: Vector2)
Param[5]: thick (type: float)
Param[6]: color (type: Color)
-Function 262: GetSplinePointLinear() (3 input parameters)
+Function 268: GetSplinePointLinear() (3 input parameters)
Name: GetSplinePointLinear
Return type: Vector2
Description: Get (evaluate) spline point: Linear
Param[1]: startPos (type: Vector2)
Param[2]: endPos (type: Vector2)
Param[3]: t (type: float)
-Function 263: GetSplinePointBasis() (5 input parameters)
+Function 269: GetSplinePointBasis() (5 input parameters)
Name: GetSplinePointBasis
Return type: Vector2
Description: Get (evaluate) spline point: B-Spline
@@ -2560,7 +2596,7 @@ Function 263: GetSplinePointBasis() (5 input parameters)
Param[3]: p3 (type: Vector2)
Param[4]: p4 (type: Vector2)
Param[5]: t (type: float)
-Function 264: GetSplinePointCatmullRom() (5 input parameters)
+Function 270: GetSplinePointCatmullRom() (5 input parameters)
Name: GetSplinePointCatmullRom
Return type: Vector2
Description: Get (evaluate) spline point: Catmull-Rom
@@ -2569,7 +2605,7 @@ Function 264: GetSplinePointCatmullRom() (5 input parameters)
Param[3]: p3 (type: Vector2)
Param[4]: p4 (type: Vector2)
Param[5]: t (type: float)
-Function 265: GetSplinePointBezierQuad() (4 input parameters)
+Function 271: GetSplinePointBezierQuad() (4 input parameters)
Name: GetSplinePointBezierQuad
Return type: Vector2
Description: Get (evaluate) spline point: Quadratic Bezier
@@ -2577,7 +2613,7 @@ Function 265: GetSplinePointBezierQuad() (4 input parameters)
Param[2]: c2 (type: Vector2)
Param[3]: p3 (type: Vector2)
Param[4]: t (type: float)
-Function 266: GetSplinePointBezierCubic() (5 input parameters)
+Function 272: GetSplinePointBezierCubic() (5 input parameters)
Name: GetSplinePointBezierCubic
Return type: Vector2
Description: Get (evaluate) spline point: Cubic Bezier
@@ -2586,13 +2622,13 @@ Function 266: GetSplinePointBezierCubic() (5 input parameters)
Param[3]: c3 (type: Vector2)
Param[4]: p4 (type: Vector2)
Param[5]: t (type: float)
-Function 267: CheckCollisionRecs() (2 input parameters)
+Function 273: CheckCollisionRecs() (2 input parameters)
Name: CheckCollisionRecs
Return type: bool
Description: Check collision between two rectangles
Param[1]: rec1 (type: Rectangle)
Param[2]: rec2 (type: Rectangle)
-Function 268: CheckCollisionCircles() (4 input parameters)
+Function 274: CheckCollisionCircles() (4 input parameters)
Name: CheckCollisionCircles
Return type: bool
Description: Check collision between two circles
@@ -2600,14 +2636,14 @@ Function 268: CheckCollisionCircles() (4 input parameters)
Param[2]: radius1 (type: float)
Param[3]: center2 (type: Vector2)
Param[4]: radius2 (type: float)
-Function 269: CheckCollisionCircleRec() (3 input parameters)
+Function 275: CheckCollisionCircleRec() (3 input parameters)
Name: CheckCollisionCircleRec
Return type: bool
Description: Check collision between circle and rectangle
Param[1]: center (type: Vector2)
Param[2]: radius (type: float)
Param[3]: rec (type: Rectangle)
-Function 270: CheckCollisionCircleLine() (4 input parameters)
+Function 276: CheckCollisionCircleLine() (4 input parameters)
Name: CheckCollisionCircleLine
Return type: bool
Description: Check if circle collides with a line created betweeen two points [p1] and [p2]
@@ -2615,20 +2651,20 @@ Function 270: CheckCollisionCircleLine() (4 input parameters)
Param[2]: radius (type: float)
Param[3]: p1 (type: Vector2)
Param[4]: p2 (type: Vector2)
-Function 271: CheckCollisionPointRec() (2 input parameters)
+Function 277: CheckCollisionPointRec() (2 input parameters)
Name: CheckCollisionPointRec
Return type: bool
Description: Check if point is inside rectangle
Param[1]: point (type: Vector2)
Param[2]: rec (type: Rectangle)
-Function 272: CheckCollisionPointCircle() (3 input parameters)
+Function 278: CheckCollisionPointCircle() (3 input parameters)
Name: CheckCollisionPointCircle
Return type: bool
Description: Check if point is inside circle
Param[1]: point (type: Vector2)
Param[2]: center (type: Vector2)
Param[3]: radius (type: float)
-Function 273: CheckCollisionPointTriangle() (4 input parameters)
+Function 279: CheckCollisionPointTriangle() (4 input parameters)
Name: CheckCollisionPointTriangle
Return type: bool
Description: Check if point is inside a triangle
@@ -2636,7 +2672,7 @@ Function 273: CheckCollisionPointTriangle() (4 input parameters)
Param[2]: p1 (type: Vector2)
Param[3]: p2 (type: Vector2)
Param[4]: p3 (type: Vector2)
-Function 274: CheckCollisionPointLine() (4 input parameters)
+Function 280: CheckCollisionPointLine() (4 input parameters)
Name: CheckCollisionPointLine
Return type: bool
Description: Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
@@ -2644,14 +2680,14 @@ Function 274: CheckCollisionPointLine() (4 input parameters)
Param[2]: p1 (type: Vector2)
Param[3]: p2 (type: Vector2)
Param[4]: threshold (type: int)
-Function 275: CheckCollisionPointPoly() (3 input parameters)
+Function 281: CheckCollisionPointPoly() (3 input parameters)
Name: CheckCollisionPointPoly
Return type: bool
Description: Check if point is within a polygon described by array of vertices
Param[1]: point (type: Vector2)
Param[2]: points (type: const Vector2 *)
Param[3]: pointCount (type: int)
-Function 276: CheckCollisionLines() (5 input parameters)
+Function 282: CheckCollisionLines() (5 input parameters)
Name: CheckCollisionLines
Return type: bool
Description: Check the collision between two lines defined by two points each, returns collision point by reference
@@ -2660,18 +2696,18 @@ Function 276: CheckCollisionLines() (5 input parameters)
Param[3]: startPos2 (type: Vector2)
Param[4]: endPos2 (type: Vector2)
Param[5]: collisionPoint (type: Vector2 *)
-Function 277: GetCollisionRec() (2 input parameters)
+Function 283: GetCollisionRec() (2 input parameters)
Name: GetCollisionRec
Return type: Rectangle
Description: Get collision rectangle for two rectangles collision
Param[1]: rec1 (type: Rectangle)
Param[2]: rec2 (type: Rectangle)
-Function 278: LoadImage() (1 input parameters)
+Function 284: LoadImage() (1 input parameters)
Name: LoadImage
Return type: Image
Description: Load image from file into CPU memory (RAM)
Param[1]: fileName (type: const char *)
-Function 279: LoadImageRaw() (5 input parameters)
+Function 285: LoadImageRaw() (5 input parameters)
Name: LoadImageRaw
Return type: Image
Description: Load image from RAW file data
@@ -2680,13 +2716,13 @@ Function 279: LoadImageRaw() (5 input parameters)
Param[3]: height (type: int)
Param[4]: format (type: int)
Param[5]: headerSize (type: int)
-Function 280: LoadImageAnim() (2 input parameters)
+Function 286: LoadImageAnim() (2 input parameters)
Name: LoadImageAnim
Return type: Image
Description: Load image sequence from file (frames appended to image.data)
Param[1]: fileName (type: const char *)
Param[2]: frames (type: int *)
-Function 281: LoadImageAnimFromMemory() (4 input parameters)
+Function 287: LoadImageAnimFromMemory() (4 input parameters)
Name: LoadImageAnimFromMemory
Return type: Image
Description: Load image sequence from memory buffer
@@ -2694,60 +2730,60 @@ Function 281: LoadImageAnimFromMemory() (4 input parameters)
Param[2]: fileData (type: const unsigned char *)
Param[3]: dataSize (type: int)
Param[4]: frames (type: int *)
-Function 282: LoadImageFromMemory() (3 input parameters)
+Function 288: LoadImageFromMemory() (3 input parameters)
Name: LoadImageFromMemory
Return type: Image
Description: Load image from memory buffer, fileType refers to extension: i.e. '.png'
Param[1]: fileType (type: const char *)
Param[2]: fileData (type: const unsigned char *)
Param[3]: dataSize (type: int)
-Function 283: LoadImageFromTexture() (1 input parameters)
+Function 289: LoadImageFromTexture() (1 input parameters)
Name: LoadImageFromTexture
Return type: Image
Description: Load image from GPU texture data
Param[1]: texture (type: Texture2D)
-Function 284: LoadImageFromScreen() (0 input parameters)
+Function 290: LoadImageFromScreen() (0 input parameters)
Name: LoadImageFromScreen
Return type: Image
Description: Load image from screen buffer and (screenshot)
No input parameters
-Function 285: IsImageValid() (1 input parameters)
+Function 291: IsImageValid() (1 input parameters)
Name: IsImageValid
Return type: bool
Description: Check if an image is valid (data and parameters)
Param[1]: image (type: Image)
-Function 286: UnloadImage() (1 input parameters)
+Function 292: UnloadImage() (1 input parameters)
Name: UnloadImage
Return type: void
Description: Unload image from CPU memory (RAM)
Param[1]: image (type: Image)
-Function 287: ExportImage() (2 input parameters)
+Function 293: ExportImage() (2 input parameters)
Name: ExportImage
Return type: bool
Description: Export image data to file, returns true on success
Param[1]: image (type: Image)
Param[2]: fileName (type: const char *)
-Function 288: ExportImageToMemory() (3 input parameters)
+Function 294: ExportImageToMemory() (3 input parameters)
Name: ExportImageToMemory
Return type: unsigned char *
Description: Export image to memory buffer
Param[1]: image (type: Image)
Param[2]: fileType (type: const char *)
Param[3]: fileSize (type: int *)
-Function 289: ExportImageAsCode() (2 input parameters)
+Function 295: ExportImageAsCode() (2 input parameters)
Name: ExportImageAsCode
Return type: bool
Description: Export image as code file defining an array of bytes, returns true on success
Param[1]: image (type: Image)
Param[2]: fileName (type: const char *)
-Function 290: GenImageColor() (3 input parameters)
+Function 296: GenImageColor() (3 input parameters)
Name: GenImageColor
Return type: Image
Description: Generate image: plain color
Param[1]: width (type: int)
Param[2]: height (type: int)
Param[3]: color (type: Color)
-Function 291: GenImageGradientLinear() (5 input parameters)
+Function 297: GenImageGradientLinear() (5 input parameters)
Name: GenImageGradientLinear
Return type: Image
Description: Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient
@@ -2756,7 +2792,7 @@ Function 291: GenImageGradientLinear() (5 input parameters)
Param[3]: direction (type: int)
Param[4]: start (type: Color)
Param[5]: end (type: Color)
-Function 292: GenImageGradientRadial() (5 input parameters)
+Function 298: GenImageGradientRadial() (5 input parameters)
Name: GenImageGradientRadial
Return type: Image
Description: Generate image: radial gradient
@@ -2765,7 +2801,7 @@ Function 292: GenImageGradientRadial() (5 input parameters)
Param[3]: density (type: float)
Param[4]: inner (type: Color)
Param[5]: outer (type: Color)
-Function 293: GenImageGradientSquare() (5 input parameters)
+Function 299: GenImageGradientSquare() (5 input parameters)
Name: GenImageGradientSquare
Return type: Image
Description: Generate image: square gradient
@@ -2774,7 +2810,7 @@ Function 293: GenImageGradientSquare() (5 input parameters)
Param[3]: density (type: float)
Param[4]: inner (type: Color)
Param[5]: outer (type: Color)
-Function 294: GenImageChecked() (6 input parameters)
+Function 300: GenImageChecked() (6 input parameters)
Name: GenImageChecked
Return type: Image
Description: Generate image: checked
@@ -2784,14 +2820,14 @@ Function 294: GenImageChecked() (6 input parameters)
Param[4]: checksY (type: int)
Param[5]: col1 (type: Color)
Param[6]: col2 (type: Color)
-Function 295: GenImageWhiteNoise() (3 input parameters)
+Function 301: GenImageWhiteNoise() (3 input parameters)
Name: GenImageWhiteNoise
Return type: Image
Description: Generate image: white noise
Param[1]: width (type: int)
Param[2]: height (type: int)
Param[3]: factor (type: float)
-Function 296: GenImagePerlinNoise() (5 input parameters)
+Function 302: GenImagePerlinNoise() (5 input parameters)
Name: GenImagePerlinNoise
Return type: Image
Description: Generate image: perlin noise
@@ -2800,45 +2836,45 @@ Function 296: GenImagePerlinNoise() (5 input parameters)
Param[3]: offsetX (type: int)
Param[4]: offsetY (type: int)
Param[5]: scale (type: float)
-Function 297: GenImageCellular() (3 input parameters)
+Function 303: GenImageCellular() (3 input parameters)
Name: GenImageCellular
Return type: Image
Description: Generate image: cellular algorithm, bigger tileSize means bigger cells
Param[1]: width (type: int)
Param[2]: height (type: int)
Param[3]: tileSize (type: int)
-Function 298: GenImageText() (3 input parameters)
+Function 304: GenImageText() (3 input parameters)
Name: GenImageText
Return type: Image
Description: Generate image: grayscale image from text data
Param[1]: width (type: int)
Param[2]: height (type: int)
Param[3]: text (type: const char *)
-Function 299: ImageCopy() (1 input parameters)
+Function 305: ImageCopy() (1 input parameters)
Name: ImageCopy
Return type: Image
Description: Create an image duplicate (useful for transformations)
Param[1]: image (type: Image)
-Function 300: ImageFromImage() (2 input parameters)
+Function 306: ImageFromImage() (2 input parameters)
Name: ImageFromImage
Return type: Image
Description: Create an image from another image piece
Param[1]: image (type: Image)
Param[2]: rec (type: Rectangle)
-Function 301: ImageFromChannel() (2 input parameters)
+Function 307: ImageFromChannel() (2 input parameters)
Name: ImageFromChannel
Return type: Image
Description: Create an image from a selected channel of another image (GRAYSCALE)
Param[1]: image (type: Image)
Param[2]: selectedChannel (type: int)
-Function 302: ImageText() (3 input parameters)
+Function 308: ImageText() (3 input parameters)
Name: ImageText
Return type: Image
Description: Create an image from text (default font)
Param[1]: text (type: const char *)
Param[2]: fontSize (type: int)
Param[3]: color (type: Color)
-Function 303: ImageTextEx() (5 input parameters)
+Function 309: ImageTextEx() (5 input parameters)
Name: ImageTextEx
Return type: Image
Description: Create an image from text (custom sprite font)
@@ -2847,76 +2883,76 @@ Function 303: ImageTextEx() (5 input parameters)
Param[3]: fontSize (type: float)
Param[4]: spacing (type: float)
Param[5]: tint (type: Color)
-Function 304: ImageFormat() (2 input parameters)
+Function 310: ImageFormat() (2 input parameters)
Name: ImageFormat
Return type: void
Description: Convert image data to desired format
Param[1]: image (type: Image *)
Param[2]: newFormat (type: int)
-Function 305: ImageToPOT() (2 input parameters)
+Function 311: ImageToPOT() (2 input parameters)
Name: ImageToPOT
Return type: void
Description: Convert image to POT (power-of-two)
Param[1]: image (type: Image *)
Param[2]: fill (type: Color)
-Function 306: ImageCrop() (2 input parameters)
+Function 312: ImageCrop() (2 input parameters)
Name: ImageCrop
Return type: void
Description: Crop an image to a defined rectangle
Param[1]: image (type: Image *)
Param[2]: crop (type: Rectangle)
-Function 307: ImageAlphaCrop() (2 input parameters)
+Function 313: ImageAlphaCrop() (2 input parameters)
Name: ImageAlphaCrop
Return type: void
Description: Crop image depending on alpha value
Param[1]: image (type: Image *)
Param[2]: threshold (type: float)
-Function 308: ImageAlphaClear() (3 input parameters)
+Function 314: ImageAlphaClear() (3 input parameters)
Name: ImageAlphaClear
Return type: void
Description: Clear alpha channel to desired color
Param[1]: image (type: Image *)
Param[2]: color (type: Color)
Param[3]: threshold (type: float)
-Function 309: ImageAlphaMask() (2 input parameters)
+Function 315: ImageAlphaMask() (2 input parameters)
Name: ImageAlphaMask
Return type: void
Description: Apply alpha mask to image
Param[1]: image (type: Image *)
Param[2]: alphaMask (type: Image)
-Function 310: ImageAlphaPremultiply() (1 input parameters)
+Function 316: ImageAlphaPremultiply() (1 input parameters)
Name: ImageAlphaPremultiply
Return type: void
Description: Premultiply alpha channel
Param[1]: image (type: Image *)
-Function 311: ImageBlurGaussian() (2 input parameters)
+Function 317: ImageBlurGaussian() (2 input parameters)
Name: ImageBlurGaussian
Return type: void
Description: Apply Gaussian blur using a box blur approximation
Param[1]: image (type: Image *)
Param[2]: blurSize (type: int)
-Function 312: ImageKernelConvolution() (3 input parameters)
+Function 318: ImageKernelConvolution() (3 input parameters)
Name: ImageKernelConvolution
Return type: void
Description: Apply custom square convolution kernel to image
Param[1]: image (type: Image *)
Param[2]: kernel (type: const float *)
Param[3]: kernelSize (type: int)
-Function 313: ImageResize() (3 input parameters)
+Function 319: ImageResize() (3 input parameters)
Name: ImageResize
Return type: void
Description: Resize image (Bicubic scaling algorithm)
Param[1]: image (type: Image *)
Param[2]: newWidth (type: int)
Param[3]: newHeight (type: int)
-Function 314: ImageResizeNN() (3 input parameters)
+Function 320: ImageResizeNN() (3 input parameters)
Name: ImageResizeNN
Return type: void
Description: Resize image (Nearest-Neighbor scaling algorithm)
Param[1]: image (type: Image *)
Param[2]: newWidth (type: int)
Param[3]: newHeight (type: int)
-Function 315: ImageResizeCanvas() (6 input parameters)
+Function 321: ImageResizeCanvas() (6 input parameters)
Name: ImageResizeCanvas
Return type: void
Description: Resize canvas and fill with color
@@ -2926,12 +2962,12 @@ Function 315: ImageResizeCanvas() (6 input parameters)
Param[4]: offsetX (type: int)
Param[5]: offsetY (type: int)
Param[6]: fill (type: Color)
-Function 316: ImageMipmaps() (1 input parameters)
+Function 322: ImageMipmaps() (1 input parameters)
Name: ImageMipmaps
Return type: void
Description: Compute all mipmap levels for a provided image
Param[1]: image (type: Image *)
-Function 317: ImageDither() (5 input parameters)
+Function 323: ImageDither() (5 input parameters)
Name: ImageDither
Return type: void
Description: Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
@@ -2940,109 +2976,109 @@ Function 317: ImageDither() (5 input parameters)
Param[3]: gBpp (type: int)
Param[4]: bBpp (type: int)
Param[5]: aBpp (type: int)
-Function 318: ImageFlipVertical() (1 input parameters)
+Function 324: ImageFlipVertical() (1 input parameters)
Name: ImageFlipVertical
Return type: void
Description: Flip image vertically
Param[1]: image (type: Image *)
-Function 319: ImageFlipHorizontal() (1 input parameters)
+Function 325: ImageFlipHorizontal() (1 input parameters)
Name: ImageFlipHorizontal
Return type: void
Description: Flip image horizontally
Param[1]: image (type: Image *)
-Function 320: ImageRotate() (2 input parameters)
+Function 326: ImageRotate() (2 input parameters)
Name: ImageRotate
Return type: void
Description: Rotate image by input angle in degrees (-359 to 359)
Param[1]: image (type: Image *)
Param[2]: degrees (type: int)
-Function 321: ImageRotateCW() (1 input parameters)
+Function 327: ImageRotateCW() (1 input parameters)
Name: ImageRotateCW
Return type: void
Description: Rotate image clockwise 90deg
Param[1]: image (type: Image *)
-Function 322: ImageRotateCCW() (1 input parameters)
+Function 328: ImageRotateCCW() (1 input parameters)
Name: ImageRotateCCW
Return type: void
Description: Rotate image counter-clockwise 90deg
Param[1]: image (type: Image *)
-Function 323: ImageColorTint() (2 input parameters)
+Function 329: ImageColorTint() (2 input parameters)
Name: ImageColorTint
Return type: void
Description: Modify image color: tint
Param[1]: image (type: Image *)
Param[2]: color (type: Color)
-Function 324: ImageColorInvert() (1 input parameters)
+Function 330: ImageColorInvert() (1 input parameters)
Name: ImageColorInvert
Return type: void
Description: Modify image color: invert
Param[1]: image (type: Image *)
-Function 325: ImageColorGrayscale() (1 input parameters)
+Function 331: ImageColorGrayscale() (1 input parameters)
Name: ImageColorGrayscale
Return type: void
Description: Modify image color: grayscale
Param[1]: image (type: Image *)
-Function 326: ImageColorContrast() (2 input parameters)
+Function 332: ImageColorContrast() (2 input parameters)
Name: ImageColorContrast
Return type: void
Description: Modify image color: contrast (-100 to 100)
Param[1]: image (type: Image *)
Param[2]: contrast (type: float)
-Function 327: ImageColorBrightness() (2 input parameters)
+Function 333: ImageColorBrightness() (2 input parameters)
Name: ImageColorBrightness
Return type: void
Description: Modify image color: brightness (-255 to 255)
Param[1]: image (type: Image *)
Param[2]: brightness (type: int)
-Function 328: ImageColorReplace() (3 input parameters)
+Function 334: ImageColorReplace() (3 input parameters)
Name: ImageColorReplace
Return type: void
Description: Modify image color: replace color
Param[1]: image (type: Image *)
Param[2]: color (type: Color)
Param[3]: replace (type: Color)
-Function 329: LoadImageColors() (1 input parameters)
+Function 335: LoadImageColors() (1 input parameters)
Name: LoadImageColors
Return type: Color *
Description: Load color data from image as a Color array (RGBA - 32bit)
Param[1]: image (type: Image)
-Function 330: LoadImagePalette() (3 input parameters)
+Function 336: LoadImagePalette() (3 input parameters)
Name: LoadImagePalette
Return type: Color *
Description: Load colors palette from image as a Color array (RGBA - 32bit)
Param[1]: image (type: Image)
Param[2]: maxPaletteSize (type: int)
Param[3]: colorCount (type: int *)
-Function 331: UnloadImageColors() (1 input parameters)
+Function 337: UnloadImageColors() (1 input parameters)
Name: UnloadImageColors
Return type: void
Description: Unload color data loaded with LoadImageColors()
Param[1]: colors (type: Color *)
-Function 332: UnloadImagePalette() (1 input parameters)
+Function 338: UnloadImagePalette() (1 input parameters)
Name: UnloadImagePalette
Return type: void
Description: Unload colors palette loaded with LoadImagePalette()
Param[1]: colors (type: Color *)
-Function 333: GetImageAlphaBorder() (2 input parameters)
+Function 339: GetImageAlphaBorder() (2 input parameters)
Name: GetImageAlphaBorder
Return type: Rectangle
Description: Get image alpha border rectangle
Param[1]: image (type: Image)
Param[2]: threshold (type: float)
-Function 334: GetImageColor() (3 input parameters)
+Function 340: GetImageColor() (3 input parameters)
Name: GetImageColor
Return type: Color
Description: Get image pixel color at (x, y) position
Param[1]: image (type: Image)
Param[2]: x (type: int)
Param[3]: y (type: int)
-Function 335: ImageClearBackground() (2 input parameters)
+Function 341: ImageClearBackground() (2 input parameters)
Name: ImageClearBackground
Return type: void
Description: Clear image background with given color
Param[1]: dst (type: Image *)
Param[2]: color (type: Color)
-Function 336: ImageDrawPixel() (4 input parameters)
+Function 342: ImageDrawPixel() (4 input parameters)
Name: ImageDrawPixel
Return type: void
Description: Draw pixel within an image
@@ -3050,14 +3086,14 @@ Function 336: ImageDrawPixel() (4 input parameters)
Param[2]: posX (type: int)
Param[3]: posY (type: int)
Param[4]: color (type: Color)
-Function 337: ImageDrawPixelV() (3 input parameters)
+Function 343: ImageDrawPixelV() (3 input parameters)
Name: ImageDrawPixelV
Return type: void
Description: Draw pixel within an image (Vector version)
Param[1]: dst (type: Image *)
Param[2]: position (type: Vector2)
Param[3]: color (type: Color)
-Function 338: ImageDrawLine() (6 input parameters)
+Function 344: ImageDrawLine() (6 input parameters)
Name: ImageDrawLine
Return type: void
Description: Draw line within an image
@@ -3067,7 +3103,7 @@ Function 338: ImageDrawLine() (6 input parameters)
Param[4]: endPosX (type: int)
Param[5]: endPosY (type: int)
Param[6]: color (type: Color)
-Function 339: ImageDrawLineV() (4 input parameters)
+Function 345: ImageDrawLineV() (4 input parameters)
Name: ImageDrawLineV
Return type: void
Description: Draw line within an image (Vector version)
@@ -3075,7 +3111,7 @@ Function 339: ImageDrawLineV() (4 input parameters)
Param[2]: start (type: Vector2)
Param[3]: end (type: Vector2)
Param[4]: color (type: Color)
-Function 340: ImageDrawLineEx() (5 input parameters)
+Function 346: ImageDrawLineEx() (5 input parameters)
Name: ImageDrawLineEx
Return type: void
Description: Draw a line defining thickness within an image
@@ -3084,7 +3120,7 @@ Function 340: ImageDrawLineEx() (5 input parameters)
Param[3]: end (type: Vector2)
Param[4]: thick (type: int)
Param[5]: color (type: Color)
-Function 341: ImageDrawCircle() (5 input parameters)
+Function 347: ImageDrawCircle() (5 input parameters)
Name: ImageDrawCircle
Return type: void
Description: Draw a filled circle within an image
@@ -3093,7 +3129,7 @@ Function 341: ImageDrawCircle() (5 input parameters)
Param[3]: centerY (type: int)
Param[4]: radius (type: int)
Param[5]: color (type: Color)
-Function 342: ImageDrawCircleV() (4 input parameters)
+Function 348: ImageDrawCircleV() (4 input parameters)
Name: ImageDrawCircleV
Return type: void
Description: Draw a filled circle within an image (Vector version)
@@ -3101,7 +3137,7 @@ Function 342: ImageDrawCircleV() (4 input parameters)
Param[2]: center (type: Vector2)
Param[3]: radius (type: int)
Param[4]: color (type: Color)
-Function 343: ImageDrawCircleLines() (5 input parameters)
+Function 349: ImageDrawCircleLines() (5 input parameters)
Name: ImageDrawCircleLines
Return type: void
Description: Draw circle outline within an image
@@ -3110,7 +3146,7 @@ Function 343: ImageDrawCircleLines() (5 input parameters)
Param[3]: centerY (type: int)
Param[4]: radius (type: int)
Param[5]: color (type: Color)
-Function 344: ImageDrawCircleLinesV() (4 input parameters)
+Function 350: ImageDrawCircleLinesV() (4 input parameters)
Name: ImageDrawCircleLinesV
Return type: void
Description: Draw circle outline within an image (Vector version)
@@ -3118,7 +3154,7 @@ Function 344: ImageDrawCircleLinesV() (4 input parameters)
Param[2]: center (type: Vector2)
Param[3]: radius (type: int)
Param[4]: color (type: Color)
-Function 345: ImageDrawRectangle() (6 input parameters)
+Function 351: ImageDrawRectangle() (6 input parameters)
Name: ImageDrawRectangle
Return type: void
Description: Draw rectangle within an image
@@ -3128,7 +3164,7 @@ Function 345: ImageDrawRectangle() (6 input parameters)
Param[4]: width (type: int)
Param[5]: height (type: int)
Param[6]: color (type: Color)
-Function 346: ImageDrawRectangleV() (4 input parameters)
+Function 352: ImageDrawRectangleV() (4 input parameters)
Name: ImageDrawRectangleV
Return type: void
Description: Draw rectangle within an image (Vector version)
@@ -3136,14 +3172,14 @@ Function 346: ImageDrawRectangleV() (4 input parameters)
Param[2]: position (type: Vector2)
Param[3]: size (type: Vector2)
Param[4]: color (type: Color)
-Function 347: ImageDrawRectangleRec() (3 input parameters)
+Function 353: ImageDrawRectangleRec() (3 input parameters)
Name: ImageDrawRectangleRec
Return type: void
Description: Draw rectangle within an image
Param[1]: dst (type: Image *)
Param[2]: rec (type: Rectangle)
Param[3]: color (type: Color)
-Function 348: ImageDrawRectangleLines() (4 input parameters)
+Function 354: ImageDrawRectangleLines() (4 input parameters)
Name: ImageDrawRectangleLines
Return type: void
Description: Draw rectangle lines within an image
@@ -3151,7 +3187,7 @@ Function 348: ImageDrawRectangleLines() (4 input parameters)
Param[2]: rec (type: Rectangle)
Param[3]: thick (type: int)
Param[4]: color (type: Color)
-Function 349: ImageDrawTriangle() (5 input parameters)
+Function 355: ImageDrawTriangle() (5 input parameters)
Name: ImageDrawTriangle
Return type: void
Description: Draw triangle within an image
@@ -3160,7 +3196,7 @@ Function 349: ImageDrawTriangle() (5 input parameters)
Param[3]: v2 (type: Vector2)
Param[4]: v3 (type: Vector2)
Param[5]: color (type: Color)
-Function 350: ImageDrawTriangleEx() (7 input parameters)
+Function 356: ImageDrawTriangleEx() (7 input parameters)
Name: ImageDrawTriangleEx
Return type: void
Description: Draw triangle with interpolated colors within an image
@@ -3171,7 +3207,7 @@ Function 350: ImageDrawTriangleEx() (7 input parameters)
Param[5]: c1 (type: Color)
Param[6]: c2 (type: Color)
Param[7]: c3 (type: Color)
-Function 351: ImageDrawTriangleLines() (5 input parameters)
+Function 357: ImageDrawTriangleLines() (5 input parameters)
Name: ImageDrawTriangleLines
Return type: void
Description: Draw triangle outline within an image
@@ -3180,7 +3216,7 @@ Function 351: ImageDrawTriangleLines() (5 input parameters)
Param[3]: v2 (type: Vector2)
Param[4]: v3 (type: Vector2)
Param[5]: color (type: Color)
-Function 352: ImageDrawTriangleFan() (4 input parameters)
+Function 358: ImageDrawTriangleFan() (4 input parameters)
Name: ImageDrawTriangleFan
Return type: void
Description: Draw a triangle fan defined by points within an image (first vertex is the center)
@@ -3188,7 +3224,7 @@ Function 352: ImageDrawTriangleFan() (4 input parameters)
Param[2]: points (type: const Vector2 *)
Param[3]: pointCount (type: int)
Param[4]: color (type: Color)
-Function 353: ImageDrawTriangleStrip() (4 input parameters)
+Function 359: ImageDrawTriangleStrip() (4 input parameters)
Name: ImageDrawTriangleStrip
Return type: void
Description: Draw a triangle strip defined by points within an image
@@ -3196,7 +3232,7 @@ Function 353: ImageDrawTriangleStrip() (4 input parameters)
Param[2]: points (type: const Vector2 *)
Param[3]: pointCount (type: int)
Param[4]: color (type: Color)
-Function 354: ImageDraw() (5 input parameters)
+Function 360: ImageDraw() (5 input parameters)
Name: ImageDraw
Return type: void
Description: Draw a source image within a destination image (tint applied to source)
@@ -3205,7 +3241,7 @@ Function 354: ImageDraw() (5 input parameters)
Param[3]: srcRec (type: Rectangle)
Param[4]: dstRec (type: Rectangle)
Param[5]: tint (type: Color)
-Function 355: ImageDrawText() (6 input parameters)
+Function 361: ImageDrawText() (6 input parameters)
Name: ImageDrawText
Return type: void
Description: Draw text (using default font) within an image (destination)
@@ -3215,7 +3251,7 @@ Function 355: ImageDrawText() (6 input parameters)
Param[4]: posY (type: int)
Param[5]: fontSize (type: int)
Param[6]: color (type: Color)
-Function 356: ImageDrawTextEx() (7 input parameters)
+Function 362: ImageDrawTextEx() (7 input parameters)
Name: ImageDrawTextEx
Return type: void
Description: Draw text (custom sprite font) within an image (destination)
@@ -3226,79 +3262,79 @@ Function 356: ImageDrawTextEx() (7 input parameters)
Param[5]: fontSize (type: float)
Param[6]: spacing (type: float)
Param[7]: tint (type: Color)
-Function 357: LoadTexture() (1 input parameters)
+Function 363: LoadTexture() (1 input parameters)
Name: LoadTexture
Return type: Texture2D
Description: Load texture from file into GPU memory (VRAM)
Param[1]: fileName (type: const char *)
-Function 358: LoadTextureFromImage() (1 input parameters)
+Function 364: LoadTextureFromImage() (1 input parameters)
Name: LoadTextureFromImage
Return type: Texture2D
Description: Load texture from image data
Param[1]: image (type: Image)
-Function 359: LoadTextureCubemap() (2 input parameters)
+Function 365: LoadTextureCubemap() (2 input parameters)
Name: LoadTextureCubemap
Return type: TextureCubemap
Description: Load cubemap from image, multiple image cubemap layouts supported
Param[1]: image (type: Image)
Param[2]: layout (type: int)
-Function 360: LoadRenderTexture() (2 input parameters)
+Function 366: LoadRenderTexture() (2 input parameters)
Name: LoadRenderTexture
Return type: RenderTexture2D
Description: Load texture for rendering (framebuffer)
Param[1]: width (type: int)
Param[2]: height (type: int)
-Function 361: IsTextureValid() (1 input parameters)
+Function 367: IsTextureValid() (1 input parameters)
Name: IsTextureValid
Return type: bool
Description: Check if a texture is valid (loaded in GPU)
Param[1]: texture (type: Texture2D)
-Function 362: UnloadTexture() (1 input parameters)
+Function 368: UnloadTexture() (1 input parameters)
Name: UnloadTexture
Return type: void
Description: Unload texture from GPU memory (VRAM)
Param[1]: texture (type: Texture2D)
-Function 363: IsRenderTextureValid() (1 input parameters)
+Function 369: IsRenderTextureValid() (1 input parameters)
Name: IsRenderTextureValid
Return type: bool
Description: Check if a render texture is valid (loaded in GPU)
Param[1]: target (type: RenderTexture2D)
-Function 364: UnloadRenderTexture() (1 input parameters)
+Function 370: UnloadRenderTexture() (1 input parameters)
Name: UnloadRenderTexture
Return type: void
Description: Unload render texture from GPU memory (VRAM)
Param[1]: target (type: RenderTexture2D)
-Function 365: UpdateTexture() (2 input parameters)
+Function 371: UpdateTexture() (2 input parameters)
Name: UpdateTexture
Return type: void
Description: Update GPU texture with new data (pixels should be able to fill texture)
Param[1]: texture (type: Texture2D)
Param[2]: pixels (type: const void *)
-Function 366: UpdateTextureRec() (3 input parameters)
+Function 372: UpdateTextureRec() (3 input parameters)
Name: UpdateTextureRec
Return type: void
Description: Update GPU texture rectangle with new data (pixels and rec should fit in texture)
Param[1]: texture (type: Texture2D)
Param[2]: rec (type: Rectangle)
Param[3]: pixels (type: const void *)
-Function 367: GenTextureMipmaps() (1 input parameters)
+Function 373: GenTextureMipmaps() (1 input parameters)
Name: GenTextureMipmaps
Return type: void
Description: Generate GPU mipmaps for a texture
Param[1]: texture (type: Texture2D *)
-Function 368: SetTextureFilter() (2 input parameters)
+Function 374: SetTextureFilter() (2 input parameters)
Name: SetTextureFilter
Return type: void
Description: Set texture scaling filter mode
Param[1]: texture (type: Texture2D)
Param[2]: filter (type: int)
-Function 369: SetTextureWrap() (2 input parameters)
+Function 375: SetTextureWrap() (2 input parameters)
Name: SetTextureWrap
Return type: void
Description: Set texture wrapping mode
Param[1]: texture (type: Texture2D)
Param[2]: wrap (type: int)
-Function 370: DrawTexture() (4 input parameters)
+Function 376: DrawTexture() (4 input parameters)
Name: DrawTexture
Return type: void
Description: Draw a Texture2D
@@ -3306,14 +3342,14 @@ Function 370: DrawTexture() (4 input parameters)
Param[2]: posX (type: int)
Param[3]: posY (type: int)
Param[4]: tint (type: Color)
-Function 371: DrawTextureV() (3 input parameters)
+Function 377: DrawTextureV() (3 input parameters)
Name: DrawTextureV
Return type: void
Description: Draw a Texture2D with position defined as Vector2
Param[1]: texture (type: Texture2D)
Param[2]: position (type: Vector2)
Param[3]: tint (type: Color)
-Function 372: DrawTextureEx() (5 input parameters)
+Function 378: DrawTextureEx() (5 input parameters)
Name: DrawTextureEx
Return type: void
Description: Draw a Texture2D with extended parameters
@@ -3322,7 +3358,7 @@ Function 372: DrawTextureEx() (5 input parameters)
Param[3]: rotation (type: float)
Param[4]: scale (type: float)
Param[5]: tint (type: Color)
-Function 373: DrawTextureRec() (4 input parameters)
+Function 379: DrawTextureRec() (4 input parameters)
Name: DrawTextureRec
Return type: void
Description: Draw a part of a texture defined by a rectangle
@@ -3330,7 +3366,7 @@ Function 373: DrawTextureRec() (4 input parameters)
Param[2]: source (type: Rectangle)
Param[3]: position (type: Vector2)
Param[4]: tint (type: Color)
-Function 374: DrawTexturePro() (6 input parameters)
+Function 380: DrawTexturePro() (6 input parameters)
Name: DrawTexturePro
Return type: void
Description: Draw a part of a texture defined by a rectangle with 'pro' parameters
@@ -3340,7 +3376,7 @@ Function 374: DrawTexturePro() (6 input parameters)
Param[4]: origin (type: Vector2)
Param[5]: rotation (type: float)
Param[6]: tint (type: Color)
-Function 375: DrawTextureNPatch() (6 input parameters)
+Function 381: DrawTextureNPatch() (6 input parameters)
Name: DrawTextureNPatch
Return type: void
Description: Draws a texture (or part of it) that stretches or shrinks nicely
@@ -3350,119 +3386,119 @@ Function 375: DrawTextureNPatch() (6 input parameters)
Param[4]: origin (type: Vector2)
Param[5]: rotation (type: float)
Param[6]: tint (type: Color)
-Function 376: ColorIsEqual() (2 input parameters)
+Function 382: ColorIsEqual() (2 input parameters)
Name: ColorIsEqual
Return type: bool
Description: Check if two colors are equal
Param[1]: col1 (type: Color)
Param[2]: col2 (type: Color)
-Function 377: Fade() (2 input parameters)
+Function 383: Fade() (2 input parameters)
Name: Fade
Return type: Color
Description: Get color with alpha applied, alpha goes from 0.0f to 1.0f
Param[1]: color (type: Color)
Param[2]: alpha (type: float)
-Function 378: ColorToInt() (1 input parameters)
+Function 384: ColorToInt() (1 input parameters)
Name: ColorToInt
Return type: int
Description: Get hexadecimal value for a Color (0xRRGGBBAA)
Param[1]: color (type: Color)
-Function 379: ColorNormalize() (1 input parameters)
+Function 385: ColorNormalize() (1 input parameters)
Name: ColorNormalize
Return type: Vector4
Description: Get Color normalized as float [0..1]
Param[1]: color (type: Color)
-Function 380: ColorFromNormalized() (1 input parameters)
+Function 386: ColorFromNormalized() (1 input parameters)
Name: ColorFromNormalized
Return type: Color
Description: Get Color from normalized values [0..1]
Param[1]: normalized (type: Vector4)
-Function 381: ColorToHSV() (1 input parameters)
+Function 387: ColorToHSV() (1 input parameters)
Name: ColorToHSV
Return type: Vector3
Description: Get HSV values for a Color, hue [0..360], saturation/value [0..1]
Param[1]: color (type: Color)
-Function 382: ColorFromHSV() (3 input parameters)
+Function 388: ColorFromHSV() (3 input parameters)
Name: ColorFromHSV
Return type: Color
Description: Get a Color from HSV values, hue [0..360], saturation/value [0..1]
Param[1]: hue (type: float)
Param[2]: saturation (type: float)
Param[3]: value (type: float)
-Function 383: ColorTint() (2 input parameters)
+Function 389: ColorTint() (2 input parameters)
Name: ColorTint
Return type: Color
Description: Get color multiplied with another color
Param[1]: color (type: Color)
Param[2]: tint (type: Color)
-Function 384: ColorBrightness() (2 input parameters)
+Function 390: ColorBrightness() (2 input parameters)
Name: ColorBrightness
Return type: Color
Description: Get color with brightness correction, brightness factor goes from -1.0f to 1.0f
Param[1]: color (type: Color)
Param[2]: factor (type: float)
-Function 385: ColorContrast() (2 input parameters)
+Function 391: ColorContrast() (2 input parameters)
Name: ColorContrast
Return type: Color
Description: Get color with contrast correction, contrast values between -1.0f and 1.0f
Param[1]: color (type: Color)
Param[2]: contrast (type: float)
-Function 386: ColorAlpha() (2 input parameters)
+Function 392: ColorAlpha() (2 input parameters)
Name: ColorAlpha
Return type: Color
Description: Get color with alpha applied, alpha goes from 0.0f to 1.0f
Param[1]: color (type: Color)
Param[2]: alpha (type: float)
-Function 387: ColorAlphaBlend() (3 input parameters)
+Function 393: ColorAlphaBlend() (3 input parameters)
Name: ColorAlphaBlend
Return type: Color
Description: Get src alpha-blended into dst color with tint
Param[1]: dst (type: Color)
Param[2]: src (type: Color)
Param[3]: tint (type: Color)
-Function 388: ColorLerp() (3 input parameters)
+Function 394: ColorLerp() (3 input parameters)
Name: ColorLerp
Return type: Color
Description: Get color lerp interpolation between two colors, factor [0.0f..1.0f]
Param[1]: color1 (type: Color)
Param[2]: color2 (type: Color)
Param[3]: factor (type: float)
-Function 389: GetColor() (1 input parameters)
+Function 395: GetColor() (1 input parameters)
Name: GetColor
Return type: Color
Description: Get Color structure from hexadecimal value
Param[1]: hexValue (type: unsigned int)
-Function 390: GetPixelColor() (2 input parameters)
+Function 396: GetPixelColor() (2 input parameters)
Name: GetPixelColor
Return type: Color
Description: Get Color from a source pixel pointer of certain format
Param[1]: srcPtr (type: void *)
Param[2]: format (type: int)
-Function 391: SetPixelColor() (3 input parameters)
+Function 397: SetPixelColor() (3 input parameters)
Name: SetPixelColor
Return type: void
Description: Set color formatted into destination pixel pointer
Param[1]: dstPtr (type: void *)
Param[2]: color (type: Color)
Param[3]: format (type: int)
-Function 392: GetPixelDataSize() (3 input parameters)
+Function 398: GetPixelDataSize() (3 input parameters)
Name: GetPixelDataSize
Return type: int
Description: Get pixel data size in bytes for certain format
Param[1]: width (type: int)
Param[2]: height (type: int)
Param[3]: format (type: int)
-Function 393: GetFontDefault() (0 input parameters)
+Function 399: GetFontDefault() (0 input parameters)
Name: GetFontDefault
Return type: Font
Description: Get the default Font
No input parameters
-Function 394: LoadFont() (1 input parameters)
+Function 400: LoadFont() (1 input parameters)
Name: LoadFont
Return type: Font
Description: Load font from file into GPU memory (VRAM)
Param[1]: fileName (type: const char *)
-Function 395: LoadFontEx() (4 input parameters)
+Function 401: LoadFontEx() (4 input parameters)
Name: LoadFontEx
Return type: Font
Description: Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
@@ -3470,14 +3506,14 @@ Function 395: LoadFontEx() (4 input parameters)
Param[2]: fontSize (type: int)
Param[3]: codepoints (type: const int *)
Param[4]: codepointCount (type: int)
-Function 396: LoadFontFromImage() (3 input parameters)
+Function 402: LoadFontFromImage() (3 input parameters)
Name: LoadFontFromImage
Return type: Font
Description: Load font from Image (XNA style)
Param[1]: image (type: Image)
Param[2]: key (type: Color)
Param[3]: firstChar (type: int)
-Function 397: LoadFontFromMemory() (6 input parameters)
+Function 403: LoadFontFromMemory() (6 input parameters)
Name: LoadFontFromMemory
Return type: Font
Description: Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
@@ -3487,12 +3523,12 @@ Function 397: LoadFontFromMemory() (6 input parameters)
Param[4]: fontSize (type: int)
Param[5]: codepoints (type: const int *)
Param[6]: codepointCount (type: int)
-Function 398: IsFontValid() (1 input parameters)
+Function 404: IsFontValid() (1 input parameters)
Name: IsFontValid
Return type: bool
Description: Check if a font is valid (font data loaded, WARNING: GPU texture not checked)
Param[1]: font (type: Font)
-Function 399: LoadFontData() (7 input parameters)
+Function 405: LoadFontData() (7 input parameters)
Name: LoadFontData
Return type: GlyphInfo *
Description: Load font data for further use
@@ -3503,7 +3539,7 @@ Function 399: LoadFontData() (7 input parameters)
Param[5]: codepointCount (type: int)
Param[6]: type (type: int)
Param[7]: glyphCount (type: int *)
-Function 400: GenImageFontAtlas() (6 input parameters)
+Function 406: GenImageFontAtlas() (6 input parameters)
Name: GenImageFontAtlas
Return type: Image
Description: Generate image font atlas using chars info
@@ -3513,30 +3549,30 @@ Function 400: GenImageFontAtlas() (6 input parameters)
Param[4]: fontSize (type: int)
Param[5]: padding (type: int)
Param[6]: packMethod (type: int)
-Function 401: UnloadFontData() (2 input parameters)
+Function 407: UnloadFontData() (2 input parameters)
Name: UnloadFontData
Return type: void
Description: Unload font chars info data (RAM)
Param[1]: glyphs (type: GlyphInfo *)
Param[2]: glyphCount (type: int)
-Function 402: UnloadFont() (1 input parameters)
+Function 408: UnloadFont() (1 input parameters)
Name: UnloadFont
Return type: void
Description: Unload font from GPU memory (VRAM)
Param[1]: font (type: Font)
-Function 403: ExportFontAsCode() (2 input parameters)
+Function 409: ExportFontAsCode() (2 input parameters)
Name: ExportFontAsCode
Return type: bool
Description: Export font as code file, returns true on success
Param[1]: font (type: Font)
Param[2]: fileName (type: const char *)
-Function 404: DrawFPS() (2 input parameters)
+Function 410: DrawFPS() (2 input parameters)
Name: DrawFPS
Return type: void
Description: Draw current FPS
Param[1]: posX (type: int)
Param[2]: posY (type: int)
-Function 405: DrawText() (5 input parameters)
+Function 411: DrawText() (5 input parameters)
Name: DrawText
Return type: void
Description: Draw text (using default font)
@@ -3545,7 +3581,7 @@ Function 405: DrawText() (5 input parameters)
Param[3]: posY (type: int)
Param[4]: fontSize (type: int)
Param[5]: color (type: Color)
-Function 406: DrawTextEx() (6 input parameters)
+Function 412: DrawTextEx() (6 input parameters)
Name: DrawTextEx
Return type: void
Description: Draw text using font and additional parameters
@@ -3555,7 +3591,7 @@ Function 406: DrawTextEx() (6 input parameters)
Param[4]: fontSize (type: float)
Param[5]: spacing (type: float)
Param[6]: tint (type: Color)
-Function 407: DrawTextPro() (8 input parameters)
+Function 413: DrawTextPro() (8 input parameters)
Name: DrawTextPro
Return type: void
Description: Draw text using Font and pro parameters (rotation)
@@ -3567,7 +3603,7 @@ Function 407: DrawTextPro() (8 input parameters)
Param[6]: fontSize (type: float)
Param[7]: spacing (type: float)
Param[8]: tint (type: Color)
-Function 408: DrawTextCodepoint() (5 input parameters)
+Function 414: DrawTextCodepoint() (5 input parameters)
Name: DrawTextCodepoint
Return type: void
Description: Draw one character (codepoint)
@@ -3576,7 +3612,7 @@ Function 408: DrawTextCodepoint() (5 input parameters)
Param[3]: position (type: Vector2)
Param[4]: fontSize (type: float)
Param[5]: tint (type: Color)
-Function 409: DrawTextCodepoints() (7 input parameters)
+Function 415: DrawTextCodepoints() (7 input parameters)
Name: DrawTextCodepoints
Return type: void
Description: Draw multiple character (codepoint)
@@ -3587,18 +3623,18 @@ Function 409: DrawTextCodepoints() (7 input parameters)
Param[5]: fontSize (type: float)
Param[6]: spacing (type: float)
Param[7]: tint (type: Color)
-Function 410: SetTextLineSpacing() (1 input parameters)
+Function 416: SetTextLineSpacing() (1 input parameters)
Name: SetTextLineSpacing
Return type: void
Description: Set vertical line spacing when drawing with line-breaks
Param[1]: spacing (type: int)
-Function 411: MeasureText() (2 input parameters)
+Function 417: MeasureText() (2 input parameters)
Name: MeasureText
Return type: int
Description: Measure string width for default font
Param[1]: text (type: const char *)
Param[2]: fontSize (type: int)
-Function 412: MeasureTextEx() (4 input parameters)
+Function 418: MeasureTextEx() (4 input parameters)
Name: MeasureTextEx
Return type: Vector2
Description: Measure string size for Font
@@ -3606,207 +3642,227 @@ Function 412: MeasureTextEx() (4 input parameters)
Param[2]: text (type: const char *)
Param[3]: fontSize (type: float)
Param[4]: spacing (type: float)
-Function 413: GetGlyphIndex() (2 input parameters)
+Function 419: GetGlyphIndex() (2 input parameters)
Name: GetGlyphIndex
Return type: int
Description: Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found
Param[1]: font (type: Font)
Param[2]: codepoint (type: int)
-Function 414: GetGlyphInfo() (2 input parameters)
+Function 420: GetGlyphInfo() (2 input parameters)
Name: GetGlyphInfo
Return type: GlyphInfo
Description: Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found
Param[1]: font (type: Font)
Param[2]: codepoint (type: int)
-Function 415: GetGlyphAtlasRec() (2 input parameters)
+Function 421: GetGlyphAtlasRec() (2 input parameters)
Name: GetGlyphAtlasRec
Return type: Rectangle
Description: Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
Param[1]: font (type: Font)
Param[2]: codepoint (type: int)
-Function 416: LoadUTF8() (2 input parameters)
+Function 422: LoadUTF8() (2 input parameters)
Name: LoadUTF8
Return type: char *
Description: Load UTF-8 text encoded from codepoints array
Param[1]: codepoints (type: const int *)
Param[2]: length (type: int)
-Function 417: UnloadUTF8() (1 input parameters)
+Function 423: UnloadUTF8() (1 input parameters)
Name: UnloadUTF8
Return type: void
Description: Unload UTF-8 text encoded from codepoints array
Param[1]: text (type: char *)
-Function 418: LoadCodepoints() (2 input parameters)
+Function 424: LoadCodepoints() (2 input parameters)
Name: LoadCodepoints
Return type: int *
Description: Load all codepoints from a UTF-8 text string, codepoints count returned by parameter
Param[1]: text (type: const char *)
Param[2]: count (type: int *)
-Function 419: UnloadCodepoints() (1 input parameters)
+Function 425: UnloadCodepoints() (1 input parameters)
Name: UnloadCodepoints
Return type: void
Description: Unload codepoints data from memory
Param[1]: codepoints (type: int *)
-Function 420: GetCodepointCount() (1 input parameters)
+Function 426: GetCodepointCount() (1 input parameters)
Name: GetCodepointCount
Return type: int
Description: Get total number of codepoints in a UTF-8 encoded string
Param[1]: text (type: const char *)
-Function 421: GetCodepoint() (2 input parameters)
+Function 427: GetCodepoint() (2 input parameters)
Name: GetCodepoint
Return type: int
Description: Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
Param[1]: text (type: const char *)
Param[2]: codepointSize (type: int *)
-Function 422: GetCodepointNext() (2 input parameters)
+Function 428: GetCodepointNext() (2 input parameters)
Name: GetCodepointNext
Return type: int
Description: Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
Param[1]: text (type: const char *)
Param[2]: codepointSize (type: int *)
-Function 423: GetCodepointPrevious() (2 input parameters)
+Function 429: GetCodepointPrevious() (2 input parameters)
Name: GetCodepointPrevious
Return type: int
Description: Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
Param[1]: text (type: const char *)
Param[2]: codepointSize (type: int *)
-Function 424: CodepointToUTF8() (2 input parameters)
+Function 430: CodepointToUTF8() (2 input parameters)
Name: CodepointToUTF8
Return type: const char *
Description: Encode one codepoint into UTF-8 byte array (array length returned as parameter)
Param[1]: codepoint (type: int)
Param[2]: utf8Size (type: int *)
-Function 425: LoadTextLines() (2 input parameters)
+Function 431: LoadTextLines() (2 input parameters)
Name: LoadTextLines
Return type: char **
Description: Load text as separate lines ('\n')
Param[1]: text (type: const char *)
Param[2]: count (type: int *)
-Function 426: UnloadTextLines() (2 input parameters)
+Function 432: UnloadTextLines() (2 input parameters)
Name: UnloadTextLines
Return type: void
Description: Unload text lines
Param[1]: text (type: char **)
Param[2]: lineCount (type: int)
-Function 427: TextCopy() (2 input parameters)
+Function 433: TextCopy() (2 input parameters)
Name: TextCopy
Return type: int
Description: Copy one string to another, returns bytes copied
Param[1]: dst (type: char *)
Param[2]: src (type: const char *)
-Function 428: TextIsEqual() (2 input parameters)
+Function 434: TextIsEqual() (2 input parameters)
Name: TextIsEqual
Return type: bool
Description: Check if two text string are equal
Param[1]: text1 (type: const char *)
Param[2]: text2 (type: const char *)
-Function 429: TextLength() (1 input parameters)
+Function 435: TextLength() (1 input parameters)
Name: TextLength
Return type: unsigned int
Description: Get text length, checks for '\0' ending
Param[1]: text (type: const char *)
-Function 430: TextFormat() (2 input parameters)
+Function 436: TextFormat() (2 input parameters)
Name: TextFormat
Return type: const char *
Description: Text formatting with variables (sprintf() style)
Param[1]: text (type: const char *)
Param[2]: args (type: ...)
-Function 431: TextSubtext() (3 input parameters)
+Function 437: TextSubtext() (3 input parameters)
Name: TextSubtext
Return type: const char *
Description: Get a piece of a text string
Param[1]: text (type: const char *)
Param[2]: position (type: int)
Param[3]: length (type: int)
-Function 432: TextReplace() (3 input parameters)
+Function 438: TextRemoveSpaces() (1 input parameters)
+ Name: TextRemoveSpaces
+ Return type: const char *
+ Description: Remove text spaces, concat words
+ Param[1]: text (type: const char *)
+Function 439: GetTextBetween() (3 input parameters)
+ Name: GetTextBetween
+ Return type: char *
+ Description: Get text between two strings
+ Param[1]: text (type: const char *)
+ Param[2]: begin (type: const char *)
+ Param[3]: end (type: const char *)
+Function 440: TextReplace() (3 input parameters)
Name: TextReplace
Return type: char *
Description: Replace text string (WARNING: memory must be freed!)
Param[1]: text (type: const char *)
- Param[2]: replace (type: const char *)
- Param[3]: by (type: const char *)
-Function 433: TextInsert() (3 input parameters)
+ Param[2]: search (type: const char *)
+ Param[3]: replacement (type: const char *)
+Function 441: TextReplaceBetween() (4 input parameters)
+ Name: TextReplaceBetween
+ Return type: char *
+ Description: Replace text between two specific strings (WARNING: memory must be freed!)
+ Param[1]: text (type: const char *)
+ Param[2]: begin (type: const char *)
+ Param[3]: end (type: const char *)
+ Param[4]: replacement (type: const char *)
+Function 442: TextInsert() (3 input parameters)
Name: TextInsert
Return type: char *
Description: Insert text in a position (WARNING: memory must be freed!)
Param[1]: text (type: const char *)
Param[2]: insert (type: const char *)
Param[3]: position (type: int)
-Function 434: TextJoin() (3 input parameters)
+Function 443: TextJoin() (3 input parameters)
Name: TextJoin
Return type: char *
Description: Join text strings with delimiter
Param[1]: textList (type: char **)
Param[2]: count (type: int)
Param[3]: delimiter (type: const char *)
-Function 435: TextSplit() (3 input parameters)
+Function 444: TextSplit() (3 input parameters)
Name: TextSplit
Return type: char **
Description: Split text into multiple strings, using MAX_TEXTSPLIT_COUNT static strings
Param[1]: text (type: const char *)
Param[2]: delimiter (type: char)
Param[3]: count (type: int *)
-Function 436: TextAppend() (3 input parameters)
+Function 445: TextAppend() (3 input parameters)
Name: TextAppend
Return type: void
- Description: Append text at specific position and move cursor!
+ Description: Append text at specific position and move cursor
Param[1]: text (type: char *)
Param[2]: append (type: const char *)
Param[3]: position (type: int *)
-Function 437: TextFindIndex() (2 input parameters)
+Function 446: TextFindIndex() (2 input parameters)
Name: TextFindIndex
Return type: int
Description: Find first text occurrence within a string, -1 if not found
Param[1]: text (type: const char *)
- Param[2]: find (type: const char *)
-Function 438: TextToUpper() (1 input parameters)
+ Param[2]: search (type: const char *)
+Function 447: TextToUpper() (1 input parameters)
Name: TextToUpper
Return type: char *
Description: Get upper case version of provided string
Param[1]: text (type: const char *)
-Function 439: TextToLower() (1 input parameters)
+Function 448: TextToLower() (1 input parameters)
Name: TextToLower
Return type: char *
Description: Get lower case version of provided string
Param[1]: text (type: const char *)
-Function 440: TextToPascal() (1 input parameters)
+Function 449: TextToPascal() (1 input parameters)
Name: TextToPascal
Return type: char *
Description: Get Pascal case notation version of provided string
Param[1]: text (type: const char *)
-Function 441: TextToSnake() (1 input parameters)
+Function 450: TextToSnake() (1 input parameters)
Name: TextToSnake
Return type: char *
Description: Get Snake case notation version of provided string
Param[1]: text (type: const char *)
-Function 442: TextToCamel() (1 input parameters)
+Function 451: TextToCamel() (1 input parameters)
Name: TextToCamel
Return type: char *
Description: Get Camel case notation version of provided string
Param[1]: text (type: const char *)
-Function 443: TextToInteger() (1 input parameters)
+Function 452: TextToInteger() (1 input parameters)
Name: TextToInteger
Return type: int
Description: Get integer value from text
Param[1]: text (type: const char *)
-Function 444: TextToFloat() (1 input parameters)
+Function 453: TextToFloat() (1 input parameters)
Name: TextToFloat
Return type: float
Description: Get float value from text
Param[1]: text (type: const char *)
-Function 445: DrawLine3D() (3 input parameters)
+Function 454: DrawLine3D() (3 input parameters)
Name: DrawLine3D
Return type: void
Description: Draw a line in 3D world space
Param[1]: startPos (type: Vector3)
Param[2]: endPos (type: Vector3)
Param[3]: color (type: Color)
-Function 446: DrawPoint3D() (2 input parameters)
+Function 455: DrawPoint3D() (2 input parameters)
Name: DrawPoint3D
Return type: void
Description: Draw a point in 3D space, actually a small line
Param[1]: position (type: Vector3)
Param[2]: color (type: Color)
-Function 447: DrawCircle3D() (5 input parameters)
+Function 456: DrawCircle3D() (5 input parameters)
Name: DrawCircle3D
Return type: void
Description: Draw a circle in 3D world space
@@ -3815,7 +3871,7 @@ Function 447: DrawCircle3D() (5 input parameters)
Param[3]: rotationAxis (type: Vector3)
Param[4]: rotationAngle (type: float)
Param[5]: color (type: Color)
-Function 448: DrawTriangle3D() (4 input parameters)
+Function 457: DrawTriangle3D() (4 input parameters)
Name: DrawTriangle3D
Return type: void
Description: Draw a color-filled triangle (vertex in counter-clockwise order!)
@@ -3823,14 +3879,14 @@ Function 448: DrawTriangle3D() (4 input parameters)
Param[2]: v2 (type: Vector3)
Param[3]: v3 (type: Vector3)
Param[4]: color (type: Color)
-Function 449: DrawTriangleStrip3D() (3 input parameters)
+Function 458: DrawTriangleStrip3D() (3 input parameters)
Name: DrawTriangleStrip3D
Return type: void
Description: Draw a triangle strip defined by points
Param[1]: points (type: const Vector3 *)
Param[2]: pointCount (type: int)
Param[3]: color (type: Color)
-Function 450: DrawCube() (5 input parameters)
+Function 459: DrawCube() (5 input parameters)
Name: DrawCube
Return type: void
Description: Draw cube
@@ -3839,14 +3895,14 @@ Function 450: DrawCube() (5 input parameters)
Param[3]: height (type: float)
Param[4]: length (type: float)
Param[5]: color (type: Color)
-Function 451: DrawCubeV() (3 input parameters)
+Function 460: DrawCubeV() (3 input parameters)
Name: DrawCubeV
Return type: void
Description: Draw cube (Vector version)
Param[1]: position (type: Vector3)
Param[2]: size (type: Vector3)
Param[3]: color (type: Color)
-Function 452: DrawCubeWires() (5 input parameters)
+Function 461: DrawCubeWires() (5 input parameters)
Name: DrawCubeWires
Return type: void
Description: Draw cube wires
@@ -3855,21 +3911,21 @@ Function 452: DrawCubeWires() (5 input parameters)
Param[3]: height (type: float)
Param[4]: length (type: float)
Param[5]: color (type: Color)
-Function 453: DrawCubeWiresV() (3 input parameters)
+Function 462: DrawCubeWiresV() (3 input parameters)
Name: DrawCubeWiresV
Return type: void
Description: Draw cube wires (Vector version)
Param[1]: position (type: Vector3)
Param[2]: size (type: Vector3)
Param[3]: color (type: Color)
-Function 454: DrawSphere() (3 input parameters)
+Function 463: DrawSphere() (3 input parameters)
Name: DrawSphere
Return type: void
Description: Draw sphere
Param[1]: centerPos (type: Vector3)
Param[2]: radius (type: float)
Param[3]: color (type: Color)
-Function 455: DrawSphereEx() (5 input parameters)
+Function 464: DrawSphereEx() (5 input parameters)
Name: DrawSphereEx
Return type: void
Description: Draw sphere with extended parameters
@@ -3878,7 +3934,7 @@ Function 455: DrawSphereEx() (5 input parameters)
Param[3]: rings (type: int)
Param[4]: slices (type: int)
Param[5]: color (type: Color)
-Function 456: DrawSphereWires() (5 input parameters)
+Function 465: DrawSphereWires() (5 input parameters)
Name: DrawSphereWires
Return type: void
Description: Draw sphere wires
@@ -3887,7 +3943,7 @@ Function 456: DrawSphereWires() (5 input parameters)
Param[3]: rings (type: int)
Param[4]: slices (type: int)
Param[5]: color (type: Color)
-Function 457: DrawCylinder() (6 input parameters)
+Function 466: DrawCylinder() (6 input parameters)
Name: DrawCylinder
Return type: void
Description: Draw a cylinder/cone
@@ -3897,7 +3953,7 @@ Function 457: DrawCylinder() (6 input parameters)
Param[4]: height (type: float)
Param[5]: slices (type: int)
Param[6]: color (type: Color)
-Function 458: DrawCylinderEx() (6 input parameters)
+Function 467: DrawCylinderEx() (6 input parameters)
Name: DrawCylinderEx
Return type: void
Description: Draw a cylinder with base at startPos and top at endPos
@@ -3907,7 +3963,7 @@ Function 458: DrawCylinderEx() (6 input parameters)
Param[4]: endRadius (type: float)
Param[5]: sides (type: int)
Param[6]: color (type: Color)
-Function 459: DrawCylinderWires() (6 input parameters)
+Function 468: DrawCylinderWires() (6 input parameters)
Name: DrawCylinderWires
Return type: void
Description: Draw a cylinder/cone wires
@@ -3917,7 +3973,7 @@ Function 459: DrawCylinderWires() (6 input parameters)
Param[4]: height (type: float)
Param[5]: slices (type: int)
Param[6]: color (type: Color)
-Function 460: DrawCylinderWiresEx() (6 input parameters)
+Function 469: DrawCylinderWiresEx() (6 input parameters)
Name: DrawCylinderWiresEx
Return type: void
Description: Draw a cylinder wires with base at startPos and top at endPos
@@ -3927,7 +3983,7 @@ Function 460: DrawCylinderWiresEx() (6 input parameters)
Param[4]: endRadius (type: float)
Param[5]: sides (type: int)
Param[6]: color (type: Color)
-Function 461: DrawCapsule() (6 input parameters)
+Function 470: DrawCapsule() (6 input parameters)
Name: DrawCapsule
Return type: void
Description: Draw a capsule with the center of its sphere caps at startPos and endPos
@@ -3937,7 +3993,7 @@ Function 461: DrawCapsule() (6 input parameters)
Param[4]: slices (type: int)
Param[5]: rings (type: int)
Param[6]: color (type: Color)
-Function 462: DrawCapsuleWires() (6 input parameters)
+Function 471: DrawCapsuleWires() (6 input parameters)
Name: DrawCapsuleWires
Return type: void
Description: Draw capsule wireframe with the center of its sphere caps at startPos and endPos
@@ -3947,51 +4003,51 @@ Function 462: DrawCapsuleWires() (6 input parameters)
Param[4]: slices (type: int)
Param[5]: rings (type: int)
Param[6]: color (type: Color)
-Function 463: DrawPlane() (3 input parameters)
+Function 472: DrawPlane() (3 input parameters)
Name: DrawPlane
Return type: void
Description: Draw a plane XZ
Param[1]: centerPos (type: Vector3)
Param[2]: size (type: Vector2)
Param[3]: color (type: Color)
-Function 464: DrawRay() (2 input parameters)
+Function 473: DrawRay() (2 input parameters)
Name: DrawRay
Return type: void
Description: Draw a ray line
Param[1]: ray (type: Ray)
Param[2]: color (type: Color)
-Function 465: DrawGrid() (2 input parameters)
+Function 474: DrawGrid() (2 input parameters)
Name: DrawGrid
Return type: void
Description: Draw a grid (centered at (0, 0, 0))
Param[1]: slices (type: int)
Param[2]: spacing (type: float)
-Function 466: LoadModel() (1 input parameters)
+Function 475: LoadModel() (1 input parameters)
Name: LoadModel
Return type: Model
Description: Load model from files (meshes and materials)
Param[1]: fileName (type: const char *)
-Function 467: LoadModelFromMesh() (1 input parameters)
+Function 476: LoadModelFromMesh() (1 input parameters)
Name: LoadModelFromMesh
Return type: Model
Description: Load model from generated mesh (default material)
Param[1]: mesh (type: Mesh)
-Function 468: IsModelValid() (1 input parameters)
+Function 477: IsModelValid() (1 input parameters)
Name: IsModelValid
Return type: bool
Description: Check if a model is valid (loaded in GPU, VAO/VBOs)
Param[1]: model (type: Model)
-Function 469: UnloadModel() (1 input parameters)
+Function 478: UnloadModel() (1 input parameters)
Name: UnloadModel
Return type: void
Description: Unload model (including meshes) from memory (RAM and/or VRAM)
Param[1]: model (type: Model)
-Function 470: GetModelBoundingBox() (1 input parameters)
+Function 479: GetModelBoundingBox() (1 input parameters)
Name: GetModelBoundingBox
Return type: BoundingBox
Description: Compute model bounding box limits (considers all meshes)
Param[1]: model (type: Model)
-Function 471: DrawModel() (4 input parameters)
+Function 480: DrawModel() (4 input parameters)
Name: DrawModel
Return type: void
Description: Draw a model (with texture if set)
@@ -3999,7 +4055,7 @@ Function 471: DrawModel() (4 input parameters)
Param[2]: position (type: Vector3)
Param[3]: scale (type: float)
Param[4]: tint (type: Color)
-Function 472: DrawModelEx() (6 input parameters)
+Function 481: DrawModelEx() (6 input parameters)
Name: DrawModelEx
Return type: void
Description: Draw a model with extended parameters
@@ -4009,7 +4065,7 @@ Function 472: DrawModelEx() (6 input parameters)
Param[4]: rotationAngle (type: float)
Param[5]: scale (type: Vector3)
Param[6]: tint (type: Color)
-Function 473: DrawModelWires() (4 input parameters)
+Function 482: DrawModelWires() (4 input parameters)
Name: DrawModelWires
Return type: void
Description: Draw a model wires (with texture if set)
@@ -4017,7 +4073,7 @@ Function 473: DrawModelWires() (4 input parameters)
Param[2]: position (type: Vector3)
Param[3]: scale (type: float)
Param[4]: tint (type: Color)
-Function 474: DrawModelWiresEx() (6 input parameters)
+Function 483: DrawModelWiresEx() (6 input parameters)
Name: DrawModelWiresEx
Return type: void
Description: Draw a model wires (with texture if set) with extended parameters
@@ -4027,7 +4083,7 @@ Function 474: DrawModelWiresEx() (6 input parameters)
Param[4]: rotationAngle (type: float)
Param[5]: scale (type: Vector3)
Param[6]: tint (type: Color)
-Function 475: DrawModelPoints() (4 input parameters)
+Function 484: DrawModelPoints() (4 input parameters)
Name: DrawModelPoints
Return type: void
Description: Draw a model as points
@@ -4035,7 +4091,7 @@ Function 475: DrawModelPoints() (4 input parameters)
Param[2]: position (type: Vector3)
Param[3]: scale (type: float)
Param[4]: tint (type: Color)
-Function 476: DrawModelPointsEx() (6 input parameters)
+Function 485: DrawModelPointsEx() (6 input parameters)
Name: DrawModelPointsEx
Return type: void
Description: Draw a model as points with extended parameters
@@ -4045,13 +4101,13 @@ Function 476: DrawModelPointsEx() (6 input parameters)
Param[4]: rotationAngle (type: float)
Param[5]: scale (type: Vector3)
Param[6]: tint (type: Color)
-Function 477: DrawBoundingBox() (2 input parameters)
+Function 486: DrawBoundingBox() (2 input parameters)
Name: DrawBoundingBox
Return type: void
Description: Draw bounding box (wires)
Param[1]: box (type: BoundingBox)
Param[2]: color (type: Color)
-Function 478: DrawBillboard() (5 input parameters)
+Function 487: DrawBillboard() (5 input parameters)
Name: DrawBillboard
Return type: void
Description: Draw a billboard texture
@@ -4060,7 +4116,7 @@ Function 478: DrawBillboard() (5 input parameters)
Param[3]: position (type: Vector3)
Param[4]: scale (type: float)
Param[5]: tint (type: Color)
-Function 479: DrawBillboardRec() (6 input parameters)
+Function 488: DrawBillboardRec() (6 input parameters)
Name: DrawBillboardRec
Return type: void
Description: Draw a billboard texture defined by source
@@ -4070,7 +4126,7 @@ Function 479: DrawBillboardRec() (6 input parameters)
Param[4]: position (type: Vector3)
Param[5]: size (type: Vector2)
Param[6]: tint (type: Color)
-Function 480: DrawBillboardPro() (9 input parameters)
+Function 489: DrawBillboardPro() (9 input parameters)
Name: DrawBillboardPro
Return type: void
Description: Draw a billboard texture defined by source and rotation
@@ -4083,13 +4139,13 @@ Function 480: DrawBillboardPro() (9 input parameters)
Param[7]: origin (type: Vector2)
Param[8]: rotation (type: float)
Param[9]: tint (type: Color)
-Function 481: UploadMesh() (2 input parameters)
+Function 490: UploadMesh() (2 input parameters)
Name: UploadMesh
Return type: void
Description: Upload mesh vertex data in GPU and provide VAO/VBO ids
Param[1]: mesh (type: Mesh *)
Param[2]: dynamic (type: bool)
-Function 482: UpdateMeshBuffer() (5 input parameters)
+Function 491: UpdateMeshBuffer() (5 input parameters)
Name: UpdateMeshBuffer
Return type: void
Description: Update mesh vertex data in GPU for a specific buffer index
@@ -4098,19 +4154,19 @@ Function 482: UpdateMeshBuffer() (5 input parameters)
Param[3]: data (type: const void *)
Param[4]: dataSize (type: int)
Param[5]: offset (type: int)
-Function 483: UnloadMesh() (1 input parameters)
+Function 492: UnloadMesh() (1 input parameters)
Name: UnloadMesh
Return type: void
Description: Unload mesh data from CPU and GPU
Param[1]: mesh (type: Mesh)
-Function 484: DrawMesh() (3 input parameters)
+Function 493: DrawMesh() (3 input parameters)
Name: DrawMesh
Return type: void
Description: Draw a 3d mesh with material and transform
Param[1]: mesh (type: Mesh)
Param[2]: material (type: Material)
Param[3]: transform (type: Matrix)
-Function 485: DrawMeshInstanced() (4 input parameters)
+Function 494: DrawMeshInstanced() (4 input parameters)
Name: DrawMeshInstanced
Return type: void
Description: Draw multiple mesh instances with material and different transforms
@@ -4118,35 +4174,35 @@ Function 485: DrawMeshInstanced() (4 input parameters)
Param[2]: material (type: Material)
Param[3]: transforms (type: const Matrix *)
Param[4]: instances (type: int)
-Function 486: GetMeshBoundingBox() (1 input parameters)
+Function 495: GetMeshBoundingBox() (1 input parameters)
Name: GetMeshBoundingBox
Return type: BoundingBox
Description: Compute mesh bounding box limits
Param[1]: mesh (type: Mesh)
-Function 487: GenMeshTangents() (1 input parameters)
+Function 496: GenMeshTangents() (1 input parameters)
Name: GenMeshTangents
Return type: void
Description: Compute mesh tangents
Param[1]: mesh (type: Mesh *)
-Function 488: ExportMesh() (2 input parameters)
+Function 497: ExportMesh() (2 input parameters)
Name: ExportMesh
Return type: bool
Description: Export mesh data to file, returns true on success
Param[1]: mesh (type: Mesh)
Param[2]: fileName (type: const char *)
-Function 489: ExportMeshAsCode() (2 input parameters)
+Function 498: ExportMeshAsCode() (2 input parameters)
Name: ExportMeshAsCode
Return type: bool
Description: Export mesh as code file (.h) defining multiple arrays of vertex attributes
Param[1]: mesh (type: Mesh)
Param[2]: fileName (type: const char *)
-Function 490: GenMeshPoly() (2 input parameters)
+Function 499: GenMeshPoly() (2 input parameters)
Name: GenMeshPoly
Return type: Mesh
Description: Generate polygonal mesh
Param[1]: sides (type: int)
Param[2]: radius (type: float)
-Function 491: GenMeshPlane() (4 input parameters)
+Function 500: GenMeshPlane() (4 input parameters)
Name: GenMeshPlane
Return type: Mesh
Description: Generate plane mesh (with subdivisions)
@@ -4154,42 +4210,42 @@ Function 491: GenMeshPlane() (4 input parameters)
Param[2]: length (type: float)
Param[3]: resX (type: int)
Param[4]: resZ (type: int)
-Function 492: GenMeshCube() (3 input parameters)
+Function 501: GenMeshCube() (3 input parameters)
Name: GenMeshCube
Return type: Mesh
Description: Generate cuboid mesh
Param[1]: width (type: float)
Param[2]: height (type: float)
Param[3]: length (type: float)
-Function 493: GenMeshSphere() (3 input parameters)
+Function 502: GenMeshSphere() (3 input parameters)
Name: GenMeshSphere
Return type: Mesh
Description: Generate sphere mesh (standard sphere)
Param[1]: radius (type: float)
Param[2]: rings (type: int)
Param[3]: slices (type: int)
-Function 494: GenMeshHemiSphere() (3 input parameters)
+Function 503: GenMeshHemiSphere() (3 input parameters)
Name: GenMeshHemiSphere
Return type: Mesh
Description: Generate half-sphere mesh (no bottom cap)
Param[1]: radius (type: float)
Param[2]: rings (type: int)
Param[3]: slices (type: int)
-Function 495: GenMeshCylinder() (3 input parameters)
+Function 504: GenMeshCylinder() (3 input parameters)
Name: GenMeshCylinder
Return type: Mesh
Description: Generate cylinder mesh
Param[1]: radius (type: float)
Param[2]: height (type: float)
Param[3]: slices (type: int)
-Function 496: GenMeshCone() (3 input parameters)
+Function 505: GenMeshCone() (3 input parameters)
Name: GenMeshCone
Return type: Mesh
Description: Generate cone/pyramid mesh
Param[1]: radius (type: float)
Param[2]: height (type: float)
Param[3]: slices (type: int)
-Function 497: GenMeshTorus() (4 input parameters)
+Function 506: GenMeshTorus() (4 input parameters)
Name: GenMeshTorus
Return type: Mesh
Description: Generate torus mesh
@@ -4197,7 +4253,7 @@ Function 497: GenMeshTorus() (4 input parameters)
Param[2]: size (type: float)
Param[3]: radSeg (type: int)
Param[4]: sides (type: int)
-Function 498: GenMeshKnot() (4 input parameters)
+Function 507: GenMeshKnot() (4 input parameters)
Name: GenMeshKnot
Return type: Mesh
Description: Generate trefoil knot mesh
@@ -4205,91 +4261,91 @@ Function 498: GenMeshKnot() (4 input parameters)
Param[2]: size (type: float)
Param[3]: radSeg (type: int)
Param[4]: sides (type: int)
-Function 499: GenMeshHeightmap() (2 input parameters)
+Function 508: GenMeshHeightmap() (2 input parameters)
Name: GenMeshHeightmap
Return type: Mesh
Description: Generate heightmap mesh from image data
Param[1]: heightmap (type: Image)
Param[2]: size (type: Vector3)
-Function 500: GenMeshCubicmap() (2 input parameters)
+Function 509: GenMeshCubicmap() (2 input parameters)
Name: GenMeshCubicmap
Return type: Mesh
Description: Generate cubes-based map mesh from image data
Param[1]: cubicmap (type: Image)
Param[2]: cubeSize (type: Vector3)
-Function 501: LoadMaterials() (2 input parameters)
+Function 510: LoadMaterials() (2 input parameters)
Name: LoadMaterials
Return type: Material *
Description: Load materials from model file
Param[1]: fileName (type: const char *)
Param[2]: materialCount (type: int *)
-Function 502: LoadMaterialDefault() (0 input parameters)
+Function 511: LoadMaterialDefault() (0 input parameters)
Name: LoadMaterialDefault
Return type: Material
Description: Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
No input parameters
-Function 503: IsMaterialValid() (1 input parameters)
+Function 512: IsMaterialValid() (1 input parameters)
Name: IsMaterialValid
Return type: bool
Description: Check if a material is valid (shader assigned, map textures loaded in GPU)
Param[1]: material (type: Material)
-Function 504: UnloadMaterial() (1 input parameters)
+Function 513: UnloadMaterial() (1 input parameters)
Name: UnloadMaterial
Return type: void
Description: Unload material from GPU memory (VRAM)
Param[1]: material (type: Material)
-Function 505: SetMaterialTexture() (3 input parameters)
+Function 514: SetMaterialTexture() (3 input parameters)
Name: SetMaterialTexture
Return type: void
Description: Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)
Param[1]: material (type: Material *)
Param[2]: mapType (type: int)
Param[3]: texture (type: Texture2D)
-Function 506: SetModelMeshMaterial() (3 input parameters)
+Function 515: SetModelMeshMaterial() (3 input parameters)
Name: SetModelMeshMaterial
Return type: void
Description: Set material for a mesh
Param[1]: model (type: Model *)
Param[2]: meshId (type: int)
Param[3]: materialId (type: int)
-Function 507: LoadModelAnimations() (2 input parameters)
+Function 516: LoadModelAnimations() (2 input parameters)
Name: LoadModelAnimations
Return type: ModelAnimation *
Description: Load model animations from file
Param[1]: fileName (type: const char *)
Param[2]: animCount (type: int *)
-Function 508: UpdateModelAnimation() (3 input parameters)
+Function 517: UpdateModelAnimation() (3 input parameters)
Name: UpdateModelAnimation
Return type: void
Description: Update model animation pose (CPU)
Param[1]: model (type: Model)
Param[2]: anim (type: ModelAnimation)
Param[3]: frame (type: int)
-Function 509: UpdateModelAnimationBones() (3 input parameters)
+Function 518: UpdateModelAnimationBones() (3 input parameters)
Name: UpdateModelAnimationBones
Return type: void
Description: Update model animation mesh bone matrices (GPU skinning)
Param[1]: model (type: Model)
Param[2]: anim (type: ModelAnimation)
Param[3]: frame (type: int)
-Function 510: UnloadModelAnimation() (1 input parameters)
+Function 519: UnloadModelAnimation() (1 input parameters)
Name: UnloadModelAnimation
Return type: void
Description: Unload animation data
Param[1]: anim (type: ModelAnimation)
-Function 511: UnloadModelAnimations() (2 input parameters)
+Function 520: UnloadModelAnimations() (2 input parameters)
Name: UnloadModelAnimations
Return type: void
Description: Unload animation array data
Param[1]: animations (type: ModelAnimation *)
Param[2]: animCount (type: int)
-Function 512: IsModelAnimationValid() (2 input parameters)
+Function 521: IsModelAnimationValid() (2 input parameters)
Name: IsModelAnimationValid
Return type: bool
Description: Check model animation skeleton match
Param[1]: model (type: Model)
Param[2]: anim (type: ModelAnimation)
-Function 513: CheckCollisionSpheres() (4 input parameters)
+Function 522: CheckCollisionSpheres() (4 input parameters)
Name: CheckCollisionSpheres
Return type: bool
Description: Check collision between two spheres
@@ -4297,40 +4353,40 @@ Function 513: CheckCollisionSpheres() (4 input parameters)
Param[2]: radius1 (type: float)
Param[3]: center2 (type: Vector3)
Param[4]: radius2 (type: float)
-Function 514: CheckCollisionBoxes() (2 input parameters)
+Function 523: CheckCollisionBoxes() (2 input parameters)
Name: CheckCollisionBoxes
Return type: bool
Description: Check collision between two bounding boxes
Param[1]: box1 (type: BoundingBox)
Param[2]: box2 (type: BoundingBox)
-Function 515: CheckCollisionBoxSphere() (3 input parameters)
+Function 524: CheckCollisionBoxSphere() (3 input parameters)
Name: CheckCollisionBoxSphere
Return type: bool
Description: Check collision between box and sphere
Param[1]: box (type: BoundingBox)
Param[2]: center (type: Vector3)
Param[3]: radius (type: float)
-Function 516: GetRayCollisionSphere() (3 input parameters)
+Function 525: GetRayCollisionSphere() (3 input parameters)
Name: GetRayCollisionSphere
Return type: RayCollision
Description: Get collision info between ray and sphere
Param[1]: ray (type: Ray)
Param[2]: center (type: Vector3)
Param[3]: radius (type: float)
-Function 517: GetRayCollisionBox() (2 input parameters)
+Function 526: GetRayCollisionBox() (2 input parameters)
Name: GetRayCollisionBox
Return type: RayCollision
Description: Get collision info between ray and box
Param[1]: ray (type: Ray)
Param[2]: box (type: BoundingBox)
-Function 518: GetRayCollisionMesh() (3 input parameters)
+Function 527: GetRayCollisionMesh() (3 input parameters)
Name: GetRayCollisionMesh
Return type: RayCollision
Description: Get collision info between ray and mesh
Param[1]: ray (type: Ray)
Param[2]: mesh (type: Mesh)
Param[3]: transform (type: Matrix)
-Function 519: GetRayCollisionTriangle() (4 input parameters)
+Function 528: GetRayCollisionTriangle() (4 input parameters)
Name: GetRayCollisionTriangle
Return type: RayCollision
Description: Get collision info between ray and triangle
@@ -4338,7 +4394,7 @@ Function 519: GetRayCollisionTriangle() (4 input parameters)
Param[2]: p1 (type: Vector3)
Param[3]: p2 (type: Vector3)
Param[4]: p3 (type: Vector3)
-Function 520: GetRayCollisionQuad() (5 input parameters)
+Function 529: GetRayCollisionQuad() (5 input parameters)
Name: GetRayCollisionQuad
Return type: RayCollision
Description: Get collision info between ray and quad
@@ -4347,158 +4403,158 @@ Function 520: GetRayCollisionQuad() (5 input parameters)
Param[3]: p2 (type: Vector3)
Param[4]: p3 (type: Vector3)
Param[5]: p4 (type: Vector3)
-Function 521: InitAudioDevice() (0 input parameters)
+Function 530: InitAudioDevice() (0 input parameters)
Name: InitAudioDevice
Return type: void
Description: Initialize audio device and context
No input parameters
-Function 522: CloseAudioDevice() (0 input parameters)
+Function 531: CloseAudioDevice() (0 input parameters)
Name: CloseAudioDevice
Return type: void
Description: Close the audio device and context
No input parameters
-Function 523: IsAudioDeviceReady() (0 input parameters)
+Function 532: IsAudioDeviceReady() (0 input parameters)
Name: IsAudioDeviceReady
Return type: bool
Description: Check if audio device has been initialized successfully
No input parameters
-Function 524: SetMasterVolume() (1 input parameters)
+Function 533: SetMasterVolume() (1 input parameters)
Name: SetMasterVolume
Return type: void
Description: Set master volume (listener)
Param[1]: volume (type: float)
-Function 525: GetMasterVolume() (0 input parameters)
+Function 534: GetMasterVolume() (0 input parameters)
Name: GetMasterVolume
Return type: float
Description: Get master volume (listener)
No input parameters
-Function 526: LoadWave() (1 input parameters)
+Function 535: LoadWave() (1 input parameters)
Name: LoadWave
Return type: Wave
Description: Load wave data from file
Param[1]: fileName (type: const char *)
-Function 527: LoadWaveFromMemory() (3 input parameters)
+Function 536: LoadWaveFromMemory() (3 input parameters)
Name: LoadWaveFromMemory
Return type: Wave
Description: Load wave from memory buffer, fileType refers to extension: i.e. '.wav'
Param[1]: fileType (type: const char *)
Param[2]: fileData (type: const unsigned char *)
Param[3]: dataSize (type: int)
-Function 528: IsWaveValid() (1 input parameters)
+Function 537: IsWaveValid() (1 input parameters)
Name: IsWaveValid
Return type: bool
Description: Checks if wave data is valid (data loaded and parameters)
Param[1]: wave (type: Wave)
-Function 529: LoadSound() (1 input parameters)
+Function 538: LoadSound() (1 input parameters)
Name: LoadSound
Return type: Sound
Description: Load sound from file
Param[1]: fileName (type: const char *)
-Function 530: LoadSoundFromWave() (1 input parameters)
+Function 539: LoadSoundFromWave() (1 input parameters)
Name: LoadSoundFromWave
Return type: Sound
Description: Load sound from wave data
Param[1]: wave (type: Wave)
-Function 531: LoadSoundAlias() (1 input parameters)
+Function 540: LoadSoundAlias() (1 input parameters)
Name: LoadSoundAlias
Return type: Sound
Description: Create a new sound that shares the same sample data as the source sound, does not own the sound data
Param[1]: source (type: Sound)
-Function 532: IsSoundValid() (1 input parameters)
+Function 541: IsSoundValid() (1 input parameters)
Name: IsSoundValid
Return type: bool
Description: Checks if a sound is valid (data loaded and buffers initialized)
Param[1]: sound (type: Sound)
-Function 533: UpdateSound() (3 input parameters)
+Function 542: UpdateSound() (3 input parameters)
Name: UpdateSound
Return type: void
Description: Update sound buffer with new data (data and frame count should fit in sound)
Param[1]: sound (type: Sound)
Param[2]: data (type: const void *)
Param[3]: sampleCount (type: int)
-Function 534: UnloadWave() (1 input parameters)
+Function 543: UnloadWave() (1 input parameters)
Name: UnloadWave
Return type: void
Description: Unload wave data
Param[1]: wave (type: Wave)
-Function 535: UnloadSound() (1 input parameters)
+Function 544: UnloadSound() (1 input parameters)
Name: UnloadSound
Return type: void
Description: Unload sound
Param[1]: sound (type: Sound)
-Function 536: UnloadSoundAlias() (1 input parameters)
+Function 545: UnloadSoundAlias() (1 input parameters)
Name: UnloadSoundAlias
Return type: void
Description: Unload a sound alias (does not deallocate sample data)
Param[1]: alias (type: Sound)
-Function 537: ExportWave() (2 input parameters)
+Function 546: ExportWave() (2 input parameters)
Name: ExportWave
Return type: bool
Description: Export wave data to file, returns true on success
Param[1]: wave (type: Wave)
Param[2]: fileName (type: const char *)
-Function 538: ExportWaveAsCode() (2 input parameters)
+Function 547: ExportWaveAsCode() (2 input parameters)
Name: ExportWaveAsCode
Return type: bool
Description: Export wave sample data to code (.h), returns true on success
Param[1]: wave (type: Wave)
Param[2]: fileName (type: const char *)
-Function 539: PlaySound() (1 input parameters)
+Function 548: PlaySound() (1 input parameters)
Name: PlaySound
Return type: void
Description: Play a sound
Param[1]: sound (type: Sound)
-Function 540: StopSound() (1 input parameters)
+Function 549: StopSound() (1 input parameters)
Name: StopSound
Return type: void
Description: Stop playing a sound
Param[1]: sound (type: Sound)
-Function 541: PauseSound() (1 input parameters)
+Function 550: PauseSound() (1 input parameters)
Name: PauseSound
Return type: void
Description: Pause a sound
Param[1]: sound (type: Sound)
-Function 542: ResumeSound() (1 input parameters)
+Function 551: ResumeSound() (1 input parameters)
Name: ResumeSound
Return type: void
Description: Resume a paused sound
Param[1]: sound (type: Sound)
-Function 543: IsSoundPlaying() (1 input parameters)
+Function 552: IsSoundPlaying() (1 input parameters)
Name: IsSoundPlaying
Return type: bool
Description: Check if a sound is currently playing
Param[1]: sound (type: Sound)
-Function 544: SetSoundVolume() (2 input parameters)
+Function 553: SetSoundVolume() (2 input parameters)
Name: SetSoundVolume
Return type: void
Description: Set volume for a sound (1.0 is max level)
Param[1]: sound (type: Sound)
Param[2]: volume (type: float)
-Function 545: SetSoundPitch() (2 input parameters)
+Function 554: SetSoundPitch() (2 input parameters)
Name: SetSoundPitch
Return type: void
Description: Set pitch for a sound (1.0 is base level)
Param[1]: sound (type: Sound)
Param[2]: pitch (type: float)
-Function 546: SetSoundPan() (2 input parameters)
+Function 555: SetSoundPan() (2 input parameters)
Name: SetSoundPan
Return type: void
Description: Set pan for a sound (0.5 is center)
Param[1]: sound (type: Sound)
Param[2]: pan (type: float)
-Function 547: WaveCopy() (1 input parameters)
+Function 556: WaveCopy() (1 input parameters)
Name: WaveCopy
Return type: Wave
Description: Copy a wave to a new wave
Param[1]: wave (type: Wave)
-Function 548: WaveCrop() (3 input parameters)
+Function 557: WaveCrop() (3 input parameters)
Name: WaveCrop
Return type: void
Description: Crop a wave to defined frames range
Param[1]: wave (type: Wave *)
Param[2]: initFrame (type: int)
Param[3]: finalFrame (type: int)
-Function 549: WaveFormat() (4 input parameters)
+Function 558: WaveFormat() (4 input parameters)
Name: WaveFormat
Return type: void
Description: Convert wave data to desired format
@@ -4506,203 +4562,203 @@ Function 549: WaveFormat() (4 input parameters)
Param[2]: sampleRate (type: int)
Param[3]: sampleSize (type: int)
Param[4]: channels (type: int)
-Function 550: LoadWaveSamples() (1 input parameters)
+Function 559: LoadWaveSamples() (1 input parameters)
Name: LoadWaveSamples
Return type: float *
Description: Load samples data from wave as a 32bit float data array
Param[1]: wave (type: Wave)
-Function 551: UnloadWaveSamples() (1 input parameters)
+Function 560: UnloadWaveSamples() (1 input parameters)
Name: UnloadWaveSamples
Return type: void
Description: Unload samples data loaded with LoadWaveSamples()
Param[1]: samples (type: float *)
-Function 552: LoadMusicStream() (1 input parameters)
+Function 561: LoadMusicStream() (1 input parameters)
Name: LoadMusicStream
Return type: Music
Description: Load music stream from file
Param[1]: fileName (type: const char *)
-Function 553: LoadMusicStreamFromMemory() (3 input parameters)
+Function 562: LoadMusicStreamFromMemory() (3 input parameters)
Name: LoadMusicStreamFromMemory
Return type: Music
Description: Load music stream from data
Param[1]: fileType (type: const char *)
Param[2]: data (type: const unsigned char *)
Param[3]: dataSize (type: int)
-Function 554: IsMusicValid() (1 input parameters)
+Function 563: IsMusicValid() (1 input parameters)
Name: IsMusicValid
Return type: bool
Description: Checks if a music stream is valid (context and buffers initialized)
Param[1]: music (type: Music)
-Function 555: UnloadMusicStream() (1 input parameters)
+Function 564: UnloadMusicStream() (1 input parameters)
Name: UnloadMusicStream
Return type: void
Description: Unload music stream
Param[1]: music (type: Music)
-Function 556: PlayMusicStream() (1 input parameters)
+Function 565: PlayMusicStream() (1 input parameters)
Name: PlayMusicStream
Return type: void
Description: Start music playing
Param[1]: music (type: Music)
-Function 557: IsMusicStreamPlaying() (1 input parameters)
+Function 566: IsMusicStreamPlaying() (1 input parameters)
Name: IsMusicStreamPlaying
Return type: bool
Description: Check if music is playing
Param[1]: music (type: Music)
-Function 558: UpdateMusicStream() (1 input parameters)
+Function 567: UpdateMusicStream() (1 input parameters)
Name: UpdateMusicStream
Return type: void
Description: Updates buffers for music streaming
Param[1]: music (type: Music)
-Function 559: StopMusicStream() (1 input parameters)
+Function 568: StopMusicStream() (1 input parameters)
Name: StopMusicStream
Return type: void
Description: Stop music playing
Param[1]: music (type: Music)
-Function 560: PauseMusicStream() (1 input parameters)
+Function 569: PauseMusicStream() (1 input parameters)
Name: PauseMusicStream
Return type: void
Description: Pause music playing
Param[1]: music (type: Music)
-Function 561: ResumeMusicStream() (1 input parameters)
+Function 570: ResumeMusicStream() (1 input parameters)
Name: ResumeMusicStream
Return type: void
Description: Resume playing paused music
Param[1]: music (type: Music)
-Function 562: SeekMusicStream() (2 input parameters)
+Function 571: SeekMusicStream() (2 input parameters)
Name: SeekMusicStream
Return type: void
Description: Seek music to a position (in seconds)
Param[1]: music (type: Music)
Param[2]: position (type: float)
-Function 563: SetMusicVolume() (2 input parameters)
+Function 572: SetMusicVolume() (2 input parameters)
Name: SetMusicVolume
Return type: void
Description: Set volume for music (1.0 is max level)
Param[1]: music (type: Music)
Param[2]: volume (type: float)
-Function 564: SetMusicPitch() (2 input parameters)
+Function 573: SetMusicPitch() (2 input parameters)
Name: SetMusicPitch
Return type: void
Description: Set pitch for a music (1.0 is base level)
Param[1]: music (type: Music)
Param[2]: pitch (type: float)
-Function 565: SetMusicPan() (2 input parameters)
+Function 574: SetMusicPan() (2 input parameters)
Name: SetMusicPan
Return type: void
Description: Set pan for a music (0.5 is center)
Param[1]: music (type: Music)
Param[2]: pan (type: float)
-Function 566: GetMusicTimeLength() (1 input parameters)
+Function 575: GetMusicTimeLength() (1 input parameters)
Name: GetMusicTimeLength
Return type: float
Description: Get music time length (in seconds)
Param[1]: music (type: Music)
-Function 567: GetMusicTimePlayed() (1 input parameters)
+Function 576: GetMusicTimePlayed() (1 input parameters)
Name: GetMusicTimePlayed
Return type: float
Description: Get current music time played (in seconds)
Param[1]: music (type: Music)
-Function 568: LoadAudioStream() (3 input parameters)
+Function 577: LoadAudioStream() (3 input parameters)
Name: LoadAudioStream
Return type: AudioStream
Description: Load audio stream (to stream raw audio pcm data)
Param[1]: sampleRate (type: unsigned int)
Param[2]: sampleSize (type: unsigned int)
Param[3]: channels (type: unsigned int)
-Function 569: IsAudioStreamValid() (1 input parameters)
+Function 578: IsAudioStreamValid() (1 input parameters)
Name: IsAudioStreamValid
Return type: bool
Description: Checks if an audio stream is valid (buffers initialized)
Param[1]: stream (type: AudioStream)
-Function 570: UnloadAudioStream() (1 input parameters)
+Function 579: UnloadAudioStream() (1 input parameters)
Name: UnloadAudioStream
Return type: void
Description: Unload audio stream and free memory
Param[1]: stream (type: AudioStream)
-Function 571: UpdateAudioStream() (3 input parameters)
+Function 580: UpdateAudioStream() (3 input parameters)
Name: UpdateAudioStream
Return type: void
Description: Update audio stream buffers with data
Param[1]: stream (type: AudioStream)
Param[2]: data (type: const void *)
Param[3]: frameCount (type: int)
-Function 572: IsAudioStreamProcessed() (1 input parameters)
+Function 581: IsAudioStreamProcessed() (1 input parameters)
Name: IsAudioStreamProcessed
Return type: bool
Description: Check if any audio stream buffers requires refill
Param[1]: stream (type: AudioStream)
-Function 573: PlayAudioStream() (1 input parameters)
+Function 582: PlayAudioStream() (1 input parameters)
Name: PlayAudioStream
Return type: void
Description: Play audio stream
Param[1]: stream (type: AudioStream)
-Function 574: PauseAudioStream() (1 input parameters)
+Function 583: PauseAudioStream() (1 input parameters)
Name: PauseAudioStream
Return type: void
Description: Pause audio stream
Param[1]: stream (type: AudioStream)
-Function 575: ResumeAudioStream() (1 input parameters)
+Function 584: ResumeAudioStream() (1 input parameters)
Name: ResumeAudioStream
Return type: void
Description: Resume audio stream
Param[1]: stream (type: AudioStream)
-Function 576: IsAudioStreamPlaying() (1 input parameters)
+Function 585: IsAudioStreamPlaying() (1 input parameters)
Name: IsAudioStreamPlaying
Return type: bool
Description: Check if audio stream is playing
Param[1]: stream (type: AudioStream)
-Function 577: StopAudioStream() (1 input parameters)
+Function 586: StopAudioStream() (1 input parameters)
Name: StopAudioStream
Return type: void
Description: Stop audio stream
Param[1]: stream (type: AudioStream)
-Function 578: SetAudioStreamVolume() (2 input parameters)
+Function 587: SetAudioStreamVolume() (2 input parameters)
Name: SetAudioStreamVolume
Return type: void
Description: Set volume for audio stream (1.0 is max level)
Param[1]: stream (type: AudioStream)
Param[2]: volume (type: float)
-Function 579: SetAudioStreamPitch() (2 input parameters)
+Function 588: SetAudioStreamPitch() (2 input parameters)
Name: SetAudioStreamPitch
Return type: void
Description: Set pitch for audio stream (1.0 is base level)
Param[1]: stream (type: AudioStream)
Param[2]: pitch (type: float)
-Function 580: SetAudioStreamPan() (2 input parameters)
+Function 589: SetAudioStreamPan() (2 input parameters)
Name: SetAudioStreamPan
Return type: void
Description: Set pan for audio stream (0.5 is centered)
Param[1]: stream (type: AudioStream)
Param[2]: pan (type: float)
-Function 581: SetAudioStreamBufferSizeDefault() (1 input parameters)
+Function 590: SetAudioStreamBufferSizeDefault() (1 input parameters)
Name: SetAudioStreamBufferSizeDefault
Return type: void
Description: Default size for new audio streams
Param[1]: size (type: int)
-Function 582: SetAudioStreamCallback() (2 input parameters)
+Function 591: SetAudioStreamCallback() (2 input parameters)
Name: SetAudioStreamCallback
Return type: void
Description: Audio thread callback to request new data
Param[1]: stream (type: AudioStream)
Param[2]: callback (type: AudioCallback)
-Function 583: AttachAudioStreamProcessor() (2 input parameters)
+Function 592: AttachAudioStreamProcessor() (2 input parameters)
Name: AttachAudioStreamProcessor
Return type: void
Description: Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo)
Param[1]: stream (type: AudioStream)
Param[2]: processor (type: AudioCallback)
-Function 584: DetachAudioStreamProcessor() (2 input parameters)
+Function 593: DetachAudioStreamProcessor() (2 input parameters)
Name: DetachAudioStreamProcessor
Return type: void
Description: Detach audio stream processor from stream
Param[1]: stream (type: AudioStream)
Param[2]: processor (type: AudioCallback)
-Function 585: AttachAudioMixedProcessor() (1 input parameters)
+Function 594: AttachAudioMixedProcessor() (1 input parameters)
Name: AttachAudioMixedProcessor
Return type: void
Description: Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo)
Param[1]: processor (type: AudioCallback)
-Function 586: DetachAudioMixedProcessor() (1 input parameters)
+Function 595: DetachAudioMixedProcessor() (1 input parameters)
Name: DetachAudioMixedProcessor
Return type: void
Description: Detach audio stream processor from the entire audio pipeline
diff --git a/tools/parser/output/raylib_api.xml b/tools/parser/output/raylib_api.xml
index 063119ab5..6ea73d8dc 100644
--- a/tools/parser/output/raylib_api.xml
+++ b/tools/parser/output/raylib_api.xml
@@ -679,7 +679,7 @@
-
+
@@ -1048,6 +1048,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1061,6 +1085,9 @@
+
+
+
@@ -1110,9 +1137,6 @@
-
-
-
@@ -2464,10 +2488,24 @@
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
@@ -2484,14 +2522,14 @@
-
+
-
+
diff --git a/tools/rexm/rexm.c b/tools/rexm/rexm.c
index cbb04a07f..ced2653da 100644
--- a/tools/rexm/rexm.c
+++ b/tools/rexm/rexm.c
@@ -25,6 +25,7 @@
* - raylib.com/examples//_example_name.data
* - raylib.com/examples//_example_name.wasm
* - raylib.com/examples//_example_name.js
+* - ...
*
* LICENSE: zlib/libpng
*
@@ -136,12 +137,12 @@ static const char *exVSProjectSolutionFile = NULL; // Env REXM_EXAMPLES_VS2022_S
//----------------------------------------------------------------------------------
// Module Internal Functions Declaration
//----------------------------------------------------------------------------------
-static int FileTextFind(const char *fileName, const char *find);
-static int FileTextReplace(const char *fileName, const char *find, const char *replace);
-static int FileCopy(const char *srcPath, const char *dstPath);
-static int FileRename(const char *fileName, const char *fileRename);
-static int FileMove(const char *srcPath, const char *dstPath);
-static int FileRemove(const char *fileName);
+//static int FileTextFind(const char *fileName, const char *find);
+//static int FileTextReplace(const char *fileName, const char *find, const char *replace);
+//static int FileCopy(const char *srcPath, const char *dstPath);
+//static int FileRename(const char *fileName, const char *fileRename);
+//static int FileMove(const char *srcPath, const char *dstPath);
+//static int FileRemove(const char *fileName);
// Update required files from examples collection
// UPDATES: Makefile, Makefile.Web, README.md, examples.js
@@ -185,9 +186,9 @@ static void UpdateSourceMetadata(const char *exSrcPath, const rlExampleInfo *inf
static void UpdateWebMetadata(const char *exHtmlPath, const char *exFilePath);
// Get text between two strings
-static char *GetTextBetween(const char *text, const char *begin, const char *end);
+//static char *GetTextBetween(const char *text, const char *begin, const char *end);
// Replace text between two specific strings
-static char *TextReplaceBetween(const char *text, const char *begin, const char *end, const char *replace);
+//static char *TextReplaceBetween(const char *text, const char *begin, const char *end, const char *replace);
//------------------------------------------------------------------------------------
// Program main entry point
@@ -1773,6 +1774,7 @@ static void UnloadExamplesData(rlExampleInfo *exInfo)
RL_FREE(exInfo);
}
+/*
// Find text in existing file
static int FileTextFind(const char *fileName, const char *find)
{
@@ -1808,7 +1810,7 @@ static int FileTextReplace(const char *fileName, const char *textLookUp, const c
}
// Copy file from one path to another
-// WARNING: Destination path must exist
+// NOTE: If destination path does not exist, it is created!
static int FileCopy(const char *srcPath, const char *dstPath)
{
int result = 0;
@@ -1817,10 +1819,13 @@ static int FileCopy(const char *srcPath, const char *dstPath)
// Create required paths if they do not exist
if (!DirectoryExists(GetDirectoryPath(dstPath)))
- MakeDirectory(GetDirectoryPath(dstPath));
+ result = MakeDirectory(GetDirectoryPath(dstPath));
- if ((srcFileData != NULL) && (srcDataSize > 0))
- result = SaveFileData(dstPath, srcFileData, srcDataSize);
+ if (result == 0) // Directory created successfully (or already exists)
+ {
+ if ((srcFileData != NULL) && (srcDataSize > 0))
+ result = SaveFileData(dstPath, srcFileData, srcDataSize);
+ }
UnloadFileData(srcFileData);
@@ -1871,6 +1876,7 @@ static int FileMove(const char *srcPath, const char *dstPath)
return result;
}
+*/
// Get example info from example file header
// WARNING: Expecting the example to follow raylib_example_template.c
@@ -2458,6 +2464,7 @@ static void UpdateWebMetadata(const char *exHtmlPath, const char *exFilePath)
}
}
+/*
// Get text between two strings
// NOTE: Using static string to return result, MAX: 1024 bytes
static char *GetTextBetween(const char *text, const char *begin, const char *end)
@@ -2515,3 +2522,4 @@ static char *TextReplaceBetween(const char *text, const char *begin, const char
return result;
}
+*/