diff options
| author | Ray <[email protected]> | 2020-12-19 19:43:25 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-12-19 19:43:25 +0100 |
| commit | d2d72b1dfb08276caf26fc91f4e5c4513e33981e (patch) | |
| tree | eaa9e42fb7075662f730a56e5a04ee7dbbe45399 /src/raylib.h | |
| parent | cbf7369a3da54ac2f6ff3554c6ff7918c2c61990 (diff) | |
| download | raylib-d2d72b1dfb08276caf26fc91f4e5c4513e33981e.tar.gz raylib-d2d72b1dfb08276caf26fc91f4e5c4513e33981e.zip | |
ADDED: MemAlloc() / MemFree() #1440
Exposing internal memory allocator/free, useful for advance users when required
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 9bbcbec1..874e1dc2 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -972,6 +972,8 @@ RLAPI void SetTraceLogExit(int logType); // Set the exi RLAPI void SetTraceLogCallback(TraceLogCallback callback); // Set a trace log callback to enable custom logging RLAPI void TraceLog(int logType, const char *text, ...); // Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR) +RLAPI void *MemAlloc(int size); // Internal memory allocator +RLAPI void MemFree(void *ptr); // Internal memory free RLAPI void TakeScreenshot(const char *fileName); // Takes a screenshot of current screen (saved a .png) RLAPI int GetRandomValue(int min, int max); // Returns a random value between min and max (both included) |
