diff options
| author | raysan5 <[email protected]> | 2020-03-24 16:15:57 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-03-24 16:15:57 +0100 |
| commit | 1c448b37b3c387814f2b122efc08a951958ad88a (patch) | |
| tree | c9d609508e467fa6239ee4a1f67859443342402a | |
| parent | e5ae10033f1138a54b21c9167a84286335132a4c (diff) | |
| download | raylib.com-1c448b37b3c387814f2b122efc08a951958ad88a.tar.gz raylib.com-1c448b37b3c387814f2b122efc08a951958ad88a.zip | |
Update cheatsheet with last minute functions
| -rw-r--r-- | cheatsheet/raylib_core.c | 4 | ||||
| -rw-r--r-- | cheatsheet/raylib_textures.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cheatsheet/raylib_core.c b/cheatsheet/raylib_core.c index 377c4ec..904b542 100644 --- a/cheatsheet/raylib_core.c +++ b/cheatsheet/raylib_core.c @@ -84,7 +84,9 @@ // 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) + void SaveFileData(const char *fileName, void *data, 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 bool IsFileExtension(const char *fileName, const char *ext); // Check file extension bool DirectoryExists(const char *dirPath); // Check if a directory path exists diff --git a/cheatsheet/raylib_textures.c b/cheatsheet/raylib_textures.c index cfe3bff..bb4b39e 100644 --- a/cheatsheet/raylib_textures.c +++ b/cheatsheet/raylib_textures.c @@ -42,6 +42,10 @@ void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint); // Draw a source image within a destination image (tint applied to source) void ImageDrawRectangle(Image *dst, Rectangle rec, Color color); // Draw rectangle within an image void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color); // Draw rectangle lines within an image + void ImageClearBackground(Image *dst, Color color); // Clear image background with given color + void ImageDrawPixel(Image *dst, Vector2 position, Color color); // Draw pixel within an image + void ImageDrawCircle(Image *dst, Vector2 center, int radius, Color color); // Draw circle within an image + void ImageDrawLineEx(Image *dst, Vector2 start, Vector2 end, Color color); // Draw line within an image void ImageDrawText(Image *dst, Vector2 position, const char *text, int fontSize, Color color); // Draw text (default font) within an image (destination) void ImageDrawTextEx(Image *dst, Vector2 position, Font font, const char *text, float fontSize, float spacing, Color color); // Draw text (custom sprite font) within an image (destination) void ImageFlipVertical(Image *image); // Flip image vertically |
