diff options
| author | Gabriel B. Sant'Anna <[email protected]> | 2020-06-29 21:48:11 -0300 |
|---|---|---|
| committer | Gabriel B. Sant'Anna <[email protected]> | 2020-07-13 03:01:47 -0300 |
| commit | 2e9c9b356d33d60f72d16861a2939e7f8e4546f8 (patch) | |
| tree | 957e6b85bca59d8b4aa5e874b279567fad34fc0d /cheatsheet/raylib_core.c | |
| parent | a85aff953169654c5b4af1f6b41afb09d8c5d238 (diff) | |
| download | raylib.com-2e9c9b356d33d60f72d16861a2939e7f8e4546f8.tar.gz raylib.com-2e9c9b356d33d60f72d16861a2939e7f8e4546f8.zip | |
Remove some inconsistencies in the cheatsheet
See issue #11 for details.
Diffstat (limited to 'cheatsheet/raylib_core.c')
| -rw-r--r-- | cheatsheet/raylib_core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cheatsheet/raylib_core.c b/cheatsheet/raylib_core.c index eecbaec..4d08523 100644 --- a/cheatsheet/raylib_core.c +++ b/cheatsheet/raylib_core.c @@ -55,7 +55,7 @@ Matrix GetCameraMatrix(Camera camera); // Returns camera transform matrix (view matrix) Matrix GetCameraMatrix2D(Camera2D camera); // Returns camera 2d transform matrix Vector2 GetWorldToScreen(Vector3 position, Camera camera); // Returns the screen space position for a 3d world space position - Vector2 GetWorldToScreenEx(Vector3 position, Camera camera,int width, int height); // Returns size position for a 3d world space position + Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height); // Returns size position for a 3d world space position Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); // Returns the screen space position for a 2d camera world space position Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera); // Returns the world space position for a 2d camera screen space position @@ -84,8 +84,8 @@ int GetRandomValue(int min, int max); // Returns a random value between min and max (both included) // Files management functions - unsigned char *LoadFileData(const char *fileName, int *bytesRead); // Load file data as byte array (read) - void SaveFileData(const char *fileName, void *data, int bytesToWrite); // Save data to file from byte array (write) + unsigned char *LoadFileData(const char *fileName, unsigned int *bytesRead); // Load file data as byte array (read) + void SaveFileData(const char *fileName, void *data, unsigned int bytesToWrite); // Save data to file from byte array (write) char *LoadFileText(const char *fileName); // Load text data from file (read), returns a '\0' terminated string void SaveFileText(const char *fileName, char *text); // Save text data to file (write), string must be '\0' terminated bool FileExists(const char *fileName); // Check if file exists @@ -109,8 +109,8 @@ unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *dataLength); // Decompress data (DEFLATE algorythm) // Persistent storage management - int LoadStorageValue(int position); // Load integer value from storage file (from defined position) - void SaveStorageValue(int position, int value); // Save integer value to storage file (to defined position) + void SaveStorageValue(unsigned int position, int value); // Save integer value to storage file (to defined position) + int LoadStorageValue(unsigned int position); // Load integer value from storage file (from defined position) void OpenURL(const char *url); // Open URL with default system browser (if available) |
